Advertisement
Guest User

onlinelist.php

a guest
Sep 23rd, 2013
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.07 KB | None | 0 0
  1. <?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
  2.  
  3. <h1>Who is online?</h1>
  4. <?php
  5. $array = online_list();
  6. if ($array) {
  7.     ?>
  8.    
  9.     <table id="onlinelistTable">
  10.         <tr class="yellow">
  11.             <td>Outfit:</td>
  12.             <td>Name:</td>
  13.             <td>Level:</td>
  14.             <td>Vocation:</td>
  15.         </tr>
  16.             <?php
  17.             foreach ($array as $value) {
  18.             echo '<tr>';
  19.             echo '<td><div style="position: relative; width: 32px; height: 32px;"><div style="background-image: url(outfitter.php?id='.$value[4].'&addons='.$value[5].'&head='.$value[6].'&body='.$value[7].'&legs='.$value[8].'&feet='.$value[9].'); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: 0px; bottom: 0px;"></div></div></td>';
  20.             echo '<td><a href="characterprofile.php?name='. $value[0] .'">'. $value[0] .'</a></td>';
  21.             echo '<td>'. $value[1] .'</td>';
  22.             echo '<td>'. vocation_id_to_name($value[2]) .'</td>';
  23.             echo '</tr>';
  24.             }
  25.             ?>
  26.     </table>
  27.  
  28.     <?php
  29. } else {
  30.     echo 'Nobody is online.';
  31. }
  32. ?>
  33. <?php include 'layout/overall/footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement