  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=928 style="border: 1px inset;">
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Registration ID</td>
  <td valign=top width=778 class=formvalue><?=idstr($supplier_data['supplier_regid']);?></td>
  </tr>
  <tr valign=top>
  <td valign=top width=150 class=formlabel>Supplier Name</td>
  <td valign=top width=778 class=formvalue><?=$supplier_data['supplier_name'];?>&nbsp;<a href="index.php?module=supplier&task=view&itemid=<?=$supplier_data['supplier_pkey'];?>"><img src="gfx/options/b_view.png" border=0 title="View" alt="View"></a></td>
  </tr>
  </table>

  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=928 style="border: 1px inset;">

  <tr valign=top>
  <td valign=top width=48 class=listheader>No.</td>
  <td valign=top width=400 class=listheader>Project</td>
  <td valign=top width=160 class=listheader>Bank Guarantee</td>
  <td valign=top width=120 class=listheader>Start Date</td>
  <td valign=top width=120 class=listheader>End Date</td>
  <td valign=top width=80 class=listheader>Options</td>
  </tr>

  <? $mybgbanktotal=0; ?>

  <? foreach ($bg_list as $mybg) { ?>

    <? $mybgbanktotal+=$mybg['bg_bankamount']; ?>

    <tr valign=top>
    <td valign=top width=48 class=listnumber><?=$mybg['recordno'];?></td>
    <td valign=top width=400 class=listcontent><?=$mybg['bg_projectname'];?>&nbsp;</td>
    <td valign=top width=160 class=listcontentnumeric><?=number_format($mybg['bg_bankamount'],2);?>&nbsp;</td>
    <td valign=top width=120 class=listcontent><?=unconverttounixslash($mybg['bg_startdate']);?>&nbsp;</td>
    <td valign=top width=120 class=listcontent>
    <? if (($mybg['bg_enddate']-5184000)<=getdatestamp()) { ?>
      <? if ($mybg['bg_enddate']<=getdatestamp()) { ?>
        <font color="#ff0000"><b><?=unconverttounixslash($mybg['bg_enddate']);?></b></font>&nbsp;<img src="gfx/gifs/alert2.gif" border=0 title="Expired" alt="Expired">
      <? } else { ?>
        <font color="#ff0000"><b><?=unconverttounixslash($mybg['bg_enddate']);?></b></font>&nbsp;<img src="gfx/gifs/alert2.gif" border=0 title="Expiring" alt="Expiring">
      <? } ?>
    <? } else { ?>
      <?=unconverttounixslash($mybg['bg_enddate']);?>&nbsp;
    <? } ?>
    </td>
    <td valign=top width=80 class=listcontent>
    <a href="index.php?module=supplier&task=viewbg&sid=<?=$mybg['bg_supplierpkey'];?>&itemid=<?=$mybg['bg_pkey'];?>"><img src="gfx/options/b_view.png" border=0 title="View" alt="View"></a>
    <? if ($pubuseraccess['access_supplier_edit']==1) { ?>
      <a href="index.php?module=supplier&task=editbg&sid=<?=$mybg['bg_supplierpkey'];?>&itemid=<?=$mybg['bg_pkey'];?>"><img src="gfx/options/b_edit.png" border=0 title="Edit" alt="Edit"></a>
      <a href="index.php?module=supplier&task=deletebg&sid=<?=$mybg['bg_supplierpkey'];?>&itemid=<?=$mybg['bg_pkey'];?>"><img src="gfx/options/b_drop.png" border=0 title="Delete" alt="Delete"></a>
    <? } ?>
    </td>
    </tr>

  <? } ?>

  <tr valign=top>
  <td valign=top width=48 class=listnumber>&nbsp;</td>
  <td valign=top width=400 class=listcontent>&nbsp;Total&nbsp;</td>
  <td valign=top width=160 class=listcontentnumeric><?=number_format($mybgbanktotal,2);?>&nbsp;</td>
  <td valign=top width=320 colspan=3 class=listcontent>&nbsp;</td>
  </tr>

  </table>
