Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($char->charExists() && isset($_SESSION['authority']) && $_SESSION['authority'] > 1) {
- echo '<div id="inventory2" style="float:left;"> <table class="inventory" id="invent2" cellspacing="0"> <tr>';
- $items = $char->getInventoryItems();
- $x = 0;
- foreach ($items as $i=>$item) {
- if (++$x == 8) { echo '</tr><tr>'; $x=0; }
- $image = $cItem->getIconFromID($item["item"]);
- if ((int)$item["item"] > 0 && file_exists('./public/images/icons/' . $image))
- echo '<td><input type="hidden" value="', $item["item"], '" /><img src="{baseurl}/public/images/icons/' . $image . '" alt="" /></td>';
- else echo '<td style="padding-left:45px;"></td>';
- }
- echo '</tr></table></div>';
- }
- ?>
Add Comment
Please, Sign In to add comment