📄 index.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/reg_check.php");
if($OA_REG_ON!=2)
exit;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>状态</title>
<link rel="stylesheet" href="/inc/style.css">
<SCRIPT LANGUAGE="JavaScript">
function killErrors()
{
return true;
}
window.onerror = killErrors;
var ctroltime;
function MyLoad()
{
setTimeout("ref_new_letter1()",300000);
ctroltime=setTimeout("ref_sms1()",3000);
}
function ref_new_letter1()
{
ref_new_letter.location.reload();
setTimeout("ref_new_letter1()",300000);
}
function ref_sms1()
{
ctroltime=setTimeout("ref_sms1()",30000);
ref_sms.location="/general/status_bar/ref_sms.php";
}
<?
$connection=OpenConnection();
$query = "SELECT * from USER where USER_ID='$LOGIN_USER_ID'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
$PWD=$ROW["PASSWORD"];
?>
//------------------------------------
function show_sms()
{
clearTimeout(ctroltime);
ctroltime=window.setTimeout('ref_sms1()',40000);
mytop=screen.availHeight;
myleft=0;
URL="/general/status_bar/sms_show.php";
window.open("/ispirit/go.php?LOGIN_USER_ID=<?=$LOGIN_USER_ID?>&LOGIN_USER_PRIV=<?=$LOGIN_USER_PRIV?>&LOGIN_DEPT_ID=<?=$LOGIN_DEPT_ID?>&LOGIN_AVATAR=<?=$LOGIN_AVATAR?>&PWD=<?=$PWD?>&URL="+URL,"<?=md5($LOGIN_USER_ID)?>_sub_window","height=170,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
function show_email()
{
mytop=(screen.availHeight-400)/2-30;
myleft=(screen.availWidth-600)/2;
URL="/general/email/inbox";
window.open("/ispirit/go.php?LOGIN_USER_ID=<?=$LOGIN_USER_ID?>&LOGIN_USER_PRIV=<?=$LOGIN_USER_PRIV?>&LOGIN_DEPT_ID=<?=$LOGIN_DEPT_ID?>&LOGIN_AVATAR=<?=$LOGIN_AVATAR?>&PWD=<?=$PWD?>&URL="+URL,"oa_sub_window","height=400,width=600,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
function show_online()
{
parent.menu_top.view_user_online();
}
//-------------------- 菜单窗口控制 -----------------------
menu_flag=0;
var STATUS_BAR_MENU;
function show_menu()
{
mytop=screen.availHeight-480;
myleft=screen.availWidth-215;
if(menu_flag==0)
STATUS_BAR_MENU=window.open("menu.php","STATUS_BAR_MENU","height=400,width=200,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=no");
STATUS_BAR_MENU.focus();
}
function MyUnload()
{
if(menu_flag==1)
{
STATUS_BAR_MENU.focus();
STATUS_BAR_MENU.MAIN_CLOSE=1;
STATUS_BAR_MENU.close();
}
}
</script>
</head>
<body bgcolor="#264989" background="/images/menu/bg_status.gif" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" onload="MyLoad();" onunload="MyUnload();">
<table border="1" width="100%" cellspacing="0" cellpadding="0" class="small" bordercolorlight="#264989" bordercolordark="#264989">
<tr>
<td align="center" valign="top" width="33%">
<a href='#' onclick='javascript:show_online();' style='color:#FFFFFF;filter:dropshadow(color=#666666,offx=1,offy=1,positive=1); WIDTH: 100%;FONT-WEIGHT: bold;'>
共<input name="user_count1" style="width:20pt;height:12pt;text-align:center;color:#00FF40;FONT-WEIGHT: bold;background-color:transparent; border:0;cursor:hand">人
</a>
</td>
<td align="center" valign="top" width="33%">
<span id="new_sms"></span>
</td>
<td align="center" valign="top" width="33%">
<span id="new_leter"></span>
<?
is_registered();
if(!$IS_REGISTERED_MYOA)
echo "未注册版";
?>
</td>
</tr>
</table>
<iframe name="ref_new_letter" src="/general/status_bar/ref_new_letter.php" width="0" height="0"></iframe>
<iframe name="ref_sms" src="" width="1" height="1"></iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -