<br /> <div class="supplierBox span-23 last"> <div id="box1" class="boxes span-7"> <b>Supplier</b><br /> <?php $supplier = new Supplier($grn->getSupplier()); echo $supplier->prepareName(); ?> <input type="hidden" id="supplier" val="<?php echo $grn->prepareSupplier(); ?> "></input> <br /> <div class="boxBody"> <?php Supplier::generateInfo($grn->getSupplier()); ?> </div> </div> <div class="span-14 last"> <table> <tr> <td><label>PO No </label></td> <td><label>DO No </label></td> </tr> <tr> <td><?php echo $grn->preparePoNo(); ?> </td> <td><?php
<div class="boxBody"> <?php Supplier::generateInfo($purchase->getSupplier3()); ?> </div> </div> <?php } if ($purchase->getSupplier3() != null) { ?> <div id="box3" class="boxes span-7 last"> <b>Supplier 3</b><br /> <br /> <div class="boxBody"> <?php Supplier::generateInfo($purchase->getSupplier3()); ?> </div> </div> <?php } ?> </div> <table id="formContent"> <thead> <tr><th>No</th> <th>Item Code</th><th width="300px">Description</th><th>Quantity</th><th>UOM</th><th>Unit Price</th><th>Extended Price</th></tr> </thead> <tbody> <?php $counter = 1;
$supplier->populate(); $supplier->store(); } catch (fExpectedException $e) { echo $e->printMessage(); } } else { if ($_POST['type'] == "add") { try { $supplier = new Supplier(); $supplier->populate(); $supplier->store(); } catch (fExpectedException $e) { echo $e->printMessage(); } } else { if ($_POST['type'] == "option") { echo "<select>"; Status::printOption('1'); echo "</select>"; } else { if ($_POST['type'] == "generate") { try { Supplier::generateInfo($_POST['key']); } catch (fExpectedException $e) { echo "Invalid supplier"; } } } } } }