update.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 31 行

PHP
31
字号
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>修改文件夹</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
';
if ($SORT_TYPE != '2')
{
	$DEPT_ID = '0';
}
$query1 = 'SELECT * from FILE_SORT where SORT_NAME=\'' . $SORT_NAME . '\' and SORT_TYPE=\'' . $SORT_TYPE . '\' and DEPT_ID=' . $DEPT_ID . ' and SORT_ID<>' . $SORT_ID;
$cursor1 = exequery ($connection, $query1);
if ($ROW = mysql_fetch_array ($cursor1))
{
	message ('提示', '指定的文件夹开放范围中名为 ' . $SORT_NAME . ' 的文件夹已存在');
	button_back ();
	exit ();
}
$query = 'update FILE_SORT set SORT_NO=\'' . $SORT_NO . '\',SORT_NAME=\'' . $SORT_NAME . '\',SORT_TYPE=\'' . $SORT_TYPE . '\',DEPT_ID=' . $DEPT_ID . ' where SORT_ID=' . $SORT_ID;
exequery ($connection, $query);
header ('location: index.php');
echo '
</body>
</html>
';
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?