Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Nerodo kada Gauna PM

Parašė MaskedProgrammer· 2011 Bal. 27 12:04:33
#4

Atsikirai kažkur neišmėginau, bet pamėgink, turėtų veikti.


<?php
 
//Vartotojo panele
 
if(!iMEMBER) {
 
//atsidaro
 
echo "<div class='v_pav_fon'><div class='v_pav'>\n";
 
echo "</div>\n</div>\n<div class='vartotojas' align='right' >\n";
 
echo "<div class='v_tarpas'>\n</div>\n<div class='v_juosta2'>\n</div>\n";
 
//
 
echo "<table style='padding-right:5px;padding-top:5px;' >
 
<form name='loginform' method='post' action='".FUSION_SELF."'>
 
<tr>
 
<td width='250' align='right' >
 
Vardas: <input type='text' name='user_name' class='v_forma' >
 
</td>
 
</tr>
 
<tr>
 
<td width='250' align='right' >
 
Slaptažodis: <input type='password' name='user_pass' class='v_forma' >
 
</td>
 
</tr>
 
<tr>
 
<td width='250' align='right' >
 
<div class='v_tarpas'>\n</div>\n<div class='v_juosta'>\n</div>\n<div class='v_tarpas'>\n</div>\n
 
<input type='submit' name='login' value='Prisijungti' class='button'>
 
<a href=".BASEDIR."register.php>Registracija</a> - <a href=".BASEDIR."lostpassword.php>Slaptažodis</a></form>";
 
} else {
 
//atsidaro
 
echo "<div class='panel_pav_fon'><div class='panel_pav'>\n";
 
echo"Sveika(s) ".$userdata['user_name']."";
 
echo "</div>\n</div>\n<div class='vartotojas'>\n";
 
//
 
echo "<table style='padding-left:10px; padding-top:7px;'>
 
<tr>
 
<td width='90'>";
 
if($userdata['user_avatar']) {
 
echo "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='' width='90' style='border:1px dashed #c1c1c1'>";
 
} else {
 
echo "<img src='".THEME."images/neraavataro.jpg' alt='' width='90' style='border:1px dashed #c1c1c1'>";
 
}
 
echo "</td><td width='130' align='left' >";
 
//Ispejimai
 
echo THEME_BULLET.' <strong><b>Įspėjimai:</b></strong>'          .getWarnings($userdata['user_id']).'</div><br />';
 
///
 
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilį</a><br />
 
".THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>Žinutės</a><br />";
 
//Jei turi naują žinute
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
 
if ($msg_count) { echo "<a href='".BASEDIR."messages.php' class='side'>Jūs gavote pranešimą!</a><br />"; }
//Jei turi naują žinute
 
echo "
".THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>Nariai</a><br />
 <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Atsijungti</a><br />";
 
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
 
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a> <br />";
 
//* Administracijos sub-linkai , noredami panaudoti nutrinkite - //   *
 
//echo".THEME_BULLET." <a href='".ADMIN."news.php".$aidlink."' class='side'>Naujienos</a> <br />
 
//".THEME_BULLET." <a href='".ADMIN."downloads.php".$aidlink."' class='side'>Siuntiniai</a> <br />
 
//".THEME_BULLET." <a href='".ADMIN."custom_pages.php".$aidlink."' class='side'>Puslapiai</a>\n";
 
//*
 
	}
 
}
 
echo "</td></tr>\n";
 
echo "</table>";
 
//uzsidaro
 
echo "<div class='v_tarpas'>\n</div>\n</div>\n<div class='v_apacia'>\n</div>\n";
 
//Vartotojo panele/
 
?>