$tmpl->place('header'); ?> <script type="text/javascript" src="./js/admin-supplier-view.js"></script> </head> <body> <div class = "container"> <div id="View" class = "view-frame span-23 last"> <?php if (!isset($_GET['id'])) { echo "<div class=\"ui-state-error ui-corner-all\">\n\t\t\t\t\t\t<span class=\"ui-icon ui-icon-alert\" style=\"float: left; margin-right: 30px;\"></span>\n\t\t\t\t\t\tYou arrived to this page in error</div>"; } else { try { $supplier = new Supplier($_GET['id']); ?> <h2><span id="titleName"><?php echo $supplier->prepareName(); ?> </span></h2> <input id="key" type="hidden" value="<?php echo $supplier->prepareId(); ?> " /> <table> <tr> <td width="100"><b>Name</b></td> <td><span id="supName" class="varInput"><?php echo $supplier->prepareName(); ?> </span></td> </tr> <tr>
<br /> <div class="boxBody"> <?php Supplier::generateInfo($purchase->getSupplier2()); ?> </div> </div> <?php } if ($purchase->getSupplier3() != null) { ?> <div id="box3" class="boxes span-7 last"> <b>Supplier 3</b><br /> <?php $supplier3 = new Supplier($purchase->getSupplier3()); echo $supplier3->prepareName(); ?> <br /> <div class="boxBody"> <?php Supplier::generateInfo($purchase->getSupplier3()); ?> </div> </div> <?php } ?> </div> <table id="formContent"> <thead> <tr><th>No</th>