Advertisement
Guest User

Untitled

a guest
May 15th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <?php
  2. $GetRanks = mysql_query("SELECT username,rank FROM users WHERE rank = 10");
  3. while($Ranks = mysql_fetch_assoc($GetRanks))
  4. {
  5. echo "<div class=\"habblet-container \"><div class=\"cbb clearfix blue \"><h2 class=\"title\">Hotel Manager</h2><div style=\"padding:5px\"><p>";
  6. $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = 10");
  7. while($Users = mysql_fetch_assoc($GetUsers))
  8. {
  9. setlocale(LC_ALL, 'nld_nld') or setlocale(LC_ALL, 'NL_NL');
  10. if($Users['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>Online!</b></font>"; } else { $OnlineStatus = "<font color=\"darkred\"><b>Offline</b></font>"; }
  11. echo "<img style=\"position:absolute;\" src=\"http://www.habbo.nl/habbo-imaging/avatarimage?figure={$Users['look']}&direction=2&head_direction=2&gesture=smd&size=m\">"
  12. ."<p style=\"margin-left:80px;margin-top:20px;\">Beadnaam: <strong>{$Users['username']}</strong><br>Status: <strong>{$Users['motto']}</strong><br>Laatste ingelogd!: <strong>". strftime(("%d-%b-%Y %H:%M"), $Users['last_online']) ."</p></strong>"
  13. ."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>";
  14. }
  15. echo "</div></div></div>";
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement