  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=760 style="border: 1px inset;">
  <form action="controllers/inputController.php" method="post" name="doform" id="doform">
  <input name="do_pkey" id="do_pkey" type="hidden" value="<?=$do_data['do_pkey'];?>">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>DO No</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_no'];?></td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>DO Date</td>
  <td valign=top width=610 class=formvalue><?=unconverttounixslash($do_data['do_date']);?></td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>S/O No</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_sono'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Account No</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_accountno'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Delivery Address</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_address'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Lorry No</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_lorryno'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Transport Company</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_transportco'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Driver Name</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_drivername'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Driver IC No</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_drivericno'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Receiver Company</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_receiverco'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Receiver Name</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_receivername'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Receiver IC No</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_receivericno'];?>&nbsp;</td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Remarks</td>
  <td valign=top width=610 class=formvalue><?=$do_data['do_remarks'];?>&nbsp;</td>
  </tr>
  <input name="job" id="job" type="hidden" value="">
  </form>
  </table>

  <br>

  <table border=1 cellspacing=1 cellpadding=2 width=920 style="border: 1px inset;">
  <tr valign=top>
  <td valign=top width=40 class=listheader>Item</td>
  <td valign=top width=250 class=listheader>Description</td>
  <td valign=top width=110 class=listheader>Unit</td>
  <td valign=top width=110 class=listheader>Qty Delivered</td>
  <td valign=top width=110 class=listheader>Qty Accepted</td>
  <td valign=top width=110 class=listheader>Qty Rejected</td>
  <td valign=top width=110 class=listheader>PO No</td>
  <td valign=top width=80 class=listheader>Options</td>
  </tr>

  <? foreach($item_list as $myitem) { ?>

    <? $mypo = $mypoModel->getdata_po($myitem['item_popkey']); ?>

    <tr valign=top>
    <td valign=top width=40 class=listnumber><?=$myitem['recordno'];?>&nbsp;</td>
    <td valign=top width=250 class=listcontent><?=unescape($myitem['item_description']);?>&nbsp;</td>
    <td valign=top width=110 class=listcontent><?=$myitem['item_unit'];?>&nbsp;</td>
    <td valign=top width=110 class=listcontentnumeric><?=number_format($myitem['item_quantity'],4);?></td>
    <td valign=top width=110 class=listcontentnumeric><?=number_format($myitem['item_accepted'],4);?></td>
    <td valign=top width=110 class=listcontentnumeric><?=number_format(($myitem['item_quantity']-$myitem['item_accepted']),4);?>&nbsp;</td>
    <td valign=top width=110 class=listcontent><?=poidstr($mypo['po_no']);?>&nbsp;</td>
    <td valign=top width=80 class=listcontent>
    <!--a href="index.php?module=do&task=viewitem&doid=<?=$do_data['do_pkey'];?>&itemid=<?=$myitem['item_pkey'];?>"><img src="gfx/options/b_view.png" border=0 alt="View"></a-->
    &nbsp;
    </td>
    </tr>

  <? } ?>

  </table>
