<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="{$vd['sc']}css/main.css"/>
</head>
<body>
<table border="1" width="100%" style="border-collapse: collapse" bordercolor="#86B9D6">
  <tr>
    <td height="35"  colspan="12" class="listhead" style="padding-top: 10px;"><h3>系统商户在百信卡盟供货系统的出入帐信息</h3>『<strong>商户余额 <font color="#ff0000">{$vd['remain']}</font> {$vd['lang']['moneyunit']}</strong>』
      <input type="button" value="上一页 &gt;&gt;" {$vd['prestate']} onclick="window.location='?m=mod_b2b&c=trade&a=ub&page={$vd['prepage']}&{$vd['op']}'"/>
      <input type="button" value="下一页 &gt;&gt;" {$vd['nextstate']} onclick="window.location='?m=mod_b2b&c=trade&a=ub&page={$vd['nextpage']}&{$vd['op']}'"/>
    </td>
  </tr>
</table>
<br/>
<table border="1" width="100%" style="border-collapse: collapse" bordercolor="#86B9D6">
  <tr>
    <td height="35"  colspan="12" class="listhead" style="padding-top: 15px;">
    <form action="index.php?m=mod_b2b&c=trade&a=ub"  method="post" name="form" >
    日期从
    <select name="yearfrom">
      {#Option($vd['y'], $vd['data']['yearfrom'])}
    </select>年
    <select name="monthfrom">
      {#Option($vd['m'], $vd['data']['monthfrom'])}
    </select>月
    <select name="dayfrom">
      {#Option($vd['d'], $vd['data']['dayfrom'])}
    </select>日 到 <select name="yearto">
      {#Option($vd['y'], $vd['data']['yearto'])}
    </select>年
    <select name="monthto">
      {#Option($vd['m'], $vd['data']['monthto'])}
    </select>月
    <select name="dayto">
      {#Option($vd['d'], $vd['data']['dayto'])}
    </select>日
    <input type="submit" value="马上查询 &gt;&gt;"/>
    </form>
    </td>
  </tr>
</table>
<br/>
<table border="1" width="100%" style="border-collapse: collapse;" bordercolor="#86B9D6">
  <tr>
    <td width="100" align="center" height="35" class="listhead">
      <b>订单号</b></td>
    <td width="150" align="center" height="35" class="listhead">
      <b>交易时间</b></td>
    <td width="83" align="center" height="35" class="listhead">
      <b>支出</b></td>
    <td width="100" align="center" height="35" class="listhead">
      <b>收入</b></td>
    <td width="100" align="center" height="35" class="listhead">
      <b>帐户余额</b></td>
    <td width="200" align="center" height="35" class="listhead">
      <b>说明</b></td>
  </tr>
  <!--if($vd['totlerow'] == 0) {-->
  <tr>
    <td align="right" height="35" colspan="20">您选择的时间段还没有发生任何交易</td>
  </tr>
  <!--}-->
  <!--foreach($vd['items'] as $item) {-->
  <tr>
    <td width="100" align="center" height="35">{$item['ubzordno']}</td>
    <td width="150" align="center" height="35">{$item['ubztrddate']}</td>
    <td width="83"  align="center" height="35">{$item['ubzexpend']}</td>
    <td width="100" align="center" height="35">{$item['ubzincome']}</td>
    <td width="100" align="center" height="35">{$item['ubzremain']}</td>
    <td width="200" align="center" height="35">{$item['ubztrddcrp']}</td>
  </tr>
  <!--}-->
  <tr>
    <td align="right" height="35" colspan="20">
    <strong>本记录总计 <font color="#ff0000">{$vd['totlerow']}</font> 条  第 {$vd['thispage']} 页</strong>/ 共 {$vd['totlepage']} 页</strong>
    </td>
  </tr>
  <tr>
    <td align="right" height="35" colspan="19">
    <form method="post" action="index.php?m=mod_b2b&c=trade&a=ub&{$vd['op']}">
      <input type="button" value="上一页 &gt;&gt;" {$vd['prestate']} onclick="window.location='?m=mod_b2b&c=trade&a=ub&page={$vd['prepage']}&{$vd['op']}'"/>
      <input type="button" value="下一页 &gt;&gt;" {$vd['nextstate']} onclick="window.location='?m=mod_b2b&c=trade&a=ub&page={$vd['nextpage']}&{$vd['op']}'"/>
      到第<input type="text" name="page" size="2" value="" class="txt"/>页<input type="submit" value=" 确 定 &gt;&gt;"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>