<?php widget("fhead");include($path_cache.DS."mod_agent_Shared_fhead.php"); ?>
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="<?php echo $vd['root']; ?>index.php?m=mod_b2b&c=Dealer&a=home">经销商管理系统</a> >> 业务员管理 >> 业务员帐户管理</span></div>
	<div id="type">
		<ul><li><a href="index.php?m=mod_agent&c=Sales&a=Add"><span class=type>业务员添加</span></a></li><li><span class=type>业务员管理</span></li>
		</ul>
	</div>
	
	<div id="hearder"><span>业务员列表</span></div>
	<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="10%" class="heardertop1">编号</td>
		<td width="10%" class="heardertop1">用户名</td>
		<td width="20%" class="heardertop1">业务员姓名</td>
		<td width="10%" class="heardertop1">绑定下级</td>
		<td width="15%" class="heardertop1">业绩比例</td>
		<td width="25%" class="heardertop1">添加时间</td>
		<td width="5%" class="heardertop1">修改</td>
		<td width="5%" class="heardertop1">删除</td>
		</tr>
		
		<?php foreach($vd['items'] as $item){ ?>
		<tr class="stline" onmouseover="this.className='nd'" onmouseout="this.className='stline'">
		<td><?php (DisplayCode($item['id'], 3)); ?></td>
		<td><?php echo $item['name']; ?></td>
		<td><?php echo $item['realname']; ?></td>
		<td><?php (DisplayCode($item['underlingid'], 4)); ?></td>
		<td><?php echo $item['sellscale'] * 100; ?>%</td>
		<td><?php echo $item['createdate']; ?></td>
		<td><a href="index.php?m=mod_agent&c=Sales&a=Detail&id=<?php echo $item['id']; ?>"><img src="<?php echo $vd['content']; ?>images/icon_xg.gif" border="0"></a></td>
		<td><a href="index.php?m=mod_agent&c=Sales&a=Del&id=<?php echo $item['id']; ?>" onclick="{if(confirm('确认要删除业务员：<?php echo $item['realname']; ?>吗？删除后无法再查询该业务员的业绩!')){return true;}return false;}"><img src="<?php echo $vd['content']; ?>images/icon_del.gif" border="0"></a></td>
		</tr>
		<?php } ?>
		</table>
	</td>
	</tr>
	</table>
	
</body>
</html>
