add.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 34 行
PHP
34 行
<?
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">
';
$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 '
';
echo '<s';
echo 'cript>
parent.dept_list.location.reload();
location="dept_new.php?DEPT_ID=';
echo $DEPT_PARENT;
echo '";
</script>
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?