Parašė gintulys· 2009 Rugs. 21 23:09:25
#44
Gal kas galėtu šita kodeli:
/* Dragelio papildymas */
if (iADMIN || $_GET['lookup'] == $userdata['user_id']) {
tablebreak();
opentable($_GET['lookup'] == $userdata['user_id'] ? "Mano profilio lankytojai" : "Vartotojo ".$data['user_name']." profilio lankytojai");
$result = dbquery("
SELECT user_id, user_name, user_avatar, profile_visit_datestamp, profile_visit_ip FROM ".$db_prefix."profile_visits
LEFT JOIN ".$db_prefix."users ON profile_visiter = user_id
WHERE profile_visit_user = '".$_GET['lookup']."'".(!iADMIN ? " AND profile_visiter <> 1" : '')."
ORDER BY profile_visit_datestamp
DESC LIMIT 5
");
if (dbrows($result)) {
echo "
<table width='100%' align='center'>
<tr>\n";
while ($profile_data = dbarray($result)) {
echo "
<td class='tbl1' align='center'>
<span style='cursor:default; text-decoration: none;' title=\"header=[Lankėsi] body=[".showdate("%Y-%m-%d %H:%M:%S", $profile_data['profile_visit_datestamp'])."] delay=[0] fade=[on]\">".($profile_data['user_avatar'] != '' && file_exists(IMAGES."avatars/".$profile_data['user_avatar']) ? "<img src='".IMAGES."avatars/".$profile_data['user_avatar']."' width='64' height='64' alt=''>" : "<img src='".IMAGES."avatars/no_av.gif' width='64' height='64' alt=''>")."</span><br>
<a href='".FUSION_SELF."?lookup=".$profile_data['user_id']."'>".$profile_data['user_name']."</a></td>";
}
echo "</tr>
</table><p align='right'><a>Rodyti visas lankytojus...</a></p>";
} else {
echo "<center><b>Šio profilio dar niekas neaplankė!</b></center>\n";
}
closetable();
}
/* Dragelio papildymas baigtas */
prilibdyt prie šito :
http://failai.in/F2C3364918/prof...