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

📄 index.php

📁 极限网络智能办公系统 Office Automation V3.0官方100%源代码.
💻 PHP
字号:
<?
include_once("inc/auth.php");

$query = "SELECT * from USER where USER_ID='$LOGIN_USER_ID'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
{
   $PANEL=$ROW["PANEL"];
   $PWD=$ROW["PASSWORD"];
   $MENU_HIDE=$ROW["MENU_HIDE"];
}
?>

<html>
<head>
<script src="/inc/mytable.js"></script>
<script>
var menu_id=1;

function setPointer(element,over_flag,menu_id_over)
{
  if(menu_id!=menu_id_over)
  {
     if(over_flag==1)
        element.bgColor="#B3D1FF";
     else
        element.bgColor="#EEEEEE";
  }
}

var init_flag=0;
function init_menu()
{
  init_flag++;

  if(init_flag==2)
     view_menu(<?=$PANEL?>);
}

<?
if(stristr($HTTP_USER_AGENT,"Firefox")||stristr($HTTP_USER_AGENT,"Opera")) //Firefox
{
?>
function view_menu(id)
{
  if(init_flag!=2)
     return;

  for(i=1;i<=6;i++)
  {
     menu_i="menu_"+i;
     if(i==id)
        color_i="#D9E8FF";
     else
        color_i="#EEEEEE";

     if(i<=3)
        menu_top.document.getElementById(menu_i).bgColor=color_i;
     else
        menu_bottom.document.getElementById(menu_i).bgColor=color_i;
  }

  if(id==1&&menu_id!=id)
     menu_main.location="/general/ipanel/menu.php?ISPIRIT=<?=$ISPIRIT?>&MENU_ID=01";
  else if(id==2)
     menu_main.location="/general/ipanel/user_online.php";
  else if(id==3)
  	 menu_main.location="/general/ipanel/user_online.php?VIEW_ALL=1";
  else if(id==4)
     menu_main.location="/general/ipanel/shortcut";
  else if(id==5)
     menu_main.location="/general/ipanel/smsbox?ISPIRIT=<?=$ISPIRIT?>&I_VER=<?=$I_VER?>";
  else if(id==6)
     menu_main.location="/general/ipanel/bookmark";
  menu_id=id;
}

<?
}
else //IE
{
?>
function view_menu(id)
{
  if(init_flag!=2)
     return;

  menu_id=id;
  for(i=1;i<=6;i++)
  {
     menu_i="menu_"+i;
     if(i==id)
        color_i="#D9E8FF";
     else
        color_i="#EEEEEE";

     if(i<=3)
        menu_top.document.all(menu_i).bgColor=color_i;
     else
        menu_bottom.document.all(menu_i).bgColor=color_i;
  }

  if(id==1)
  {
     menu_page.location="about:blank";
     frame1.rows="22,*,0,0,22";
  }
  else if(id==2)
  {
     menu_page.location="/general/ipanel/user_online.php";
     frame1.rows="22,0,0,*,22";
  }
  else if(id==3)
  {
     menu_page.location="about:blank";
     frame1.rows="22,0,*,0,22";
  }
  else if(id==4)
  {
     menu_page.location="/general/ipanel/shortcut";
     frame1.rows="22,0,0,*,22";
  }
  else if(id==5)
  {
     menu_page.location="/general/ipanel/smsbox?ISPIRIT=<?=$ISPIRIT?>&I_VER=<?=$I_VER?>";
     frame1.rows="22,0,0,*,22";
  }
  else if(id==6)
  {
     menu_page.location="/general/ipanel/bookmark";
     frame1.rows="22,0,0,*,22";
  }
}
<?
}

//------------- 在线人员 -------------
?>

  var xmlHttpObj=getXMLHttpObj();
  var theURL="user_count.php";

