{load(fhead)}
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="{$vd['root']}index.php?m=mod_b2b&a=Home">直销商管理系统</a> >> 帐户管理 >> 员工管理</span></div>
	
	<div id="hearder"><span>下属员工列表</span></div>
	<form name="form1" method="post" action="">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
		<tr>
		<td width="3%" class="heardertop1">&nbsp;</td>
		<td width="8%" class="heardertop1">编号</td>
		<td width="10%" class="heardertop1">用户名</td>
		<td width="8%" class="heardertop1">姓名</td>
		<td width="5%" class="heardertop1">状态</td>
		<td width="29%" class="heardertop1">安全设置</td>
		<td width="6%" class="heardertop1">交易密码</td>
		<td width="6%" class="heardertop1">日限额</td>
		<td width="5%" class="heardertop1">购价</td>
		<td width="7%" class="heardertop1">售价</td>
		<td width="8%" class="heardertop1">添加时间</td>
		<td width="5%" class="heardertop1">修改</td>
		</tr>
		
		<!--foreach($vd['items'] as $item) {-->
		<tr class="stline" onmouseover="this.className='nd'" onmouseout="this.className='stline'">
		<td><input type="checkbox" name="staffid[]" value="{$item['staffid']}"></td>
		<td>{$item['staffid']}</td>
		<td>{$item['staffname']}</td>
		<td>{$item['realname']}&nbsp;</td>
		<td><font color=#ff0000><!--if($item['frozen'] == 1){--> <font color="#ff0000">冻结</font> <!--}else{--> <font color="#008800">启动</font> <!--}--></font></td>
		<td align=left>
			密保卡：<!--if($item['mibaokacheck'] == 1){--><font color=#0000ff>已绑</font><!--}else{--><font color=#cccccc>未绑</font><!--}--> 令牌：<!--if($item['mobilecheck'] == 1){--><font color=#0000ff>已绑</font><!--}else{--><font color=#cccccc>未绑</font><!--}-->
			<!--if(0){-->所在地：<!--if($item['addrcheck'] == 1){--><font color=#0000ff>已绑</font><!--}else{--><font color=#cccccc>未绑</font><!--}-->  <!--}-->随机密码：<!--if($item['randcheck'] == 1){--><font color=#0000ff>启用</font><!--}else{--><font color=#cccccc>未用</font><!--}--><br/>
			IP：<!--if($item['ipcheck'] == 1){--><font color=#0000ff>已绑</font><!--}else{--><font color=#cccccc>未绑</font><!--}--> 网卡：<!--if($item['maccheck'] == 1){--><font color=#0000ff>已绑</font><!--}else{--><font color=#cccccc>未绑</font><!--}--> 硬盘：<!--if($item['hdecheck'] == 1){--><font color=#0000ff>已绑</font><!--}else{--><font color=#cccccc>未绑</font><!--}--> CPU：<!--if($item['cpucheck'] == 1){--><font color=#0000ff>已绑</font><!--}else{--><font color=#cccccc>未绑</font><!--}--></td>
		<td><!--if($item['checktradepwd'] == 0){--> <font color="#ff0000">未启用</font> <!--}else{--> <font color="#0000ff">启用</font> <!--}--></font></td>
		<td><!--if($item['dayconsum'] > 0){--> <font color="#ff0000">限制</font> <!--}else{--> <font color="#0000ff">不限</font> <!--}--></font></td>
		<td><!--if($item['canseeprice'] == 0){--> <font color="#ff0000">不显示</font> <!--}else{--> <font color="#0000ff">显示</font> <!--}--></td>
		<td><!--$tmp=explode('|',$item['ini']);if(isset($tmp[0])&&$tmp[0]==1){--> <font color="#0000ff">能修改</font> <!--}else{--> <font color="#ff0000">不能修改</font> <!--}--></td>
		<td>{$item['createdate']}</td>
		<td><a href="index.php?m=mod_agent&c=staff&a=detail&staffid={$item['staffid']}"><img src="{$vd['content']}images/icon_xg.gif" width="16" height="16" border="0"></a></td>
		</tr>
		<!--}-->
		</table>
	</td>
	</tr>
	</table>
	
	<div id="page">
		<div id="add">
			<input name="button1" type="button" class="buttonadd" value="新增" onclick="location.href='index.php?m=mod_agent&c=Staff&a=Add';">
			<input name="button2" type="button" class="buttonnor" value="全选" onClick="CheckAll(this.form);">
			<input name="button2" type="button" class="buttonnor" value="反选" onClick="CheckOthers(this.form)">
			<input name="button4" type="button" class="buttondel" value="删除" onClick="set('Del')">
			<input name="button4" type="button" class="buttonadd" value="解绑" onClick="set('NoBind')">
		</div>
	</div>
	<div id="adddiv" style="position:absolute;top:100px;left:230px;;width:380px;display:none">
  	<div style="padding:20px;background:#F1F5FA;border:5px #75BCD7 solid">
  	<div style="font-size:14px;font-weight:bold;padding:5px;float:left">输入密码确认</div>
  	<div style="float:right;"><img src="{$vd['content']}images/icon_del.gif" onclick="disp('adddiv')" style="cursor:pointer"/></div>
  	<table border="0" cellspacing="0" cellpadding="0" width="100%">
      <tr>
        <td width="25%" height="35px" align="center">超级密码</td>
        <td width="75%"><input type="password" class="input" style="font-weight:normal" name="superpwd" size="24"/></td>
      </tr>
      <tr>
      	<td width="25%"></td>
        <td width="75%">
        	<input type="hidden" name="a"  id="a" value=""/>
        	<input type="submit" value="提 交" class="button"/>
        	<input type="button" value="取 消" onclick="disp('adddiv')" class="button"/>
        </td>
      </tr>
    </table>
    </div>
  </div>
	</form>
<script type="text/javascript">
	var $=function(id){
		return document.getElementById(id);
	}
function CheckOthers(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			if (e.checked==false)
			{
				e.checked = true;
			}
			else
			{
				e.checked = false;
			}
	}
}

function set(act)
{
	$("a").value = act;
	disp("adddiv");
}

function CheckAll(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			e.checked = true
	}
}

function disp(idx)
{
	$(idx).style.display = ($(idx).style.display == "") ? "none" : "";
}
</script>
</body>
</html>
