📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>快捷组</title>\n<meta http-equiv=\"Content-Type\"\tcontent=\"text/html; charset=gb2312\">\r\n";
echo "<s";
echo "cript>\r\nfunction borderize_on(targetelement)\r\n{\r\n color=\"#003FBF\";\r\n targetelement.style.borderColor=\"black\";\r\n targetelement.style.backgroundColor=color;\r\n targetelement.style.color=\"white\";\r\n targetelement.style.fontWeight=\"bold\";\r\n}\r\n\r\nfunction borderize_off(targetelement)\r\n{\r\n targetelement.style.backgroundColor=\"\";\r\n targetelement.style.borderColor=\"\";\r\n targetelement.style.color=\"\";\r\n ta";
echo "rgetelement.style.fontWeight=\"\";\r\n}\r\n\r\n//-------- 打开windows程序 -------\r\nfunction winexe(NAME,PROG)\r\n{\r\n URL=\"/general/winexe?PROG=\"+PROG+\"&NAME=\"+NAME;\r\n window.open(URL,\"winexe\",\"height=100,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=0,left=0,resizable=no\");\r\n}\r\n</script>\r\n</head>\n\r\n";
$query = "SELECT * from USER where USER_ID='{$LOGIN_USER_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$MENU_HIDE = $ROW['MENU_HIDE'];
$SHORTCUT = $ROW['SHORTCUT'];
}
echo "\r\n<body topmargin=\"3\" leftmargin=\"0\" rightMargin=\"0\" class=\"panel\" marginwidth=\"0\" marginheight=\"0\">\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n <tr class=\"TableHeader\">\r\n <td align=\"center\">菜单快捷组<a href=\"javascript:parent.openURL('/general/ipanel/shortcut/menu_define')\"> <u>定义</u></a></td>\r\n </tr>\r\n";
$SHORTCUT_ARRAY = explode( ",", $SHORTCUT );
$ARRAY_COUNT = sizeof( $SHORTCUT_ARRAY );
$I = 0;
for ( ; $I < $ARRAY_COUNT; ++$I )
{
if ( $SHORTCUT_ARRAY[$I] == "" )
{
}
else
{
$FUNC_ID = $SHORTCUT_ARRAY[$I];
$query = "SELECT * from SYS_FUNCTION where FUNC_ID={$FUNC_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$FUNC_NAME = $ROW['FUNC_NAME'];
$FUNC_CODE = $ROW['FUNC_CODE'];
}
if ( strstr( $FUNC_CODE, "http://" ) )
{
$FUNC_IMAGE = "menu_url";
}
else if ( strstr( $FUNC_CODE, "file://" ) )
{
$FUNC_IMAGE = "winexe";
}
else if ( strstr( $FUNC_CODE, "/" ) )
{
$FUNC_IMAGE = substr( $FUNC_CODE, 0, strpos( $FUNC_CODE, "/" ) );
}
else
{
$FUNC_IMAGE = $FUNC_CODE;
}
if ( $FUNC_CODE == "bbs2/admin" )
{
$FUNC_IMAGE = "system";
}
if ( strstr( $FUNC_CODE, "http://" ) )
{
$CLICK_STR = "parent.openURL('{$FUNC_CODE}')";
}
else if ( strstr( $FUNC_CODE, "file://" ) )
{
$CLICK_STR = "winexe('{$FUNC_NAME}','".str_replace( "\\", "/", str_replace( "file://", "", $FUNC_CODE ) )."')";
}
else
{
$CLICK_STR = "parent.openURL('/general/{$FUNC_CODE}')";
}
echo " <tr class=\"TableData\" onclick=\"";
echo $CLICK_STR;
echo "\" onmouseover=\"borderize_on(this)\" onmouseout=\"borderize_off(this)\" style=\"cursor:hand\">\r\n <td>\r\n <img src=\"/images/menu/";
echo $FUNC_IMAGE;
echo ".gif\" border=\"0\" WIDTH=\"19\" HEIGHT=\"17\" alt=\"";
echo $FUNC_NAME;
echo "\"> ";
echo $FUNC_NAME;
echo " </td>\r\n </tr>\r\n";
}
}
echo "\r\n</table>\r\n\r\n<br>\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\">\r\n <tr class=\"TableHeader\">\r\n <td align=\"center\">Windows快捷组<a href=\"javascript:parent.openURL('/general/ipanel/shortcut/win_define')\"> <u>定义</u></a></td>\r\n </tr>\r\n\r\n";
$query = "SELECT * from WINEXE where USER_ID='{$LOGIN_USER_ID}' order by WIN_NO";
$cursor = exequery( $connection, $query );
while ( $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'];
$WIN_PATH = str_replace( "\\", "/", $WIN_PATH );
echo " <tr class=\"TableData\" onclick=\"winexe('";
echo $WIN_DESC;
echo "','";
echo $WIN_PATH;
echo "')\" onmouseover=\"borderize_on(this)\" onmouseout=\"borderize_off(this)\" style=\"cursor:hand\">\r\n <td title=\"程序路径 ";
echo $WIN_PATH;
echo "\">\r\n <img src=\"/images/menu/winexe.gif\" border=\"0\" WIDTH=\"19\" HEIGHT=\"17\"> ";
echo $WIN_DESC;
echo " </td>\r\n </tr>\r\n";
}
echo "\r\n</table>\r\n\r\n</body>\n</html>\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -