Parašė FLezAS· 2008 Gru. 10 15:12:41
#1
gal kas galite perdaryti sias paneles kad detusi y pridetinius?
echo "
<hr>
<b>Svetainės Statistika:</b><br>";
$result = dbquery("SELECT count(news_id) FROM ".$db_prefix."news");
echo "° Naujienų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(article_id) FROM ".$db_prefix."articles");
echo "° Straipsnių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "° Siuntinių: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(photo_id) FROM ".$db_prefix."photos");
echo "° Nuotraukų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(weblink_id) FROM ".$db_prefix."weblinks");
echo "° Forumo pranešimų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments");
echo "° Komentarų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
echo "° Šaukyklos pranešimų: [".dbresult($result, 0)."]<br>";
$result = dbquery("SELECT count(poll_id) FROM ".$db_prefix."polls");
echo "° Apklausų: [".dbresult($result, 0)."]<br>";
closeside();
;
openside(\"Paieška\");
?>
<center>
<form name='search' action='search.php?stype=n' method='post'>
<div align='center' class='search'>
<input type='text' class='textbox' name='stext' value='' onBlur=\\"if(this.value=='') this.value='';\\" onFocus=\\"if(this.value=='') this.value='';\\">
<br>
<br><input type='submit' name='option' value='Ieškoti' class='button></div></form>
</center>
<?
closeside();
;
openside("Atsitiktinis Avataras");
$id = dbresult(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_avatar!='' ORDER BY RAND()"), 0);
$count = dbcount("(user_id)", "users", "user_avatar!=''");
$rez = dbcount("(user_id)", "users");
$proc = number_format($rez / 100 * $count);
$data = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='$id'"));
echo"<div style='text-align: center;'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'><img src='".IMAGES."avatars/".$data['user_avatar']."' alt='' border='0'><br>".$data['user_name']."</a></div>";
echo "<div style='text-align: center;'><span class='small'><b>$count Vartotojai</b> (".$proc."%)<br>Jau turi po avatarą.</span>";
if (!$userdata['user_avatar'] && iMEMBER) {
echo "<br><a href='".BASEDIR."edit_profile.php' class='side'>Ir aš noriu avataro!</a>";
}
echo "</div>";
closeside();