{load(fhead)}
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="{$vd['root']}index.php?m=mod_b2b&c=Dealer&a=home">经销商管理系统</a> >> 下属客户管理 >> 代下级注册帐号</span></div>
	<div id="hearder"><span>管理下家资料</span></div>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<form method="post" action="index.php?m=mod_agent&c=underling&a=save">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
    <tr>
      <td width="22%" class="tableleft1">下家帐号：</td>
      <td width="78%" align="left" class="tableright1">{$vd['data']['aname']}</td>
    </tr>
    <tr>
      <td class="tableleft1">状态：</td>
      <td class="tableright1">
        <select name="frozen">{#Option($vd['state'], $vd['data']['frozen'])}</select>
      </td>
    </tr>
    <tr>
      <td class="tableleft1">下家级别：</td>
      <td class="tableright1">
      	<select name="alv">{#Option($vd['ranks'], $vd['data']['alv'], 'name', 'id')}</select>
      </td>
    </tr>
    
    <tr>
      <td class="tableleft1">最后登陆IP：</td>
      <td class="tableright1">{$vd['data']['lastip']}</td>
    </tr>
    <tr>
      <td class="tableleft1">最后登陆时间：</td>
      <td class="tableright1">{$vd['data']['lastdate']}</td>
    </tr>
    <tr>
      <td class="tableleft1">注册IP：</td>
      <td class="tableright1">{$vd['data']['regip']}</td>
    </tr>
    <tr>
      <td class="tableleft1">注册时间：</td>
      <td class="tableright1">{$vd['data']['regdate']}</td>
    </tr>
    <tr style="display:none">
      <td class="tableleft1">下家权限：</td>
      <td class="tableright1">
        <input type="checkbox" value="1" id="rights_0" name="rights_0"/>售卡
        <input type="checkbox" value="1" id="rights_1" name="rights_1"/>修改价格
        <input type="checkbox" value="1" id="rights_2" name="rights_2"/>管理下级
      </td>
    </tr>
    <tr>
      <td class="tableleft1" height="50px">&nbsp;</td>
      <td class="tableright1"><input type="submit" id="mysubmit" value="确认提交" class="button"/> <input type="reset" value="重新填写" class="button"/></td>
    </tr>
    <input type="hidden" value="{$vd['data']['rights']}" id="thisright"/>
    <input type="hidden" value="{$vd['data']['aid']}" name="aid" id="ubzaid"/>
  </table>
  </form> 
  </td>
	</tr>
</table>
</body>
</html>