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

📄 dept.php

📁 通达OA2007SE源代码 非常好的
💻 PHP
字号:
<?
  include_once 'inc/auth.php';
  echo '
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript language="JavaScript">
var CUR_ID="1";
function clickMenu(ID)
{
    targetelement=document.all(CUR_ID);
    if(ID==CUR_ID)
    {
       if (targetelement.style.display=="none")
           targetelement.style.display=\'\';
       else
           targetelement.style.display="none";
    }
    else
    {
       targetelement.style.display="none";
       targetelement=document.all(ID';
  echo ');
       targetelement.style.display="";
    }
    CUR_ID=ID;
}
</script>
</head>
<body class="bodycolor"  topmargin="1" leftmargin="0">
  <table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
     <tr class="TableHeader" onclick="clickMenu(\'1\')" style="cursor:hand" title="点击伸缩列表">
       <td nowrap align="center"><b>按部门选';
  echo '择</b></td>
     </tr>
  </table>
  <table border="0" cellspacing="1" width="100%" class="small" cellpadding="3" id="1">
    <tr class="TableControl">
      <td>
';
  $PARA_URL = 'user.php';
  $PARA_TARGET = 'user';
  $PARA_ID = 'ID';
  $PARA_VALUE = $ID;
  $PRIV_NO_FLAG = 0;
  $xname = 'user_select';
  $showButton = 1;
  include_once 'inc/dept_list/index.php';
  echo '      </td>
    </tr>
  </table>
';
  echo '<s';
  echo 'cript>
function click_node(the_id,checked,para_id,para_value)
{
	parent.';
  echo $PARA_TARGET;
  echo '.location="children.php?DEPT_ID="+the_id+"&CHECKED="+checked+"&"+para_id+"="+para_value;
}
</script>
  <table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
     <tr class="TableHeader" onclick="clickMenu(\'0\')" style="cursor:hand" title="点击伸缩列表">
       <td nowrap align="center"><b>按角色选择</b></td>
     </tr>
  </table>
  <table bor';
  echo 'der="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" id="0" style="display:none">
';
  $query = 'SELECT * from USER_PRIV order by PRIV_NO ';
  $cursor = exequery ($connection, $query);
  $PRIV_COUNT = 0;
  while ($ROW = mysql_fetch_array ($cursor))
  {
    ++$PRIV_COUNT;
    $USER_PRIV = $ROW['USER_PRIV'];
    $PRIV_NAME = $ROW['PRIV_NAME'];
    echo '<tr class="TableControl">
  <td align="center" onclick="javascript:parent.user.location=\'user.php?ID=';
    echo $ID;
    echo '&USER_PRIV=';
    echo $USER_PRIV;
    echo '&POST_PRIV=';
    echo $POST_PRIV;
    echo '&POST_DEPT=';
    echo $POST_DEPT;
    echo '&MANAGE_FLAG=';
    echo $MANAGE_FLAG;
    echo '\';" style="cursor:hand">';
    echo $PRIV_NAME;
    echo '</td>
</tr>
';
  }
  if (($PRIV_COUNT == 0))
  {
    message ('', '没有定义角色');
  }
  echo '</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
     <tr class="TableHeader" onclick="clickMenu(\'2\')" style="cursor:hand" title="点击伸缩列表">
       <td nowrap align="center"><b>自定义组</b></td>
     </tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" id="2" style="displ';
  echo 'ay:none">
';
  $query = (((''.'SELECT * from USER_GROUP where USER_ID=\'').$LOGIN_USER_ID).'\' order by ORDER_NO ');
  $cursor = exequery ($connection, $query);
  $GROUP_COUNT = 0;
  while ($ROW = mysql_fetch_array ($cursor))
  {
    ++$GROUP_COUNT;
    $GROUP_ID = $ROW['GROUP_ID'];
    $GROUP_NAME = $ROW['GROUP_NAME'];
    if (($GROUP_COUNT == 1))
    {
      echo '<tr class="TableContent">
  <td align="center">个人自定义组</td>
</tr>
';
    }
    echo '<tr class="TableControl">
  <td align="center" onclick="javascript:parent.user.location=\'user_define.php?ID=';
    echo $ID;
    echo '&GROUP_ID=';
    echo $GROUP_ID;
    echo '\';" style="cursor:hand">';
    echo $GROUP_NAME;
    echo '</td>
</tr>
';
  }
  $query = 'SELECT * from USER_GROUP where USER_ID=\'\' order by ORDER_NO ';
  $cursor = exequery ($connection, $query);
  $GROUP_COUNT1 = 0;
  while ($ROW = mysql_fetch_array ($cursor))
  {
    ++$GROUP_COUNT1;
    $GROUP_ID = $ROW['GROUP_ID'];
    $GROUP_NAME = $ROW['GROUP_NAME'];
    if (($GROUP_COUNT1 == 1))
    {
      echo '<tr class="TableContent">
  <td align="center">公共自定义组</td>
</tr>
';
    }
    echo '<tr class="TableControl">
  <td align="center" onclick="javascript:parent.user.location=\'user_define.php?ID=';
    echo $ID;
    echo '&GROUP_ID=';
    echo $GROUP_ID;
    echo '\';" style="cursor:hand">';
    echo $GROUP_NAME;
    echo '</td>
</tr>
';
  }
  if ((($GROUP_COUNT == 0) AND ($GROUP_COUNT1 == 0)))
  {
    message ('', '没有自定义组');
  }
  echo '</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
     <tr class="TableHeader" style="cursor:hand" onclick="javascript:parent.user.location=\'user_online.php?ID=';
  echo $ID;
  echo '\';">
       <td nowrap align="center"><b>在线人员</b></td>
     </tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
     <tr class="TableHeader" style="cursor:hand" onclick="javascript:parent.user.location=\'query.php?ID=';
  echo $ID;
  echo '\';">
       <td nowrap align="center"><b>人员查询</b></td>
     </tr>
</table>
</body>
</html>
';
?>

⌨️ 快捷键说明

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