Parašė Tomux· 2011 Sau. 2 23:01:18
#1
As noriu istrinti is theme.php user info panele ,kad jos nebutu ant headerio visai,bet man neiseina kai istrinu ja baltas fonas buna neveikia webas,gal galite padeti?
As taip manau va cia ji
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width' class='paneles'>\n<tr>
<td align='center' width='20'>";
echo "</td>
<td align='right' width=3700'>";
if (iMEMBER) {
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' hight='70' border='0' alt='".$data['user_name']."'></td>";
echo "</table></center>";
} else {
echo"<table><tr><td></td></tr></table>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='a'>Redaguoti prifilį</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='a'>Žinutės [naujų: ".sprintf($msg_count)."]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='a'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='a'>Narių sarašas</a><br>";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td></td></tr></table>";
echo "\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo"<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."','_self' class='a'>Administracija</a><br>\n";
}{echo " ";
echo"<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes','_self' class='a'>Atsijungti</a></div>\n";
}
tablebreak();
} else {
echo "<br><div align='right'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='pass' value='Vardas' onBlur=\"if(this.value=='') this.value='Vardas';\" onFocus=\"if(this.value=='Vardas') this.value='';\" ><br>
<img src='".THEME."images/bg_l.png' alt=''><br>
<input type='password' name='user_pass' class='pass' value='slaptažodis' onBlur=\"if(this.value=='') this.value='slaptažodis';\" onFocus=\"if(this.value=='slaptažodis') this.value='';\" ><br>
<input type='checkbox' name='remember_me' value='y' title='Prisiminti mane' style='vertical-align:middle;'><span style='font-size: 10px; color:#ffffff;'><b>Prisiminti mane </b></span>
<input type='submit' name='login' value='' class='inne'>
</form>\n";
if ($settings['enable_registration']) {
echo "
<a href='".BASEDIR."register.php' >
<span style='font-size: 10px; font-family: sans-serif;' ><b></b></a></span>
<a href='".BASEDIR."lostpassword.php' >
<span style='font-size: 10px; font-family: sans-serif;' ><b></b></a></span>\n ";
}
echo "</div>\n";
}
echo "</td>
<td align='center' width='2100'>";
echo "</td>
</tr>
</table>";