📄 index.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>我的帐户</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$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'];
$NOT_LOGIN = $ROW['NOT_LOGIN'];
$NOT_VIEW_USER = $ROW['NOT_VIEW_USER'];
$NOT_VIEW_TABLE = $ROW['NOT_VIEW_TABLE'];
$EMAIL_CAPACITY = $ROW['EMAIL_CAPACITY'];
$FOLDER_CAPACITY = $ROW['FOLDER_CAPACITY'];
if ( $EMAIL_CAPACITY == 0 || $EMAIL_CAPACITY == "" )
{
$EMAIL_CAPACITY_DESC = "不限制";
}
else
{
$EMAIL_CAPACITY_DESC = $EMAIL_CAPACITY."MB";
}
if ( $FOLDER_CAPACITY == 0 || $FOLDER_CAPACITY == "" )
{
$FOLDER_CAPACITY_DESC = "不限制";
}
else
{
$FOLDER_CAPACITY_DESC = $FOLDER_CAPACITY."MB";
}
}
$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 = "全体";
}
else if ( $POST_PRIV == "2" )
{
$POST_PRIV = "指定部门";
}
else if ( $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 );
}
echo "\r\n<table border=\"0\" width=\"90%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/system.gif\" align=\"absmiddle\"><span class=\"big3\"> 我的帐户(";
echo $USER_NAME;
echo ")</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n<br>\r\n\r\n<table border=\"0\" width=\"600\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n<form action=\"update.php\" method=\"post\" name=\"form1\">\r\n <tr>\r\n <td nowrap class=\"TableHeader\" colspan=\"2\"><b> 登录别名设置</b></td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\" width=\"100\"> 别名:</td>\r\n <td class=\"TableData\"><input type=\"input\" name=\"BYNAME\" class=\"BigInput\" value=\"";
echo $BYNAME;
echo "\"></td>\r\n </tr>\r\n <tr>\r\n <td class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n <input type=\"submit\" class=\"BigButton\" value=\"保存修改\">\r\n </td>\r\n </tr>\r\n</form>\r\n</table>\r\n<br>\r\n\r\n<table border=\"0\" width=\"600\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <tr>\r\n <td nowrap class=\"TableHeader\" colspan=\"2\"><b> 用户角色与管理范围</b></td>\r\n </tr>\r\n <tr height=\"25\">\r\n <td nowrap class=\"TableData\" width=\"100\"> 主角色:</td>\r\n <td class=\"TableData\">";
echo $PRIV_NAME;
echo "</td>\r\n </tr>\r\n <tr height=\"25\">\r\n <td nowrap class=\"TableData\" width=\"100\"> 辅助角色:</td>\r\n <td class=\"TableData\">";
echo $OTHER_PRIV_NAME;
echo "</td>\r\n </tr>\r\n <tr height=\"25\">\r\n <td nowrap class=\"TableData\" width=\"100\"> 管理范围:</td>\r\n <td class=\"TableData\">";
echo $POST_PRIV;
echo " ";
if ( $POST_DEPT_NAME != "" )
{
echo "<br><br>".$POST_DEPT_NAME;
}
echo "</td>\r\n </tr>\r\n</table>\r\n<br>\r\n\r\n<table border=\"0\" width=\"600\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <tr>\r\n <td nowrap class=\"TableHeader\" colspan=\"2\"><b> 系统使用权限</b></td>\r\n </tr>\r\n <tr height=\"25\">\r\n <td nowrap class=\"TableData\" width=\"100\"> 访问控制:</td>\r\n <td class=\"TableData\">\r\n \t <input type=\"checkbox\" name=\"NOT_LOGIN\" id=\"NOT_LOGIN\" ";
if ( $NOT_LOGIN )
{
echo "checked";
}
echo " disabled><label for=\"NOT_LOGIN\">禁止登录OA系统</label> \r\n \t <input type=\"checkbox\" name=\"NOT_VIEW_USER\" id=\"NOT_VIEW_USER\" ";
if ( $NOT_VIEW_USER )
{
echo "checked";
}
echo " disabled><label for=\"NOT_VIEW_USER\">禁止查看用户列表</label> \r\n \t <input type=\"checkbox\" name=\"NOT_VIEW_TABLE\" id=\"NOT_VIEW_TABLE\" ";
if ( $NOT_VIEW_TABLE )
{
echo "checked";
}
echo " disabled><label for=\"NOT_VIEW_TABLE\">禁止显示桌面</label>\r\n \t</td>\r\n </tr>\r\n <tr height=\"25\">\r\n <td nowrap class=\"TableData\" width=\"100\"> 内部邮箱容量:</td>\r\n <td class=\"TableData\">";
echo $EMAIL_CAPACITY_DESC;
echo "</td>\r\n </tr>\r\n <tr height=\"25\">\r\n <td nowrap class=\"TableData\" width=\"100\"> 个人文件柜容量:</td>\r\n <td class=\"TableData\">";
echo $FOLDER_CAPACITY_DESC;
echo "</td>\r\n </tr>\r\n</table>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -