<?php 
require_once("module/module.dept.php");
$depts = new CModuleDept();
$depts->Init();
?>
<span class="big"><?php echo $ln["user_mgr"]["dept"]?></span> 
<span class="link" id="add_dept"><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=200 align=center><b>部门描述</td>
		<td width=80 colspan=2 align=center><b>操作</td>
	</tr>
	<?php for($i=0;$i<$depts->GetSize();$i++){?>
		<tr bgcolor="#ffffff" height=24 onmouseover="setPointer(this, 'over', '#D0DCE0', '#ffffff');" onmouseout="setPointer(this, 'out', '#D0DCE0', '#ffffff');">
			<td align=center><?php echo $depts->modules[$i]->dept_name?></td>
			<td align=center><?php echo $depts->modules[$i]->dept_desc?></td>
			<td align=center><img src="imgs/b_edit.png" alt="编辑" id="edit_dept" class="link" onclick="ClickEditDept(<?php echo $depts->modules[$i]->dept_id?>)"></td>
			<td align=center><img src="imgs/b_drop.png" alt="删除" id="del_dept" class="link" onclick="ClickDelDept(<?php echo $depts->modules[$i]->dept_id?>, '<?php echo $depts->modules[$i]->dept_name?>')"></td>
		</tr>
	<?php }?>
</table>
