Guest User

Untitled

a guest
Aug 23rd, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.60 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" class="table table-striped table-hover">
  10.         <tr class="yellow">
  11.             <th>Outfit:</th>
  12.             <th>Name:</th>
  13.             <th>Guild:</th>
  14.             <th>Level:</th>
  15.             <th>Vocation:</th>
  16.         </tr>
  17.             <?php
  18.             foreach ($array as $value) {
  19.             echo '<td><div style="position:relative; left:-32px; top:-48px;"><div style="background-image: url(outfitter.php?a='.$value['looktype'].'&b='.$value['lookaddons'].'&c='.$value['lookhead'].'&d='.$value['lookbody'].'&e='.$value['looklegs'].'&f='.$value['lookfeet'].'&g=0&h=3&i=1);width:64px;height:64px;position:absolute;background-repeat:no-repeat;background-position:right bottom;"></div></div></td>';
  20.             $url = url("characterprofile.php?name=". $value['name']);
  21.             echo '<tr class="special" onclick="javascript:window.location.href=\'' . $url . '\'">';
  22.             echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
  23.             if (!empty($value['gname'])) echo '<td><a href="guilds.php?name='. $value['gname'] .'">'. $value['gname'] .'</a></td>'; else echo '<td></td>';
  24.             echo '<td>'. $value['level'] .'</td>';
  25.             echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
  26.             echo '</tr>';
  27.             }
  28.             ?>
  29.     </table>
  30.  
  31.     <?php
  32. } else {
  33.     echo 'Nobody is online.';
  34. }
  35. ?>
  36. <?php include 'layout/overall/footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment