📄 user_submit.php
字号:
<?
function sort_user_update ($SORT_ID, $FLD_STR)
{
global $connection;
$query = 'select * from FILE_SORT where SORT_PARENT=' . $SORT_ID;
$cursor = exequery ($connection, $query);
while ($ROW = mysql_fetch_array ($cursor))
{
$SORT_ID = $ROW['SORT_ID'];
$USER_ID = $ROW['USER_ID'];
$DOWN_USER = $ROW['DOWN_USER'];
$NEW_USER = $ROW['NEW_USER'];
$MANAGE_USER = $ROW['MANAGE_USER'];
$USER_ID = check_id ($FLD_STR, $USER_ID, true);
$DOWN_USER = check_id ($FLD_STR, $DOWN_USER, true);
$NEW_USER = check_id ($FLD_STR, $NEW_USER, true);
$MANAGE_USER = check_id ($FLD_STR, $MANAGE_USER, true);
$query = 'update FILE_SORT set USER_ID=\'' . $USER_ID . '\',DOWN_USER=\'' . $DOWN_USER . '\',NEW_USER=\'' . $NEW_USER . '\',MANAGE_USER=\'' . $MANAGE_USER . '\' where SORT_ID=' . $SORT_ID;
exequery ($connection, $query);
echo $query;
sort_user_update ($SORT_ID, $FLD_STR);
}
}
include_once 'inc/auth.php';
include_once 'inc/check_type.php';
include_once 'inc/conn.php';
echo '
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
';
$query = 'select * from FILE_SORT where SORT_ID=' . $SORT_ID;
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$DOWN_USER = $ROW['DOWN_USER'];
$NEW_USER = $ROW['NEW_USER'];
$MANAGE_USER = $ROW['MANAGE_USER'];
$DOWN_USER = check_id ($FLD_STR, $DOWN_USER, true);
$NEW_USER = check_id ($FLD_STR, $NEW_USER, true);
$MANAGE_USER = check_id ($FLD_STR, $MANAGE_USER, true);
$query = 'update FILE_SORT set USER_ID=\'' . $FLD_STR . '\',DOWN_USER=\'' . $DOWN_USER . '\',NEW_USER=\'' . $NEW_USER . '\',MANAGE_USER=\'' . $MANAGE_USER . '\' where SORT_ID=' . $SORT_ID;
exequery ($connection, $query);
}
sort_user_update ($SORT_ID, $FLD_STR);
header ('location: set_user.php?SORT_ID=' . $SORT_ID);
echo '
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -