📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/conn.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\r\n<script Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n if(document.form1.BYNAME_NAME.value==\"\")\r\n { alert(\"文件夹别名不能为空!\");\r\n return (false);\r\n }\r\n return (true);\r\n}\r\nfunction delete_byname()\r\n{\r\n msg=\"确定要删除别名吗?\";\r\n if(window.confirm(msg))\r\n {\r\n URL=\"./delete_byname.php?FILE_SORT=";
echo $FILE_SORT;
echo "&SORT_ID=";
echo $SORT_ID;
echo "\";\r\n window.location=URL;\r\n }\r\n}\r\n</script>\r\n</head>\r\n\r\n";
if ( !stristr( $HTTP_REFERER, "/general/file_folder/folder.php" ) )
{
exit( );
}
$query = "SELECT BYNAME_NO,BYNAME_NAME from FILE_SORT_BYNAME where SORT_ID=".$SORT_ID." and USER_ID='{$LOGIN_USER_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$BYNAME_NO = $ROW['BYNAME_NO'];
$BYNAME_NAME = $ROW['BYNAME_NAME'];
}
echo "\r\n<body class=\"bodycolor\" topmargin=\"0\" onload=\"document.form1.BYNAME_NAME.focus();\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><b><span class=\"Big1\"> 设置子文件夹别名</span></b>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n <table border=\"0\" width=\"450\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form action=\"submit.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n <tr>\r\n <td nowrap class=\"TableData\"> 别名排序号:</td>\r\n <td class=\"TableData\">\r\n <input type=\"text\" name=\"BYNAME_NO\" size=\"20\" maxlength=\"20\" class=\"BigInput\" value=\"";
echo $BYNAME_NO;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\"> 文件夹别名:</td>\r\n <td class=\"TableData\">\r\n <input type=\"text\" name=\"BYNAME_NAME\" size=\"25\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $BYNAME_NAME;
echo "\">\r\n </td>\r\n </tr>\r\n <tr align=\"center\" class=\"TableControl\">\r\n <td colspan=\"2\" nowrap>\r\n <input type=\"hidden\" name=\"FILE_SORT\" value=\"";
echo $FILE_SORT;
echo "\">\r\n <input type=\"hidden\" name=\"SORT_ID\" value=\"";
echo $SORT_ID;
echo "\">\r\n <input type=\"hidden\" name=\"OP\" value=\"\">\r\n <input type=\"submit\" value=\"确定\" class=\"BigButton\"> \r\n <input type=\"button\" value=\"删除\" class=\"BigButton\" onClick=\"delete_byname();\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"history.back();\">\r\n </td>\r\n </tr>\r\n </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -