[cit]<?
function aut()
{
global $set;
echo "<style type='text/css'>
.navi {
color: #445988;
font-size: small;
padding:3px 3px;border-bottom:1px dotted#e5e5e5;
background-color:#677fb3;
background-image:-webkit-gradient(linear,left top,left bottom,from(#677fb3),to(#ffffff));
background-image:linear-gradient(to bottom,#677fb3, #ffffff);
background-image:-moz-linear-gradient(top,#677fb3,#ffffff);
background-image:-o-linear-gradient(top,#677fb3,#ffffff);
}
.navi a:link,#navi a:visited {
color:#ffffff;
text-decoration:none;
font-size: small;
}
.navi a:focus,.navi a:hover,.navi a:active {
color:#3b5998;
background-color:#ffffff;
}
.box {
position: relative;
background: #6780b2;
padding: 0px 0px 0px 0px;
background: -webkit-gradient(linear,left top,left bottom,from(#7c9ad6),to(#52668e));
background: -moz-linear-gradient(top,#7c9ad6,#52668e);
background: -o-linear-gradient(top,#7c9ad6,#52668e);
background: -ms-linear-gradient(top,#7c9ad6,#52668e);
filter: progidXImageTransform.Microsoft.gradient(startColorstr='#7c9ad6 ',endColorstr='# 52668e');
zoom: 1;}
}
.gift1:hover{
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 0 0 10px rgba(5, 49, 103, 0.506); /* ū Firefox */
-webkit-box-shadow: 0 0 10px rgba(5, 49, 103, 0.506); /* ū Safari 柃hrome */
box-shadow: 0 0 10px rgba(5, 49, 103, 0.506); /* Р */
}
a.byms {
text-align: center;
display: block;
padding: 2px;}
a.byms:hover {background: #6780b2;}
.text {
color: #ffffff;
text-decoration: none;
font-size: medium;
}
.ncount {
color: #ffff00;
font-size: medium;
vertical-align: bottom;}
#time {
background-color:#ccc;
color:#000;
font-size:medium;
text-align:right;
padding:0px 0px 0px 0px;
}
.newevent {
color:#ffff00;
font-size: small;
vertical-align:bottom;
}
</style>";
echo "<div class='navi'>";
if ($set['web']==false)
{
global $user;
if (isset($user))
{
$k_new=mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '$user[id]'
WHERE `mail`.`id_kont` = '$user[id]' AND (`users_konts`.`type` IS NULL OR `users_konts`.`type` = 'common' OR `users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'",0);
$k_new_fav=mysql_result(mysql_query("SELECT COUNT(`mail`.`id`) FROM `mail`
LEFT JOIN `users_konts` ON `mail`.`id_user` = `users_konts`.`id_kont` AND `users_konts`.`id_user` = '$user[id]'
WHERE `mail`.`id_kont` = '$user[id]' AND (`users_konts`.`type` = 'favorite') AND `mail`.`read` = '0'",0);
$jn=mysql_result(mysql_query("SELECT COUNT(*) FROM `jurnal` WHERE `id_kont` = '$user[id]' AND `read` = '0'", 0);
$lenta = mysql_result(mysql_query("SELECT COUNT(*) FROM `lenta` WHERE `id_kont` = '$user[id]' AND `read` = '0' ",0);
$zoz = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE `to` = '$user[id]'", 0);
echo "<table style='width:100%' cellspacing='0' cellpadding='0'><tbody><tr>";
echo "<td style='vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;'>";
echo "<a href='/umenu.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/1.png'></a>";
echo "</td>";
echo "<td style='vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;'>";
if ($k_new!=0 && $k_new_fav==0) {
echo "<a href='/new_mess.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/2.png'> <span class='event'>$k_new</span></a>\n";
} else {
echo "<a href='/konts.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/2.png'></a>\n";
}
echo "</td>";
echo "<td style='vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;'>";
if ($jn>0) {
echo "<a href='/jurnal.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/3.png'> <span class='event'>$jn</span></a>\n";
} else {
echo "<a href='/jurnal.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/3.png'></a>\n";}
echo "</td>";
echo "<td style='vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;'>";
echo "<a href='/info.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/profile_man_b.png'> <span class='event'></span></a>\n"; echo "</td>";
echo "<td style='vertical-align:top;width:20%;white-space:nowrap;'>";
if ($lenta>0) {
echo "<a href='/lenta.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/5.png'> <span class='event'>$lenta</span></a>\n";
} else {
echo "<a href='/lenta.php' style='text-align:center;display:block;padding:1px;font-size:small;'><img src='/style/paneli/5.png'></a>\n";
}
echo "</td>";
echo "</tr></tbody></table>"; echo "</div></div>\n";
echo "</div>\n";
echo "<div class='gmenu'>\n";
$obsuzh = mysql_result(mysql_query("SELECT COUNT(*) FROM `obsuzh` WHERE `id_kont` = '$user[id]' AND `read` = '0' ",0);
if($obsuzh>0)echo "<img src='/style/icons/irc14.png' alt='' class='icon'/> <a href='/obsuzh.php'><u>+ $obsuzh</u></a> ";
$new_g=mysql_result(mysql_query("SELECT COUNT(*) FROM `myguests` WHERE `id_ank` = '$user[id]' AND `read`='1'",0);
if($new_g!=0)echo "<img src='/style/icons/eye.png' alt='' /> <a href='/myguests.php'><u>+ $new_g</u></a>";
$zoz = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE `to` = '$user[id]'", 0);
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE `to` = '$user[id]' LIMIT 1", 0) > 0){
echo "<img src='/style/icons/user_add.png' alt='' /> <a href='/frend_new.php'><u>+ $zoz</u></a> ";}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `fanat_obm` WHERE `to` = '$user[id]' LIMIT 1", 0) > 0){
echo "<img src='/style/icons/readers.gif' alt='' /> <a href='/fanat_obm.php'><u>+ $zoz</u></a> ";}
$k_n_s_zak=0;
$q23=mysql_query("SELECT `id_them`, `time` FROM `forum_zakl` WHERE `id_user` = '$user[id]'"
while ($zakl = mysql_fetch_array($q23)){
$k_n_s_zak+=mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_p` WHERE `id_them` = '$zakl[id_them]' AND `time` > '$zakl[time]'",0);}
if ($k_n_s_zak>0)echo "<img src='/forum/forum.gif' alt='' /> <a href=\"/zakl.php\" title=\"New Forum\"> <u>+ $k_n_s_zak</u></a><br/>\n";
$nj=mysql_result(mysql_query("SELECT COUNT(*) FROM `deist` WHERE `id_kont` = '$user[id]' AND `read` = '0'", 0);
if ($nj>0)echo "<img src='/dei/ruka.gif' alt='' /> <a href=\"/deist.php\" title=\"Jurnal\"><u>+ $nj</u></a> \n";
$nj=mysql_result(mysql_query("SELECT COUNT(*) FROM `ocenka` WHERE `id_kont` = '$user[id]' AND `read` = '0'", 0);
if ($nj>0)echo "<img src='/style/icons/5.png' alt='' /> <a href=\"/ocenka.php\" title=\"Jurnal\"><u>+ $nj</u></a> \n";
echo '</div>';
} else {
echo "<div class='auti'>\n";
echo "<table style='width:100%' cellspacing='0' cellpadding='0'><tbody><tr>";
echo "<td style='vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;'>";
echo "<a href='/aut.php' style='text-align:center;display:block;padding:1px;font-size:small;'> <font color='green'>Вход</font> </a>";
echo "</td>";
echo "<td style='vertical-align:top;width:20%;white-space:nowrap;'>";
echo "<a href='/reg.php' style='text-align:center;display:block;padding:1px;font-size:small;'> <font color='red'>Регистрация</font> </a>\n";
echo "</td>";
echo "</tr></table></div>";
echo '</div>';
}
}
}
?>[/cit]
Добавлено 29.08.13 в 23:39:17:
Помогайте)))
в 342 строке
Добавлено 29.08.13 в 23:40:12:
а вообще, показ ошибок включить не судьба?
див на див лезет...
так там вроде все опреднно....какой див??77