📄 update.php
字号:
<?php
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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$SORT_NAME = str_replace( "&", "&", $SORT_NAME );
$connection = openconnection( );
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_NAME='{$SORT_NAME}',SORT_TYPE='{$SORT_TYPE}',DEPT_ID={$DEPT_ID} where SORT_ID={$SORT_ID}";
exequery( $connection, $query );
header( "location: index.php" );
echo "\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -