<!--if(request('keywords')==''){-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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>

<div id="titleDiv">
<div style="float:left"><a href="index.php?a=Home"><img src="{$vd['sc']}images/home.png" style="vertical-align:middle" border="0"/></a></div><div style="float:left;padding-top:8px;padding-left:3px;"><a href="index.php?a=Home" title="回到后台首页"><font color="#000">桌面</font></a> <span style="font-size:7px;">>></span> 一卡通状态查询</div>
<div style="float:right;"><a href="index.php?m=mod_home&a=Help&t=admin_b2b_ykt_index" onFocus="this.blur()" title="查看标签相关帮助"><img src="{$vd['sc']}images/help.gif" style="vertical-align:middle" border="0"/></a></div>
</div>
<form id="cform" method="get" action="index.php">
<div id="content" class="cwarpper">
<div class="cbodyHead"></div>
<div class="cwarpper1">
<div class="ctitle">一卡通状态查询</div>
<table border="1" id="ctable1" class="ctable" bordercolor="#86B9D6">
  <tr>
    <td class="tablelt">一卡通卡号</td>
    <td class="tablert"><input type="text" name="keywords" size="25" value=""/></td>
  </tr>
  <tr>
    <td class="tablelt"" style="height:80px"></td>
    <td class="tablert">
      <input type="submit" value="查询一卡通状态" class="button"/>
      <input type="reset" value="重 置"  class="button"/>
    </td>
  </tr>
</table>
<input type="hidden" value="mod_b2b" name="m" id="m"/>
<input type="hidden" value="state" name="a" id="a"/>
<input type="hidden" value="trade" name="c" id="c"/>
<input type="hidden" value="1" name="tradestate" id="tradestate"/>
</div>
<div class="cbodyFoot"></div>
</div>
<div id="opcontent" style="display:none">
  <div class="optxt">
  </div>
</div>
</form>
<script type="text/javascript">
  sc = "{$vd['sc']}";
  var ctablenum = 2;
</script>
<script src="{$vd['sc']}js/content.js" type="text/javascript"></script>
</body>
</html>
<!--}else{-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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>

<div class="titleDiv" id="titleList">
<div style="float:left"><a href="index.php?a=home"><img src="{$vd['sc']}images/home.png" style="vertical-align:middle" border="0"/></a></div><div style="float:left;padding-top:8px;padding-left:3px;"><a href="index.php?a=home" title="回到后台首页"><font color="#000">桌面</font></a> <span style="font-size:7px;">>></span> <span style="font-size:12px;">卡状态查询</span></div>
</div>
<div class="mytitle" id="mytitle">
  <div style="float:left;padding-top:10px;padding-left:10px;">
  <!--if(request('keywords')==''){-->
  <font color="#ff0000">请输入您要查询的一卡通</font>
  <!--}else{-->
  当前卡号：<a href="index.php?m=mod_b2b&c=trade&a=state&keywords={$vd['cardnumber']}" title="重新查看卡状态">{$vd['cardnumber']}</a>  当前卡余额：<font color="#ff0000"><b>{$vd['card']['money']}</b></font> {$vd['lang']['moneyunit']} 卡面值：<font color="#ff0000">{$vd['card']['price']}</font> {$vd['lang']['moneyunit']} 卡售价：<font color="#ff0000">{$vd['card']['cprice']}</font> {$vd['lang']['moneyunit']}
  <!--}-->
  </div>
  <div style="float:right;padding-top:4px;">
    <form action="index.php?m=mod_b2b&c=trade&a=state" method="post" style="margin:0px 0px 0px 0px;" onsubmit="return searchSubmit()">
    <input type="text" name="keywords" size="16" value="" style="vertical-align:middle;" class="custsearch" onMouseOver="iEvent('mouseover',this)" onFocus="iEvent('focus',this)" onBlur="iEvent('blur',this)" onMouseOut="iEvent('mouseout',this)" />
    <select name="tradestate" style="vertical-align:middle;font-size:14px;">
      <option value="1" <!--if($vd['tradestate']==1){-->selected<!--}-->>全部状态</option>
      <option value="0" <!--if($vd['tradestate']==0){-->selected<!--}-->>有效状态</option>
    </select>
    <input type="submit" value=" 卡状态查询 " style="vertical-align:middle;" class="button"/>
    </form>
  </div>
</div>
<div id="tip" style="display:none">
  <span id="tiptable">此页中所有 <b><span id="ncheck"></span></b> 条记录已选中 </span> 
  <span id="tipspan">
    <a href="javascript:CheckTotle(1,0)">点此选择当前列表中所有 <b></b> 条记录>></a>
  </span>
</div>
<table id="thead" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="30px">
      <input name="chkall" disabled id="chkall" type="checkbox" class="checkbox" onclick="CheckAll(this)" onFocus='this.blur()'/></td>
    <td width="250px"><b>说明</b></td>
    <td width="80px" align="center"><b>支出({$vd['lang']['moneyunit']})</b></td>
    <td width="80px" align="center"><b>收入({$vd['lang']['moneyunit']})</b></td>
    <td width="80px" align="center"><b>交易后({$vd['lang']['moneyunit']})</b></td>
    <td width="140px" align="center"><b>时间</b></td>
    <td width="35px" align="center"><b>状态</b></td>
    <td width="22px"><img src="{$vd['sc']}images/icon_edit.gif"/></td>
    <td class="endtd">
      <div class="infoicon" style="color:#cccccc"><b><u>>></u></b></div>
    </td>
  </tr>
</table>
<div id="content">
  <!--if(count($vd['items']) == 0) {-->
  <table  width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right" colspan="20">无任何记录</td>
  </tr>
  </table>
  <!--}-->
  <form id="cform" name="form" method="post" action="index.php?m=mod_b2b&c=trade&a=ItemDeal" onsubmit="return Check();">
  <table id="tbody"  border="0" cellspacing="0" cellpadding="0">
  <!--foreach($vd['items'] as $item) {-->
  <tr onmouseover="setoverbg(this)" onmouseout="setoutbg(this)">
    <td width="30px">
      <input type="checkbox" disabled name="id[]" id="idchk_{$item['tid']}" class="checkbox" value="{$item['tid']}" onclick="CheckThis(this)" onFocus='this.blur()'></input>
    </td>
    <td width="250px"><nobr><samp title="{$item['content']}">{$item['content']}</samp><nobr/></td>
    <td width="80px" align="center"> - {$item['outcome']}</td>
    <td width="80px" align="center"> + {$item['income']}</td>
    <td width="80px" align="center">{$item['fat']}</td>
    <td width="140px" >{$item['createdate']}</td>
    <td width="35px" ><!--if($item['state']==-1){--><font color="#cccccc">无效</font><!--}else{-->有效<!--}--></td>
    <td width="22px">
      <!--if($item['tradetype']==100){--><a href="index.php?m=mod_b2b&c=order&a=detail&ubzordno={$item['ordno']}"><img src="{$vd['sc']}images/icon_edit.gif"/></a><!--}else{--><font color="#cccccc">无</font><!--}-->
    </td>
    <td class="endtd" colspan="21" ></td>
  </tr>
  <!--}-->
</table>
</form>
<input type="hidden" value="1" id="totlePage"/>
<input type="hidden" value="1" id="thisPage"/>
</div>

<input type="hidden" value="index.php?m=mod_b2b&c=trade&a=state&keywords=<!--echo urlencode(getVar('keywords'));-->" id="url"/>
<input type="hidden" value="{$vd['op']}" id="params"/>
<div style="display:none;bottom:0px">
  <div class="tbBottom" id="tbBottom">
    <div style="float:left;padding-top:8px;">
      <strong> 总计 <font color="#ff0000"><span id="tol2"></span></font> 条</strong>
    </div>
    <div style="float:right;text-align:right;">
    <div id="page"></div>
    </div>
  </div>
</div>
<div id="load" style="display:none;">
  <div id="loadcontent" >页面加载中请稍等...</div>
</div>
</body>
<script type="text/javascript">
//第一参数，后边保留显示的列数
//第二参数，除最后一个参数外的保留参数的总宽度
tRows   = <!--echo count($vd['items'])-->;
tInfoA  = Array(0,0);
totleRows = <!--echo count($vd['items'])-->;
deltxt  = "销毁订单将无法恢复,您确定进行销毁操作吗？";
thisaction = "销毁";
thisdel = 0;
onedel  = 0;
sc = "{$vd['sc']}";
statistics = 0;
var resizeidx = 1;
</script>
<script type="text/javascript">
//当前表格配置
<!--//tinfo-->
 tInfo = Array();
<!--//endtinfo-->
</script>
<script src="{$vd['sc']}js/tools.js" type="text/javascript"></script>
</html>
<!--}-->