<!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">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="{$vd['sc']}css/main.css"/>
</head>
<body>
<!--$item = $vd['item'];-->
<!--$temp = explode('|', $vd['sys']['pwdconfig']);$cout=count($temp);-->
<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> <a href="index.php?m=mod_b2b&c=Agent&a=index" title="用户列表"><font color="#000">用户列表</font></a> <span style="font-size:7px;">>></span> <span style="font-size:12px;">用户资金/余额管理</span></div>
<div style="float:right;"><a href="javascript:toHelper()" onFocus="this.blur()" title="查看用户相关帮助"><img src="{$vd['sc']}images/help.gif" style="vertical-align:middle" border="0"/></a></div>
</div>
<form method="post" action="index.php?m=mod_b2b&c=Agent&a=LockSave&aid={$item['aid']}" name="cform" id="cform" onsubmit="return checklock()">
<div id="content" class="cwarpper">
<div class="cbodyHead"></div>
<div class="cwarpper1">
<div class="ctitle">用户资金管理 (单位：{$vd['lang']['moneyunit']})</div>
<div>
<table border="1" class="ctable" bordercolor="#86B9D6">
  <tr>
    <td width="13%">帐户可用余额</td>
    <td width="13%">自己冻结资金</td>
    <td width="13%">交易冻结资金</td>
    <td width="13%">系统冻结资金</td>
    <td width="13%">上级冻结资金</td>
    <td width="13%">代理所得利润</td>
    <td width="12%">供货所得收入</td>
    <td width="0%">当前欠款</td>
  </tr>
  <tr>
    <td width="13%">{$item['aremain']}</td>
    <td width="13%">{$item['selffrozenfunds']}</td>
    <td width="13%">{$item['tradefrozenfunds']}</td>
    <td width="13%">{$item['sysfrozenfunds']}</td>
    <td width="13%">{$item['bossfrozenfunds']}</td>
    <td width="13%">{$item['income']}</td>
    <td width="12%">{$item['funds']}</td>
    <td width="10%">{$item['arrears']}</td>
  </tr>
</table>
<table border="1" class="ctable" bordercolor="#86B9D6">
  <tr>
    <td class="tablelt">帐户名：</td>
    <td class="tablert">{$item['aname']}</td>
  </tr>
  <tr>
    <td class="tablelt">公司名：</td>
    <td class="tablert">{$item['company']}</td>
  </tr>
  <tr>
    <td class="tablelt">操作对象：</td>
    <td class="tablert">
      <select name="fromobject" id="fromobject">
        {#Option($vd['funds'])}
      </select>
    </td>
  </tr>
  <tr>
    <td class="tablelt">转化为：</td>
    <td class="tablert">
      <select name="toobject" id="toobject">
        {#Option($vd['funds'])}
      </select>
    </td>
  </tr>
  <tr>
    <td class="tablelt">操作金额：</td>
    <td class="tablert"><input type="text" class="myinput" style="font-weight:normal" name="dollars" id="dollars" size="24"/>{$vd['lang']['moneyunit']}</td>
  </tr>
  <!--if($temp[0] == 1){-->
  <tr>
    <td class="tablelt">管理员充值密码：</td>
    <td class="tablert"><input type="password" class="myinput" style="font-weight:normal" name="tradepwd" id="tradepwd" size="24"/></td>
  </tr>
  <!--}-->
  <tr>
    <td class="tablelt">操作原因：</td>
    <td class="tablert" style="height:120px">
      <textarea name="reason" cols="50" rows="5" scrolling="yes" style="padding:5px"></textarea>
    </td>
  </tr>
</table>
</div>
</div>
<div class="cbodyFoot"></div>
</div>
<div id="opcontent">
  <div class="optxt">
    <input type="hidden" value="{$vd['item']['id']}" name="ubzid"/>
    <input type="hidden" value="{$vd['item']['pid']}" name="ubzpid"/>
    <input type="submit" value="修 改 &gt;&gt;" name="b1" class="btn"/>
    <input type="reset" value="重 置 &gt;&gt;" name="b1" class="btn"/>
  </div>
</div>
</form>
<div id="load" style="display:none;">
  <div id="loadcontent" >页面加载中请稍等...</div>
</div>
<script type="text/javascript">
  var ctablenum = 1;
  var helperVal = 2;
  function checklock()
  {
    if($("dollars").value=="")
    {
      alert("金额不能为空");
      $("dollars").focus();
      loadDisp(0)
      return false;
    }
    
    if($("fromobject").options[$("fromobject").selectedIndex].value==$("toobject").options[$("toobject").selectedIndex].value)
    {
      alert("操作对应和转化对象不应该一致，请重新选择");
      loadDisp(0)
      return false;
    }
  }
</script>
<script src="{$vd['sc']}js/content.js" type="text/javascript"></script>
</body>
</html>
