Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: prisijungimas ant hederio perdejimas

Parašė Enzo· 2007 Gru. 23 12:12:13
#3

Nuo function render header perkelk ant kitos temos iki function render footer


function render_header($header_content) {

global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix ,$loginerror;






echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"700\">

<tr>

<td>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"700\">

<tr>


<td> <img src=\"".THEME."images/radio_orange_02.gif\" width=\"627\" height=\"39\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_03.gif\" width=\"93\" height=\"39\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_04.gif\" width=\"106\" height=\"39\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
</tr></table>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"700\">

<tr>
<td background=\"".THEME."images/radio_orange_06.gif\" width=\"242\" height=\"247\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"><div style=\"padding-left: 5px; padding-right: 2px; padding-bottom: 20px\">
<!-- logowanie -->";

if (iMEMBER) {
opensidel();
echo " <center><table cellspacing='2'> <tr>\n";
echo ("<td class='login' > Witaj <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'" ."<span style='color:#".$userdata['user_color']."'>".$userdata['user_prefix'].$userdata['user_name']);
echo "</span></a></td>\n";
echo "</tr></table></center>";

if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";

echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";


} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";

echo "<img src='".FORUM."/images/brak.gif' width='50' hight='50'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";


}

$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='side'>Aprašymas</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Žinutės</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracija</a><br>\n";


}{echo "<br>

<div style=\"text-align: center\"> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti (x)</a></div>\n";

if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();

} else {

opensidel();

echo "<div align='center' style=\" padding-bootom: 25px; padding-left: 5px; padding-right: 29px\" >".(isset($loginerror) ? $loginerror : "")."

<form name='loginform' method='post' action='".FUSION_SELF."'><br><br>

<x class='text'> Nikas</x> <input type='text' name='user_name' class='panellogowania_texbox' value='Vardas' onBlur=\"if(this.value=='') this.value='Vardas';\" onFocus=\"if(this.value=='Vardas') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>

<x class='text'>Slaptažodis</x> <input type='password' name='user_pass' class='panellogowania_texbox' value='Slaptažodis' onBlur=\"if(this.value=='') this.value='Slaptažodis';\" onFocus=\"if(this.value=='Slalptažodis') this.value='';\" style=\" padding-top: 4px; padding-left: 5px; padding-right: 29px\"><br><br>


<input type='submit' name='login' value='Prisijungti' class='Prisijungti' ><br><br>
</form>

\n";

if ($settings['enable_registration']) {

echo "<a href='".BASEDIR."register.php' class='text'>Registracija</a> / \n";

}

echo "<a href='".BASEDIR."lostpassword.php' class='text'>Priminti slaptažodį</a>

</div>\n";

}
closesidel();




echo "</div></td>
<td> <img src=\"".THEME."images/radio_orange_07.gif\" width=\"800\" height=\"247\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></td>




</tr></table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"700\">

<tr>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_08.gif\" width=\"163\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_09.gif\" width=\"89\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_10.gif\" width=\"135\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_11.gif\" width=\"110\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_12.gif\" width=\"91\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_13.gif\" width=\"123\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>
<td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_14.gif\" width=\"115\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 700 bajtów]\"></a></td>


</tr></table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"700\">





</tr></table>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"700\">

<tr>



</tr></table>


</td>
</tr>
<tr></tr>
<tr>
<td>\n";

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

}

function render_footer($license=false) {



Redagavo Enzo· 2007 Gru. 23 13:12:54