Parašė pgai· 2008 Lie. 12 12:07:27
#2
Su avatarais kad rodytų ar be?
Na pamėgink šitą (neišmėginau ar veikia, o jei palikau klaiDų išsitaisyk)
<?php
openside("Mūsų komanda");
echo"<center><b>Super administratorius</b><br>";
$result = dbquery("
SELECT * FROM ".$db_prefix."users WHERE user_level = '103'");
while ($data = dbarray($result)) {
if ($data['user_avatar'] != "" && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$size = @getimagesize(IMAGES."avatars/".$data['user_avatar']);
$height = 50;
$width = 50;
$avatar = IMAGES."avatars/".$data['user_avatar'];
} else {
$height = 50;
$width = 50;
$avatar = BASEDIR."images/noav.png";
}
echo "<img src='$avatar' width='$width' height='$height'> <a href='".BASEDIR."profile.php?lookup=".$data['user_id\\\']."' class='u'><b>".$data['user_name']."</b></a><br>";
}
echo"<br><b>Administratoriai</b><br>";
$result = dbquery("
SELECT * FROM ".$db_prefix."users WHERE user_level = '102'");
while ($data = dbarray($result)) {
if ($data['user_avatar'] != "" && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$size = @getimagesize(IMAGES."avatars/".$data['user_avatar']);
$height = 50;
$width = 50;
$avatar = IMAGES."avatars/".$data['user_avatar'];
} else {
$height = 50;
$width = 50;
$avatar = BASEDIR."images/noav.png";
}
echo "<img src='$avatar' width='$width' height='$height'> <a href='".BASEDIR."profile.php?lookup=".$data['user_id\\\']."' class='u'><b>".$data['user_name']."</b></a><br>";
}
echo"</center>";
closeside();
?>
Redagavo ozzWANTED· 2008 Lie. 12 13:07:36