⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.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";
echo "<s";
echo "cript 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 delete_WIN(WIN_ID)\r\n{\r\n msg='确认要删除该项快捷方式么?';\r\n if(window.confirm(msg))\r\n {\r\n  WIN=\"delete.php?WIN_ID=\" +";
echo " 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</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\"><im";
echo "g src=\"/images/notify_new.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 添加Windows快捷方式</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n  <form action=\"add.php\"  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">  \r\n   <tr>\r\n    <td nowrap class=\"TableData\">序号:</td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"WIN_NO\" cl";
echo "ass=\"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        <input type=\"text\" name=\"WIN_PATH\" class=\"BigInput\" size=\"40\" value";
echo "=\"\"><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://www.sohuu.com\r\n    </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</";
echo "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\">";
echo "<s";
echo "pan 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";
$connection = openconnection( );
$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 border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\">\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   ";
	echo "   </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 + -