📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/td_core.php" );
echo "\r\n<html>\r\n<head>\r\n<title>Windows快捷组管理</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\n\r\nfunction delete_WIN(WIN_ID)\r\n{\r\n msg='确认要删除该项快捷方式么?';\r\n if(window.confirm(msg))\r\n {\r\n WIN=\"delete.php?WIN_ID=\" + WIN_ID;\r\n window.location=WIN;\r\n }\r\n}\r\n\r\n\r\nfunction delete_all()\r\n{\r\n msg='确认要删除所有快捷方式么?';\r\n if(window.confirm(msg))\r\n {\r\n WIN=\"delete_all.php\";\r\n window.location=WIN;\r\n }\r\n}\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<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.WIN_NO.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/notify_new.gif\" align=\"absmiddle\"><span class=\"big3\"> 添加Windows快捷方式</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=\"add.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\">\r\n </td>\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\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">程序路径:</td>\r\n <td nowrap class=\"TableData\">\r\n \t<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>\r\n \t<br>\r\n \t <input type=\"text\" id=\"type1\" name=\"WIN_PATH\" class=\"BigInput\" size=\"50\">\r\n <input type=\"file\" id=\"type2\" style=\"display:none\" name=\"WIN_PATH_FILE\" class=\"BigInput\" size=\"50\" onchange=\"set_path()\"><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=\"submit\" value=\"添加\" class=\"BigButton\" title=\"添加快捷方式\" name=\"button\">\r\n </td>\r\n </form>\r\n</table>\r\n\r\n<br>\r\n\r\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"3\">\r\n <tr>\r\n <td background=\"/images/dian1.gif\" width=\"100%\"></td>\r\n </tr>\r\n</table>\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/notify_open.gif\" align=\"absmiddle\"><span class=\"big3\"> 管理Windows快捷组</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<br>\r\n<div align=\"center\">\r\n\r\n";
$query = "SELECT * from WINEXE where USER_ID='".$LOGIN_USER_ID."' order by WIN_NO";
$cursor = exequery( $connection, $query );
$WIN_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$WIN_COUNT;
$WIN_ID = $ROW['WIN_ID'];
$WIN_NO = $ROW['WIN_NO'];
$WIN_DESC = $ROW['WIN_DESC'];
$WIN_PATH = $ROW['WIN_PATH'];
if ( $WIN_COUNT == 1 )
{
echo "\r\n <table class=\"TableList\" width=\"600\" align=\"center\">\r\n\r\n";
}
echo " <tr class=\"TableData\">\r\n <td nowrap align=\"center\">";
echo $WIN_NO;
echo "</td>\r\n <td nowrap align=\"center\">";
echo $WIN_DESC;
echo "</td>\r\n <td>";
echo $WIN_PATH;
echo "</td>\r\n <td nowrap align=\"center\" width=\"80\">\r\n <a href=\"edit.php?WIN_ID=";
echo $WIN_ID;
echo "\"> 编辑</a>\r\n <a href=\"javascript:delete_WIN('";
echo $WIN_ID;
echo "');\"> 删除</a>\r\n </td>\r\n </tr>\r\n";
}
if ( 0 < $WIN_COUNT )
{
echo " <thead class=\"TableHeader\">\r\n <td nowrap align=\"center\">序号</td>\r\n <td nowrap align=\"center\">快捷方式名称</td>\r\n <td nowrap align=\"center\">程序路径</td>\r\n <td nowrap align=\"center\">操作</td>\r\n </thead>\r\n <thead class=\"TableControl\">\r\n <td nowrap align=\"center\" colspan=\"5\">\r\n <input type=\"button\" class=\"BigButton\" OnClick=\"javascript:delete_all();\" value=\"全部删除\">\r\n </td>\r\n </thead>\r\n </table>\r\n";
}
else
{
message( "", "尚未添加Windows快捷方式" );
}
echo "\r\n</div>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -