<!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'];-->
<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=Loan&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="index.php" onFocus="this.blur()" title="查看用户相关帮助"><img src="{$vd['sc']}images/help.gif" style="vertical-align:middle" border="0"/></a></div>
</div>
<form id="cform" method="post" action="index.php?m=mod_b2b&c=Loan&a=CreateSave">
<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">{$item['company']}({$item['aid']})</td>
  </tr>
  <tr>
    <td class="tablelt">当前欠款：</td>
    <td class="tablert">{$item['arrears']} {$vd['lang']['moneyunit']} <a href="index.php?m=mod_b2b&c=Loan&stype=otherside&keywords={$item['aid']}"><u>记录</u></a></td>
  </tr>
  <tr>
    <td class="tablelt">借款金额：</td>
    <td class="tablert">
      <input type="text" class="myinput" style="font-weight:normal" name="dollars" size="20"/>
    </td>
  </tr>
  <tr>
    <td class="tablelt">欠款时间：</td>
    <td class="tablert">
      <input type="text" class="myinput" style="font-weight:normal" name="createdate" id="t1" size="20" value="<!--echo date("Y-m-d H:i:s");-->"/><img src="{$vd['sc']}images/calender.gif" onclick="dateDialog('t1')" style="vertical-align:middle;cursor:pointer;margin-left:0px;"/>
    </td>
  </tr>
  <tr>
    <td class="tablelt">约定还款：</td>
    <td class="tablert">
      <input type="text" class="myinput" style="font-weight:normal" name="deadline" id="t2" size="20" value="<!--echo date("Y-m-d H:i:s" , strtotime("30 days"));-->"/><img src="{$vd['sc']}images/calender.gif" onclick="dateDialog('t2')" style="vertical-align:middle;cursor:pointer;margin-left:0px;"/>
    </td>
  </tr>
  <tr>
    <td class="tablelt">备注说明：</td>
    <td class="tablert">
      <textarea rows="3" name="reason" cols="28" id="reason" style="width:200px; color:#5c5c5c"></textarea>
    </td>
  </tr>
  <tr>
    <td class="tablelt">后台充值密码：</td>
    <td class="tablert">
      <input type="password" class="myinput" name="tradepwd" value="" size="20">
    </td>
  </tr>
  <tr>
    <td class="tablelt">说明：</td>
    <td class="tablert" style="font-size:12px">
      提交后，系统会给用户加款，同时增加一条<a href="index.php?m=mod_b2b&c=Loan&stype=otherside&keywords={$item['aid']}"><u>欠款记录</u></a>
    </td>
  </tr>
  <tr>
    <td class="tablelt" style="height:80px"> </td>
    <td class="tablert">
      <input type="submit" value="提 交 &gt;&gt;" name="b1" class="button"/>
      <input type="reset" value="重 置 &gt;&gt;" name="b1" class="button"/>
    </td>
  </tr>
</table>
<input type="hidden" value="0" name="bindchange" id="bindchange"/>
<input type="hidden" value="{$item['aid']}" name="aid" id="aid"/>
<input type="hidden" value="1" name="state" id="state"/>
</div>
<div class="cbodyFoot"></div>
</div>
<div id="opcontent" style="display:none">
  <div class="optxt">
    
  </div>
</div>
</form>
<div id="load" style="display:none;">
  <div id="loadcontent" >页面加载中请稍等...</div>
</div>
<script type="text/javascript">
  var ctablenum = 1;
  sc = "{$vd['sc']}";
</script>
<script src="{$vd['sc']}js/content.js" type="text/javascript"></script>
<script type="text/javascript">
 
  function setbind(val)
  {
    $("bindchange").value = val;
  }
  
  function reasondisp(obj)
  {
    $("reason").style.display = obj.value==0 ? "none" : "";
  }
  setTableInput();
  
  function setCustom(val)
  {
    $("remarks_custom").style.display = val == 1 ? "" : "none";
  }
  
  function setArea(obj)
  {
    if(obj.innerHTML == "请输入原因")
    {
      obj.innerHTML = "";
    }
  }
  
  function setBlur(obj)
  {
    if(obj.innerHTML == "")
    {
      obj.innerHTML = "请输入原因";
    }
  }
</script>
</body>
</html>
