index.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 73 行

PHP
73
字号
<?
  include_once 'inc/auth.php';
  echo '
<html>
<head>
<title>管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/notify_open.gif" align="absmiddle">';
  echo '<s';
  echo 'pan class="big3"> 分组</span>
    </td>
  </tr>
</table>
<br>
<table border="0" cellspacing="1" width="95%" class="small" bgcolor="#000000" cellpadding="3">
  <tr class="TableData">
    <td nowrap align="center">默认</td>
    <td nowrap align="center">
      <a href="export.php?GROUP_ID=0&TYPE=0" target="_blank"> 导出Foxmail格式</a>
      <a href="export.php?GROUP_ID=0&TYPE=1" target="_blank"> 导';
  echo '出OutLook格式</a>
      <a href="print.php?GROUP_ID=0" target="_blank"> 打印</a>
    </td>
  </tr>
';
  $query = 'SELECT * from ADDRESS_GROUP where USER_ID=\'\' order by GROUP_NAME asc';
  $cursor = exequery ($connection, $query);
  while ($ROW = mysql_fetch_array ($cursor))
  {
    $PRIV_DEPT = $ROW['PRIV_DEPT'];
    $PRIV_ROLE = $ROW['PRIV_ROLE'];
    $PRIV_USER = $ROW['PRIV_USER'];
    if (($PRIV_DEPT != 'ALL_DEPT'))
    {
      if (((!find_id ($PRIV_DEPT, $LOGIN_DEPT_ID) AND !find_id ($PRIV_ROLE, $LOGIN_USER_PRIV)) AND !find_id ($PRIV_USER, $LOGIN_USER_ID)))
      {
        continue;
      }
    }
    $GROUP_ID = $ROW['GROUP_ID'];
    $GROUP_NAME = $ROW['GROUP_NAME'];
    echo '    <tr class="TableData">
      <td nowrap align="center">';
    echo $GROUP_NAME;
    echo '</td>
      <td nowrap align="center">
          <a href="export.php?GROUP_ID=';
    echo $GROUP_ID;
    echo '&TYPE=0" target="_blank"> 导出Foxmail格式</a>
          <a href="export.php?GROUP_ID=';
    echo $GROUP_ID;
    echo '&TYPE=1" target="_blank"> 导出OutLook格式</a>
          <a href="print.php?GROUP_ID=';
    echo $GROUP_ID;
    echo '" target="_blank"> 打印</a>
      </td>
    </tr>
';
  }
  echo '   <thead class="TableHeader">
      <td nowrap align="center">分组名称</td>
      <td nowrap align="center" width="300">操作</td>
   </thead>
   </table>
</body>
</html>
';
?>

⌨️ 快捷键说明

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