function online_count()
{
  xmlHttpObj.open("GET",theURL,true);
  var responseText="";
  xmlHttpObj.onreadystatechange=function()
	{
		if(xmlHttpObj.readyState==4)
		{
			responseText=xmlHttpObj.responseText;
			parent.parent.status_bar.document.getElementById("user_count1").value=responseText;
		}
	}
  xmlHttpObj.send(null)
  setTimeout("online_count()",<?=$ONLINE_REF_SEC*1000?>);
}
setTimeout("online_count()",1000);
<?
//------------- 打开网址 -------------
if($ISPIRIT==1)
{
?>

function openURL(URL)
{
   mytop=(screen.availHeight-500)/2-30;
   myleft=(screen.availWidth-780)/2;
   window.open("/ispirit/go.php?LOGIN_USER_ID=<?=$LOGIN_USER_ID?>&PWD=<?=$PWD?>&URL="+URL,"","height=500,width=780,status=0,toolbar=no,menubar=yes,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}

function send_sms(TO_ID,TO_NAME)
{
   mytop=(screen.availHeight-170)/2-50;
   myleft=(screen.availWidth-350)/2;
   URL="/general/status_bar/sms_back.php@I_VER=<?=$I_VER?>*TO_ID="+TO_ID+"*TO_NAME="+TO_NAME;
   window.open("/ispirit/go.php?LOGIN_USER_ID=<?=$LOGIN_USER_ID?>&PWD=<?=$PWD?>&URL="+URL,"send_sms","height=150,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}

function send_email(TO_ID,TO_NAME)
{
   mytop=(screen.availHeight-500)/2-30;
   myleft=(screen.availWidth-780)/2;
   URL="/general/email/new@TO_ID="+TO_ID+"*TO_NAME="+TO_NAME;
   window.open("/ispirit/go.php?LOGIN_USER_ID=<?=$LOGIN_USER_ID?>&PWD=<?=$PWD?>&URL="+URL,"","height=500,width=780,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}
<?
}
else//ISPIRIT!=1
{
?>
function openURL(URL)
{
    parent.table_index.main.location=URL;
<?
    if($MENU_HIDE=="1")
       echo "parent.callleftmenu.leftmenu_ctrl();"
?>
}

function send_sms(TO_ID,TO_NAME)
{
   mytop=screen.availHeight-190;
   myleft=0;
<?
    if($MENU_HIDE=="1")
       echo "parent.callleftmenu.leftmenu_ctrl();"
?>
   window.open("/general/status_bar/sms_back.php?TO_ID="+TO_ID+"&TO_NAME="+TO_NAME,"send_sms","height=150,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}

function send_email(TO_ID,TO_NAME)
{
<?
    if($MENU_HIDE=="1")
       echo "parent.callleftmenu.leftmenu_ctrl();"
?>
   parent.table_index.main.location="/general/email/new?TO_ID="+TO_ID+"&TO_NAME="+TO_NAME;
}

<?
}//else
?>
</script>

<?
//-------- 生成JSP的Session --------
if(file_exists("../../app/login.jsp"))
{
$URL="/app/login.jsp?LOGIN_USER_ID=".$LOGIN_USER_ID;
?>
<script src="<?=$URL?>"></script>
<?
}
?>

</head>

<frameset rows="22,*,0,0,22"  cols="*" frameborder="no" border="0" framespacing="0" id="frame1">
    <frame name="menu_top" scrolling="no" noresize src="menu_top.php" frameborder="0">
    <frame name="menu_main" scrolling="auto" noresize src="menu.php?ISPIRIT=<?=$ISPIRIT?>&MENU_ID=01" frameborder="0">
    <frame name="user_all" scrolling="auto" noresize src="user_all.php?ISPIRIT=<?=$ISPIRIT?>" frameborder="0">
    <frame name="menu_page" scrolling="auto" noresize src="" frameborder="0">
    <frame name="menu_bottom" scrolling="no" noresize src="menu_bottom.php" frameborder="0">
</frameset>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -