Guest User

Untitled

a guest
Jul 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <?php
  2. if ($char->charExists() && isset($_SESSION['authority']) && $_SESSION['authority'] > 1) {
  3. echo '<div id="inventory2" style="float:left;"> <table class="inventory" id="invent2" cellspacing="0"> <tr>';
  4. $items = $char->getInventoryItems();
  5. $x = 0;
  6. foreach ($items as $i=>$item) {
  7. if (++$x == 8) { echo '</tr><tr>'; $x=0; }
  8. $image = $cItem->getIconFromID($item["item"]);
  9. if ((int)$item["item"] > 0 && file_exists('./public/images/icons/' . $image))
  10. echo '<td><input type="hidden" value="', $item["item"], '" /><img src="{baseurl}/public/images/icons/' . $image . '" alt="" /></td>';
  11. else echo '<td style="padding-left:45px;"></td>';
  12.  
  13. }
  14. echo '</tr></table></div>';
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment