Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.23 KB | None | 0 0
  1. <?php
  2. require_once 'settings/site.php';
  3. $pageid = "2";
  4. $siteid = "5";
  5. $title  = "En iyi Üyeler";
  6. error_reporting(E_ALL);
  7. ?>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <head>
  11. <?php require_once 'template/body.php'; ?>
  12. </head>
  13. <body>
  14. <?php
  15. require_once 'template/header.php';
  16. require_once 'template/subheader.php';
  17.    
  18.     $krediqry = mysql_query("SELECT * FROM users WHERE rank > 3 ORDER BY credits DESC LIMIT 6") or die(mysql_error());
  19.         $onlineqry = mysql_query("SELECT OnlineTime,id FROM user_stats ORDER BY OnlineTime DESC LIMIT 6") or die(mysql_error());
  20.  
  21. ?>
  22. <div id="content">
  23.     <div id="box" style="margin-left:5px; margin-top:20px; width:99%;">
  24.         <div class="titel plau">En fazla Kredi olan</div>
  25.         <div style="margin-left:50px;">
  26.             <?php while($kredi = mysql_fetch_object($krediqry)) { ?>
  27.             <a onmouseover="tooltip.show('<?php echo $kredi->username; ?> <br /> <?php echo $kredi->credits; ?> Kredi <br /> Motto: <?php echo htmlspecialchars($kredi->motto); ?>');" onmouseout="tooltip.hide();" id="habbo" style="float:left; margin-right:10px;"><img src="http://habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $kredi->look; ?>&size=l&direction=2&head_direction=3&gesture=sml&size=l" /></a>
  28.             <?php } ?>
  29.         </div>
  30.     </div>
  31.     <div id="box" style="margin-left:5px; margin-top:20px; width:99%;">
  32.         <div class="titel hellrot">Online zamani</div>
  33.         <div style="margin-left:50px;">
  34.             <?php while($online = mysql_fetch_object($onlineqry)) {
  35.                 $userrowqry = mysql_query("SELECT * FROM users WHERE id='$online->id'") or die(mysql_error());
  36.                 while($userrow = mysql_fetch_object($userrowqry)) {
  37.                 ?><a onmouseover="tooltip.show('<?php echo $userrow->username; ?> <br /> <?php echo round($online->OnlineTime / 60 / 60).' Saat'; ?> <br /> Motto: <?php echo htmlspecialchars($userrow->motto); ?>');" onmouseout="tooltip.hide();" id="habbo" style="float:left; margin-left:10px;"><img src="http://habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $userrow->look; ?>&size=l&direction=2&head_direction=3&gesture=sml&size=l" /></a>
  38.             <?php } } ?>
  39.         </div>
  40.     </div>
  41.     <?php require_once 'template/footer.php'; ?>
  42. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement