📄 dept_new.php
字号:
<?php
include_once( "inc/reg_check.php" );
if ( $OA_REG_ON != 2 )
{
exit( );
}
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>部门/成员单位管理</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n if(document.form1.DEPT_NO.value==\"\")\r\n { alert(\"部门排序号不能为空!\");\r\n return (false);\r\n }\r\n\r\n if(document.form1.DEPT_NAME.value==\"\")\r\n { alert(\"部门名称不能为空!\");\r\n return (false);\r\n }\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.DEPT_NO.focus();\">\r\n\r\n";
if ( $DEPT_ID != "" )
{
$query = "SELECT * from DEPARTMENT where DEPT_ID={$DEPT_ID} order by DEPT_NO";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$LOCATION_NAME = $ROW['DEPT_NAME'];
}
}
else
{
$query = "SELECT * from UNIT";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$LOCATION_NAME = $ROW['UNIT_NAME'];
}
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/notify_new.gif\" height=\"22\" WIDTH=\"22\">";
echo "<s";
echo "pan class=\"big3\"> 新建部门/成员单位 - 当前节点:[";
echo $LOCATION_NAME;
echo "]</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n <form action=\"add.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n <tr>\r\n <td nowrap class=\"TableData\">部门排序号:</td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"DEPT_NO\" class=\"BigInput\" size=\"10\" maxlen";
echo "gth=\"200\"> 用于处于同一层次部门的排序,以及用户列表的排序\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">部门名称:</td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"DEPT_NAME\" class=\"BigInput\" size=\"25\" maxlength=\"25\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">电话:</td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" nam";
echo "e=\"TEL_NO\" class=\"BigInput\" size=\"25\" maxlength=\"25\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">传真:</td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"FAX_NO\" class=\"BigInput\" size=\"25\" maxlength=\"25\"> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">上级部门:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"DEPT_PARENT\" class=\"BigSelect\">\r\n <option value=\"0\">无</option>\r\n";
echo my_dept_tree( 0, $DEPT_ID, 0 );
echo " </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n <input type=\"submit\" value=\"新 建\" class=\"BigButton\" title=\"新建\" name=\"button\"> \r\n <input type=\"button\" value=\"返 回\" class=\"BigButton\" title=\"返回\" onclick=\"history.back();\">\r\n </td>\r\n </form>\r\n</table>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -