user_list.php

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

PHP
126
字号
<?
  ob_start ();
  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" cellpadding="3" id="1">
    <tr>
      <td>
';
  echo '
';
  $PARA_URL1 = '/general/system/user/user_new.php';
  $PARA_URL2 = '/general/system/user/user_edit.php';
  $PARA_TARGET = 'user_main';
  $PRIV_NO_FLAG = 2;
  $MANAGE_FLAG = 1;
  $xname = 'system_user';
  $showButton = 0;
  include_once 'inc/user_list/index.php';
  echo '       </td>
     </tr>
    </table>
';
  $query = (((''.'SELECT * from USER where USER_ID=\'').$LOGIN_USER_ID).'\'');
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $POST_PRIV = $ROW['POST_PRIV'];
  }
  if (($POST_PRIV == '1'))
  {
    $query = ((''.'SELECT * from USER_PRIV where USER_PRIV=').$LOGIN_USER_PRIV);
    $cursor = exequery ($connection, $query);
    if ($ROW = mysql_fetch_array ($cursor))
    {
      $PRIV_NO = $ROW['PRIV_NO'];
    }
    echo '    <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 border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" i';
    echo 'd="0" style="display:none">
';
    if (($LOGIN_USER_PRIV != '1'))
    {
      $query = (((''.'SELECT * from USER,USER_PRIV where DEPT_ID=0 and USER.USER_PRIV=USER_PRIV.USER_PRIV and USER_PRIV.PRIV_NO>').$PRIV_NO).' and USER_PRIV.USER_PRIV!=1 order by PRIV_NO,USER_NO,USER_NAME');
    }
    else
    {
      $query = 'SELECT * from USER,USER_PRIV where DEPT_ID=0 and USER.USER_PRIV=USER_PRIV.USER_PRIV order by PRIV_NO,USER_NO,USER_NAME';
    }
    $cursor = exequery ($connection, $query);
    while ($ROW = mysql_fetch_array ($cursor))
    {
      ++$USER_COUNT;
      $USER_ID = $ROW['USER_ID'];
      $USER_NAME = $ROW['USER_NAME'];
      $USER_PRIV = $ROW['USER_PRIV'];
      $query1 = (((''.'SELECT * from USER_PRIV where USER_PRIV=\'').$USER_PRIV).'\'');
      $cursor1 = exequery ($connection, $query1);
      if ($ROW = mysql_fetch_array ($cursor1))
      {
        $USER_PRIV = $ROW['PRIV_NAME'];
      }
      echo '    <tr class="TableData" align="center">
      <td nowrap width="80">';
      echo $USER_PRIV;
      echo '</td>
      <td nowrap><a href="user_edit.php?USER_ID=';
      echo $USER_ID;
      echo '&DEPT_ID=0" target="user_main">';
      echo $USER_NAME;
      echo '</a></td>
    </tr>
';
    }
    echo '    </table>
';
  }
  echo ' <table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
       <tr class="TableHeader" onclick="parent.user_main.location=\'query.php\';" style="cursor:hand" title="用户查询或导出">
         <td nowrap align="center"><b>用户查询或导出</b></td>
       </tr>
    </table>
 <table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" ';
  echo 'cellpadding="3" align="center">
       <tr class="TableHeader" onclick="parent.user_main.location=\'import.php\';" style="cursor:hand" title="用户导入">
         <td nowrap align="center"><b>用户导入</b></td>
       </tr>
    </table>
';
  if (($LOGIN_USER_PRIV == '1'))
  {
    echo ' <table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3" align="center">
       <tr class="TableHeader" onclick="parent.user_main.location=\'set.php\'" style="cursor:hand" title="批量设置用户的个性设置">
         <td nowrap align="center"><b>批量设置</b></td>
       </tr>
    </table>
 <table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" c';
    echo 'ellpadding="3" align="center">
       <tr class="TableHeader" onclick="parent.user_main.location=\'exp_rtx.php\'" style="cursor:hand" title="导出用于在RTX导入用户和部门的XML文件">
         <td nowrap align="center"><b>导出RTX格式</b></td>
       </tr>
    </table>
';
  }
  echo '<s';
  echo 'cript language="JavaScript">
function clickMenu(ID)
{
    targetelement=document.all(ID);
    if (targetelement.style.display=="none")
        targetelement.style.display=\'\';
    else
        targetelement.style.display="none";
    if(ID==0)
       parent.user_main.location="user_new.php?DEPT_ID="+ID;
}
</script>
';
?>

⌨️ 快捷键说明

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