📄 add.php
字号:
<?
include_once 'inc/auth.php';
include_once 'inc/utility_all.php';
echo '
<html>
<head>
<title>增加部门</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
';
$connection = openconnection ();
$query = 'insert into DEPARTMENT(DEPT_NAME,TEL_NO,FAX_NO,DEPT_NO,DEPT_PARENT,DEPT_FUNC) values (\'' . $DEPT_NAME . '\',\'' . $TEL_NO . '\',\'' . $FAX_NO . '\',\'' . $DEPT_NO . '\',' . $DEPT_PARENT . ',\'' . $DEPT_FUNC . '\')';
exequery ($connection, $query);
$query = 'select * from DEPARTMENT where DEPT_NAME=\'' . $DEPT_NAME . '\' and TEL_NO=\'' . $TEL_NO . '\' and FAX_NO=\'' . $FAX_NO . '\' and DEPT_NO=\'' . $DEPT_NO . '\' and DEPT_FUNC=\'' . $DEPT_FUNC . '\'';
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$DEPT_ID = $ROW['DEPT_ID'];
}
add_log (3, $DEPT_ID, $LOGIN_USER_ID);
echo '
<script>
parent.dept_list.location.reload();
location="dept_new.php?DEPT_ID=';
echo $DEPT_PARENT;
echo '";
</script>
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -