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

📄 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">
';
  if (find_id ($LOGIN_FUNC_STR, '10'))
  {
    echo '<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>个人通讯簿</b></td>
     </tr>
</table>
<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" id="1">
  <tr class="Table';
    echo 'Control">
    <td align="center" onclick="parent.user.location=\'user.php?GROUP_ID=0&USER_ID=';
    echo $LOGIN_USER_ID;
    echo '&FIELD=';
    echo $FIELD;
    echo '&TO_ID=';
    echo $TO_ID;
    echo '\'" style="cursor:hand">默认</td>
  </tr>
';
    $query = (((''.'SELECT * from ADDRESS_GROUP where USER_ID=\'').$LOGIN_USER_ID).'\' order by GROUP_NAME');
    $cursor = exequery ($connection, $query);
    while ($ROW = mysql_fetch_array ($cursor))
    {
      $GROUP_ID = $ROW['GROUP_ID'];
      $GROUP_NAME = $ROW['GROUP_NAME'];
      echo '<tr class="TableControl">
  <td align="center" onclick="parent.user.location=\'user.php?GROUP_ID=';
      echo $GROUP_ID;
      echo '&USER_ID=';
      echo $LOGIN_USER_ID;
      echo '&FIELD=';
      echo $FIELD;
      echo '&TO_ID=';
      echo $TO_ID;
      echo '\'" style="cursor:hand">';
      echo $GROUP_NAME;
      echo '</td>
</tr>
';
    }
    echo '</table>
';
  }
  if (find_id ($LOGIN_FUNC_STR, '106'))
  {
    echo '<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="display:none';
    echo '">
  <tr class="TableControl">
    <td align="center" onclick="parent.user.location=\'user.php?GROUP_ID=0&FIELD=';
    echo $FIELD;
    echo '&TO_ID=';
    echo $TO_ID;
    echo '\'" style="cursor:hand">默认</td>
  </tr>
';
    $query = 'SELECT * from ADDRESS_GROUP where USER_ID=\'\' order by GROUP_NAME';
    $cursor = exequery ($connection, $query);
    while ($ROW = mysql_fetch_array ($cursor))
    {
      $GROUP_ID = $ROW['GROUP_ID'];
      $GROUP_NAME = $ROW['GROUP_NAME'];
      $PRIV_DEPT = $ROW['PRIV_DEPT'];
      $PRIV_ROLE = $ROW['PRIV_ROLE'];
      $PRIV_USER = $ROW['PRIV_USER'];
      if ((((($PRIV_DEPT != 'ALL_DEPT') AND !find_id ($PRIV_DEPT, $LOGIN_DEPT_ID)) AND !find_id ($PRIV_ROLE, $LOGIN_USER_PRIV)) AND !find_id ($PRIV_USER, $LOGIN_USER_ID)))
      {
        continue;
      }
      else
      {
        echo '<tr class="TableControl">
  <td align="center" onclick="parent.user.location=\'user.php?GROUP_ID=';
        echo $GROUP_ID;
        echo '&FIELD=';
        echo $FIELD;
        echo '&TO_ID=';
        echo $TO_ID;
        echo '\'" style="cursor:hand">';
        echo $GROUP_NAME;
        echo '</td>
</tr>
';
        continue;
      }
    }
    echo '</table>
';
  }
  echo '</body>
</html>
';
?>

⌨️ 快捷键说明

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