Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. <?php
  2.  
  3. $GetRanks = mysql_query("SELECT id,name,tab_colour,title FROM `ranks` WHERE `id` =2 OR `id` =3 OR `id` =4 OR `id` =6 OR `id` =8 OR `id` =9 ORDER BY id DESC");
  4. while($Ranks = mysql_fetch_assoc($GetRanks))
  5. {
  6. echo "<div class=\"habblet-container \"><div class=\"cbb clearfix {$Ranks['tab_colour']} \"><h2 class=\"title\"><span style=\"float: left;\">{$Ranks['name']}</span><span style=\"float: right; font-weight: normal; font-size: 75%\">{$Ranks['title']}" . "</span></h2><div style=\"padding:5px\"><p>";
  7. $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by id");
  8. if (mysql_num_rows($GetUsers) > 0)
  9. {
  10. while ($Users = mysql_fetch_assoc($GetUsers))
  11. {
  12. if($Users['online'] == 1){ $OnlineStatus = "<img style=\"float: right;\" src='{url}/app/tpl/skins/Habbo/images/online.gif'/> "; } else { $OnlineStatus = "<img style=\"float: right;\" src='{url}/app/tpl/skins/Habbo/images/offline.gif'/> "; }
  13. echo "<div style='float:left'><img position:absolute; src='http://www.habbo.com/habbo-imaging/avatarimage?figure={$Users['look']}&size=b&direction=2&head_direction=2&headonly=1&gesture=sml&size=2'></div>"
  14. ."<p style=\"font-size: 90%; padding: 0px;\"><u><strong>{$Users['username']}</strong></u></p> {$OnlineStatus}
  15. <br>
  16. <p style=\"font-size: 90%; padding: 0px;\"><img src=\"{url}/app/tpl/skins/Habbo/images/motto.gif\"/>&nbsp;{$Users['motto']}</p>
  17. <p style=\"font-size: 90%; padding: 0px;\"><img src=\"http://habboemotion.com/resources/images/icons/new_07.gif\"/> ". date('D, d M Y', $Users['last_online']) ."</p><hr>";
  18. }
  19. }
  20. else
  21. {
  22. echo "<p style=\"font-size: 90%;\"><i>There are currently no members in this rank.</i></p>";
  23. }
  24.  
  25. echo "</div></div></div>";
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement