<?php
$job = 'add';
$title = '新增部门';
$dept_name='';
$dept_desc='';
$dept_id=0;
if(array_key_exists("job", $_REQUEST))
	$job = $_REQUEST['job'];
if($job=='mod')
{
	$title = '修改部门';
	$dept_id=$_REQUEST['dept_id'];
	require_once('../module/module.dept.php');
	$dept = new CModuleDept();
	$dept->InitModule($dept_id);
	if($dept->module != '')
	{
		$dept_name=$dept->module->dept_name;
		$dept_desc=$dept->module->dept_desc;
	}
}
?>
<input type='hidden' id='dept_id' value='<?php echo $dept_id?>'>
<table border=0 cellspacing='1' cellpadding='0' width=100% bgcolor='#ffffff'>
	<tr bgcolor="#efefef" height=20>
		<td colspan=2>
			<b><span id="dept_form_desc"><?php echo $title?></span></b>
			<hr size=1>
		</td>
	</tr>
	<tr>
		<td align=right width=80>部门名称:</td>
		<td><input type=text id="dept_name" class=box value='<?php echo $dept_name?>'></td>
	</tr>
	<tr>
		<td align=right>部门描述:</td>
		<td><input type=text id="dept_desc" class=box size=40 value='<?php echo $dept_desc?>'></td>
	</tr>
	<tr height=30>
		<td colspan=2 bgcolor="#efefef">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type=button value=" 提交 " class=btn onclick="SubmitDept('<?php echo $job?>')">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type=button value=" 取消 " class=btn onclick="CloseDialog(0)">
		</td>
	</tr>
</table>