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

📄 index.php

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

<html>
<head>
<title>我的帐户</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">

<?
 $query = "SELECT * from USER where USER_ID='$LOGIN_USER_ID'";
 $cursor= exequery($connection,$query);
 if($ROW=mysql_fetch_array($cursor))
 {
    $USER_NAME=$ROW["USER_NAME"];
    $BYNAME=$ROW["BYNAME"];
    $POST_PRIV=$ROW["POST_PRIV"];
    $POST_DEPT=$ROW["POST_DEPT"];
    $USER_PRIV=$ROW["USER_PRIV"];
    $USER_PRIV_OTHER=$ROW["USER_PRIV_OTHER"];
 }

 $query1 = "SELECT * from USER_PRIV where USER_PRIV='$USER_PRIV'";
 $cursor1= exequery($connection,$query1);
 if($ROW=mysql_fetch_array($cursor1))
    $PRIV_NAME=$ROW["PRIV_NAME"];

 $TOK=strtok($USER_PRIV_OTHER,",");
 while($TOK!="")
 {
   $query1 = "SELECT * from USER_PRIV where USER_PRIV='$TOK'";
   $cursor1= exequery($connection,$query1);
   if($ROW=mysql_fetch_array($cursor1))
      $OTHER_PRIV_NAME.=$ROW["PRIV_NAME"].",";
   $TOK=strtok(",");
 }

 if(substr($OTHER_PRIV_NAME,-1)==",")
   $OTHER_PRIV_NAME=substr($OTHER_PRIV_NAME,0,-1);

 if($POST_PRIV=="1")
    $POST_PRIV="全体";
 elseif($POST_PRIV=="2")
    $POST_PRIV="指定部门";
 elseif($POST_PRIV=="0")
    $POST_PRIV="本部门";

 $TOK=strtok($POST_DEPT,",");
 while($TOK!="")
 {
    $query1 = "SELECT * from DEPARTMENT where DEPT_ID='$TOK'";
    $cursor1= exequery($connection,$query1);
    if($ROW=mysql_fetch_array($cursor1))
       $POST_DEPT_NAME.=$ROW["DEPT_NAME"].",";
    $TOK=strtok(",");
 }

 if(substr($POST_DEPT_NAME,-1)==",")
   $POST_DEPT_NAME=substr($POST_DEPT_NAME,0,-1);
?>

<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/menu/system.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 我的帐户(<?=$USER_NAME?>)</span><br>
    </td>
  </tr>
</table>
<br>

<table border="0" width="90%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="update.php"  method="post" name="form1">
    <tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;登录别名设置</b></td>
    </tr>
    <tr>
      <td nowrap class="TableData" width="100"> 别名:</td>
      <td class="TableData"><input type="input" name="BYNAME" class="BigInput" value="<?=$BYNAME?>"></td>
    </tr>
    <tr>
      <td class="TableControl" colspan="2" align="center">
        <input type="submit" class="BigButton" value="保存修改">
      </td>
    </tr>
</form>
</table>
<br>

<table border="0" width="90%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
    <tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;角色信息</b></td>
    </tr>
    <tr height="25">
      <td nowrap class="TableData" width="100"> 主角色:</td>
      <td class="TableData"><?=$PRIV_NAME?></td>
    </tr>
    <tr height="25">
      <td nowrap class="TableData" width="100"> 辅助角色:</td>
      <td class="TableData"><?=$OTHER_PRIV_NAME?></td>
    </tr>
</table>
<br>

<table border="0" width="90%" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
    <tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;管理范围</b></td>
    </tr>
    <tr height="25">
      <td nowrap class="TableData" width="100"> 管理范围:</td>
      <td class="TableData"><?=$POST_PRIV?> <?if($POST_DEPT_NAME!="")echo "<br><br>".$POST_DEPT_NAME;?></td>
    </tr>
</table>

<?
Button_Back();
?>

</body>
</html>

⌨️ 快捷键说明

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