public static function dump_items() { ?> <table width=100%> <tr> <td><b>ItemId</b></td> <td><b>Url</b></td> <td><b>Price</b></td> <td><b>Quantity</b></td> <td><b></b></td> <td><b></b></td> <td><b></b></td> </tr> <?php foreach (Ebay::get_active_items() as $item) { xd($item); } ?> </table<?php }
<?php require_once 'lib/config.php'; require_once 'blocks/head.php'; ?> <body> <?php require_once 'blocks/menu.php'; require_once 'lib/ebay.php'; $items = Ebay::get_active_items(); $count = count($items); if ($count == 0) { ?> <div id="ErrorMsg" class="alert alert-error"> <button type="button" class="close" data-dismiss="alert">×</button> No items found. Error? </div> <p><strong>Products Unavailable</strong></p> <?php } else { ?> <h3>Current products on eBay(<?php echo $count; ?> )</h3> <table class="table table-bordered"> <tr> <th style="width:80px;">eBbay ID</th> <th style="width:80px;">SKU</th> <th style="width:320px;">Description</th> <th style="width:50px;">Image</th>