📄 edit.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/td_core.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.WIN_DESC.value==\"\")\r\n { alert(\"快捷方式名称不能为空!\");\r\n return (false);\r\n }\r\n if(document.form1.WIN_PATH.value==\"\")\r\n { alert(\"快捷方式路径不能为空!\");\r\n return (false);\r\n }\r\n}\r\n\r\nfunction set_path()\r\n{\r\n document.form1.WIN_PATH.value=document.form1.WIN_PATH_FILE.value;\r\n}\r\nfunction selectType(type)\r\n{\r\n\tif(type==1)\r\n\t{\r\n\t\tdocument.form1.type1.style.display=\"\";\r\n\t\tdocument.form1.type2.style.display=\"none\";\r\n\t}\r\n\telse\r\n {\r\n\t document.form1.type2.style.display=\"\";\r\n\t\tdocument.form1.type1.style.display=\"none\";\r\n\t}\r\n}\r\n</script>\r\n</head>\r\n\r\n";
$query = "SELECT * from WINEXE where WIN_ID='".$WIN_ID."' and USER_ID='{$LOGIN_USER_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$WIN_ID = $ROW['WIN_ID'];
$WIN_NO = $ROW['WIN_NO'];
$WIN_DESC = $ROW['WIN_DESC'];
$WIN_PATH = $ROW['WIN_PATH'];
}
echo "\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.WIN_NO.focus();\">\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\"><span class=\"big3\"> 编辑快捷方式</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<table class=\"TableBlock\" width=\"600\" align=\"center\">\r\n <form action=\"update.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n <tr>\r\n <td nowrap class=\"TableData\" width=\"100\">序号:</td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"WIN_NO\" class=\"BigInput\" size=\"10\" maxlength=\"25\" value=\"";
echo $WIN_NO;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">快捷方式名称:</td>\r\n <td nowrap class=\"TableData\">\r\n <input type=\"text\" name=\"WIN_DESC\" class=\"BigInput\" size=\"25\" value=\"";
echo $WIN_DESC;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">程序路径:</td>\r\n <td nowrap class=\"TableData\">\r\n <select id=selType class=\"SmallSelect\" onchange=selectType(this.value)>\r\n \t\t<option value='1'>手工输入路径</options>\r\n \t\t<option value='2'>浏览选择路径</options>\r\n \t</select><br>\r\n \t <input type=\"text\" id=\"type1\" name=\"WIN_PATH\" value=\"";
echo $WIN_PATH;
echo "\" class=\"BigInput\" size=\"50\">\r\n <input type=\"file\" id=\"type2\" name=\"WIN_PATH_FILE\" style=\"display:none\" value=\"";
echo $WIN_PATH;
echo "\" class=\"BigInput\" size=\"50\">\r\n <br>\r\n 本机Windows程序路径,如<br>\r\n C:\\Program Files\\Windows Media Player\\wmplayer.exe<br><br>\r\n 也可以定义使用IE访问网址,如<br>\r\n iexplore http://";
echo $TD_MYOA_WEB_SITE;
echo " </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n <input type=\"hidden\" value=\"";
echo $WIN_ID;
echo "\" name=\"WIN_ID\">\r\n <input type=\"submit\" value=\"确定\" class=\"BigButton\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onclick=\"location='index.php'\">\r\n </td>\r\n </form>\r\n</table>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -