Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: dėl user panelės headeryje.

Parašė Noyz· 2010 Geg. 22 21:05:09
#1

Turiu kodą :

function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;$msg_count;

$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
        echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
        echo "<td class='sub-header'><table width='100%' border='0' cellpadding='0' cellspacing='0' ><tr>";
   if (iMEMBER) {
echo"<td><center>
<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'' target='_blank'>Profilis</a> |
<a href='".BASEDIR."messages.php' class='side'>&#222;inut&#235;s [naujø: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo " | <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a>";

   }
                echo" | <a href='".BASEDIR."setuser.php?logout=yes' target='_blank'>Atsijungti</a></td>";
} else {
echo" <td style='padding-top:1px;'><center>
    <form name='loginform' method='post' action='".FUSION_SELF."'>
    Vartotojas <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
    Slapta&#254;odis <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>


<input type='submit' name='login' value='Prisijungti' class='button'>";
if ($settings['enable_registration']) {
      echo " <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a><center><br>n";
   }
   echo"</div>n";
}
echo "</td></tr></table></td></tr></table>";


echo "<table cellpadding='0' align='center' cellspacing='0' width='963'>\n<tr>
<td class='full-header'></td>
</tr>
</table>\n";
echo "<table cellpadding='0' align='center' cellspacing='0' width='704'>\n<tr>
<tr>
<td align='center' class='sub-header'>".showsublinks("&middot;","white")."</td>
</tr>
</table>\n";

echo "<table align='center' cellpadding='0' cellspacing='0' width='963'>\n<tr>\n";

}




Ir norėčiau paklausti, kodėl man nerodo headeryje prisijungimo?