📄 edit.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.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";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n if(document.form1.DISK_NAME.value==\"\")\r\n { alert(\"请输入共享空间名!\");\r\n return (false);\r\n }\r\n\r\n if(document.form1.DISK_PATH.value==\"\")\r\n { alert(\"请输入共享空间地址!\");\r\n return (false);\r\n }\r\n\r\n if(document.form1.DISK_TYPE.value==\"2\" && document.form1.DEPT_ID.value==\"0\")\r\n { alert(\"请指定部门!\");\r\n return (fals";
echo "e);\r\n }\r\n\r\n return (true);\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.DISK_NAME.focus();\">\r\n<form action=\"update.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n";
$connection = openconnection( );
$query = "SELECT * from NETDISK where DISK_ID={$DISK_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$DISK_ID = $ROW['DISK_ID'];
$DISK_NAME = $ROW['DISK_NAME'];
$DISK_PATH = $ROW['DISK_PATH'];
$DISK_TYPE = $ROW['DISK_TYPE'];
$DEPT_ID = $ROW['DEPT_ID'];
}
echo "<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr class=\"tablehead1\">\r\n <td ><img src=\"/images/manage/edit.gif\" align=\"absmiddle\"> 编辑共享空间</td>\r\n </tr>\r\n <tr class=\"tablehead2\">\r\n <td><input name=\"image\" type=\"image\" src=\"../../../../images/button/submit.gif\" width=\"105\" height=\"20\" border=\"0\" >\r\n <a href=\"index.php\"><img src=\"../../../../images/button/return.gif\" w";
echo "idth=\"105\" height=\"20\" border=\"0\"></a></td>\r\n </tr>\r\n</table>\r\n<hr width=\"95%\" height=\"1\" align=\"left\" color=\"#ffffff\">\r\n <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" class=\"small\">\r\n <tr>\r\n <td width=\"31%\" class=\"TableLine2\"> 共间名:</td>\r\n <td width=\"69%\" class=\"TableLine1\">\r\n <input type=\"text\" name=\"DISK_NAME\" size=\"30\" class=\"BigInput\" value=\"";
echo $DISK_NAME;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\"> 空间地址(服务器的地址,如 d:\\soft):</td>\r\n <td class=\"TableLine1\">\r\n <input type=\"text\" name=\"DISK_PATH\" size=\"30\" class=\"BigInput\" value=\"";
echo $DISK_PATH;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\"> 共享权限:</td>\r\n <td class=\"TableLine1\"> \r\n ";
echo "<s";
echo "elect name=\"DISK_TYPE\" class=\"BigSelect\">\r\n <option value=\"1\" ";
if ( $DISK_TYPE == "1" )
{
echo "selected";
}
echo ">全体</option>\r\n <option value=\"2\" ";
if ( $DISK_TYPE == "2" )
{
echo "selected";
}
echo ">部门</option>\r\n <option value=\"3\" ";
if ( $DISK_TYPE == "3" )
{
echo "selected";
}
echo ">个人</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableLine2\"> 共享部门:</td>\r\n <td class=\"TableLine1\">\r\n ";
echo "<s";
echo "elect name=\"DEPT_ID\" class=\"BigSelect\">\r\n <option value=\"0\"></option>\r\n";
echo my_dept_tree( 0, $DEPT_ID, 0 );
echo " </select>\r\n\r\n </td>\r\n </tr>\r\n \r\n \r\n <input type=\"hidden\" value=\"";
echo $DISK_ID;
echo "\" name=\"DISK_ID\"> \r\n \r\n\r\n </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -