📄 departadd.php
字号:
<html>
<head>
<title>部门管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<form name="depman" action="adddepart.php" method="post" >
<table align=center cellspacing=2 border><caption><font size="+3"><B>部门管理表</B></font></caption>
<tr><TH bgcolor="008040">部门名称<TH bgcolor="008040">部门编号<TH bgcolor="008040">部门责任人</tr>
<TR>
<td bgcolor="200060" align=center width="33%"><input type="text" name="depart" size="20" value="监视组"></td>
<td bgcolor="200060" align=center width="33%"><input type="text" name="depnum" size="3" value="007"></td>
<td bgcolor="200060" align=center width="33%"><input type="text" name="master" size="8" value="张三"></td>
</TR>
<TR><TH bgcolor="008040" colspan=3>部门职责</tr>
<tr><td colspan=3> <textarea name="respon" rows="6" cols="100%" >简要介绍该部门职责
添加部门要提供部门名称,部门编号,负责人及部门简介</textarea></td>
</tr>
<tr><td bgcolor="008040" align=center width="33%"><select name="man" size=1 onChange="showopt()">
<option value="add" SELECTED>添加部门资料
<option value="delete">删除部门资料
<option value="modify">修改部门资料
</select></td>
<td bgcolor="008040" align=center width="33%"><select name="modopt" size=1 >
<option value="name2id">
<option value="id2name">
<option value="name2master">
<option value="id2master">
<option value="name2resp">
<option value="id2resp">
</select></td>
<td bgcolor="008040" align=center width="33%"><input type="submit" name="depadd" size="8" value="完成提交按这里"></td></tr>
</table>
</form>
<script language="javascript">
function showopt() {
if (document.depman.man.options[2].selected) {
document.depman.modopt.options[0].text="以名称改编号";
document.depman.modopt.options[1].text="以编号改名称";
document.depman.modopt.options[2].text="以名称改责任人";
document.depman.modopt.options[3].text="以编号改责任人"
document.depman.modopt.options[4].text="以名称改职责";
document.depman.modopt.options[5].text="以编号改职责";
location.reload}
else {
document.depman.modopt.options[0].text="";
document.depman.modopt.options[1].text="";
document.depman.modopt.options[2].text="";
document.depman.modopt.options[3].text="";
document.depman.modopt.options[4].text="";
document.depman.modopt.options[5].text="";
location.reload
}
switch(document.depman.man.options.selectedIndex) {
case 0:
document.depman.respon.value="添加部门要提供部门名称,部门编号,负责人及部门简介";
break;
case 1:
document.depman.respon.value="删除可依部门名称或编号进行";
break;
case 2:
document.depman.respon.value="可依部门名称或编号对部门进行修改";
break;
};
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -