Home > Panele > Najnowsi Uzytkownicy

Najnowsi Uzytkownicy

Dodane przez: piciu
opis:
Najnowsi Uzytkownicy
Kod:
  1. openside("Najnowsi użytkownicy");
  2.  
  3. $result = dbquery("SELECT * FROM ".$db_prefix."users ORDER BY `user_id` DESC LIMIT 0, 10");
  4. echo "<table cellpadding='0' cellspacing='0' width='100%'>";
  5. echo "<td class='side-small' align='left'>";
  6. echo "<b><font color='cc3300'>Naujausi nariai</b>";
  7. echo "<td class='side-small' align='right'>";
  8. echo "<b><font color='cc3300'>Istojimo Data</b>";
  9.  
  10. if (dbrows($result) != 0) {
  11. while ($data = dbarray($result)) {
  12. echo "<tr>\n<td class='side-small' align='left'>\n";
  13. echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\n";
  14. echo trimlink($data['user_name'], 15)."</a></td><td class='side-small' align='right'> ".showdate("%d-%m-%Y", $data['user_joined'])."</td>\n</tr>\n";
  15. }
  16. }
  17. echo "</table>";
  18. closeside();

©