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