📄 add.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/utility_org.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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
if ( trim( $DEPT_NAME ) == "" )
{
message( "错误", "部门名称不能为空" );
button_back( );
exit( );
}
$query = "insert into DEPARTMENT(DEPT_NAME,TEL_NO,FAX_NO,DEPT_NO,DEPT_PARENT,MANAGER,LEADER1,LEADER2,DEPT_FUNC) values ('".$DEPT_NAME."','{$TEL_NO}','{$FAX_NO}','{$DEPT_NO}','{$DEPT_PARENT}','{$TO_ID}','{$TO_ID3}','{$TO_ID4}','{$DEPT_FUNC}')";
exequery( $connection, $query );
$DEPT_ID = mysql_insert_id( );
cache_department( );
add_log( 3, $DEPT_ID, $LOGIN_USER_ID );
echo "\r\n<script>\r\nparent.dept_list.location.reload();\r\nlocation=\"dept_new.php?DEPT_ID=";
echo $DEPT_PARENT;
echo "\";\r\n</script>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -