<?
require_once("module/module.user.php");
$users = new CModuleUser();
$users->Init();
?>
<span class="big"><?php echo $ln["user_mgr"]["user"]?></span> 
<span class="link" id="add_user"><img src="imgs/b_bookmark.png" class="icon">新增用户</span>
<hr size=1 width=80% align=left color=#CCCCCC>
<table border=0 cellspacing='1' cellpadding='0' bgcolor='#cccccc'>
	<tr bgcolor="#efefef" height=24>
		<td width=120 align=center><b>用户名称</td>
		<td width=120 align=center><b>真实姓名</td>
		<td width=100 align=center><b>所属部门</td>
		<td width=100 align=center><b>角色</td>
		<td width=120 align=center><b>邮件地址</td>
		<td width=120 align=center><b>IP地址</td>
		<td width=120 align=center><b>联系电话</td>
		<td width=80 align=center><b>状态</td>
		<td width=80 colspan=2 align=center><b>操作</td>
	</tr>
	<?php for($i=0;$i<$users->GetSize();$i++){?>
		<tr bgcolor="#ffffff" height=24 onmouseover="setPointer(this, 'over', '#D0DCE0', '#ffffff');" onmouseout="setPointer(this, 'out', '#D0DCE0', '#ffffff');">
			<td width=120 align=center> <?php echo $users->modules[$i]->user_name ;?> </td>
			<td width=120 align=center> <?php echo $users->modules[$i]->real_name ;?> </td>
			<td width=100 align=center> <?php echo $users->modules[$i]->dept_name ;?> </td>
			<td width=100 align=center> <?php echo $users->modules[$i]->role_name ;?> </td>
			<td width=120 align=center> <?php echo $users->modules[$i]->email ;?> </td>
			<td width=120 align=center> <?php echo $users->modules[$i]->ip ;?> </td>
			<td width=120 align=center> <?php echo $users->modules[$i]->phone ;?> </td>
			<td width=80 align=center> <?php echo $users->modules[$i]->user_state ;?> </td>
			<td align=center><img src="imgs/b_edit.png" alt="编辑" id="edit_user" class="link" onclick="ClickEditUser(<?php echo $users->modules[$i]->user_id?>)"></td>
			<td align=center><img src="imgs/b_drop.png" alt="删除" id="del_user" class="link" onclick="ClickDelUser(<?php echo $users->modules[$i]->user_id?>, '<?php echo $users->modules[$i]->user_name; ?>')"></td>
		</tr>
	<?php }?>
</table>