index.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 164 行
PHP
164 行
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>快捷组</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript>
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="";
ta';
echo 'rgetelement.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'];
}
echo '
<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';
}
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
{
if ((((600 <= $FUNC_ID) AND ($FUNC_ID <= 1000)) OR (strtolower (substr ($FUNC_CODE, -4)) == '.jsp')))
{
$CLICK_STR = (((''.'parent.openURL(\'/app/').$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">
<td>
<img src="/images/menu/';
echo $FUNC_IMAGE;
echo '.gif" border="0" WIDTH="19" HEIGHT="17" alt="';
echo $FUNC_NAME;
echo '" align="absmiddle"> ';
echo $FUNC_NAME;
echo ' </td>
</tr>
';
}
echo '
</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);
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">
<td title="程序路径 ';
echo $WIN_PATH;
echo '">
<img src="/images/menu/winexe.gif" border="0" WIDTH="19" HEIGHT="17" align="absmiddle"> ';
echo $WIN_DESC;
echo ' </td>
</tr>
';
}
echo '
</table>
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?