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

📄 user_view.php

📁 本书主要介绍了从基础开始建立Portal的快速应用开发过程(RAD)的方法。通过本书你可以了解到关于Oracle 9iAS Portal产品的主要特性、入口的开发和组织、网络开发和管理、实际的关系型数
💻 PHP
字号:
<?

require "inc/check.php";

require "inc/func.php";

require "inc/func_s.php";

require "inc/error.php";

?>

<html>

<head>

<title>"追风"--晨风创意</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<STYLE type=text/css>BODY {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px; scrollbar-face-color: ffffff; scrollbar-shadow-color: C1C1BB; scrollbar-highlight-color: C1C1BB; scrollbar-3dlight-color: EBEBE4; scrollbar-darkshadow-color: EBEBE4; scrollbar-track-color: F4F4F0; scrollbar-arrow-color: CACAB7

}

P {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px

}

INPUT {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px

}

FONT {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px

}

SELECT {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px

}

OPTION {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px

}

TEXTAREA {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px

}

FORM {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px

}

TD {

	FONT-FAMILY: "宋体"; FONT-SIZE: 12px; TABLE-LAYOUT: fixed; WORD-BREAK: break-all

}

A:link {

	TEXT-DECORATION: none

}

A:visited {

	TEXT-DECORATION: none

}

A:hover {

	TEXT-DECORATION: underline

}

A:active {

	FONT-SIZE: 12px; TEXT-DECORATION: none

}

.border {

	BACKGROUND-COLOR: #efefef; BORDER-BOTTOM: 1px dotted; BORDER-COLLAPSE: collapse; BORDER-LEFT: 1px dotted; BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; COLOR: #000000

}

.shadow1 {

	COLOR: #ffffff; FILTER: dropshadow(color=#000000,offx=1,offy=1); FONT-SIZE: 12px

}

.shadow2 {

	COLOR: #000000; FILTER: dropshadow(color=#d5d5d5,offx=1,offy=1); FONT-SIZE: 12px

}

.p1 {

	COLOR: #ffffff; FONT-SIZE: 12px; TEXT-DECORATION: none

}

.p2 {

	COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none

}

.p3 {

	COLOR: #004080; FONT-SIZE: 14px; TEXT-DECORATION: none

}

</STYLE>

<?
if($action=="del"){ //如果是删除一个人
	if($yesno=="")
	{
		$url="?action=del&uid=$uid&yesno=ok";
		show_msg("您确定删除此人?",$url);
	}
	if($yesno==ok){
		$sqldo="delete from users where user_id='$uid'";
		if($cla->db_delete($sqldo))
		{
			$cla->db_commit();
		}
	}
}
?>



<body bgcolor="#FFFFFF">

<center>



  <div align="center">

    <table width="100%" border="0" height="95" >

      <tr> 

        <td height="313" width="5%"> 

          <p align="center">&nbsp;</p>

          <p align="center">&nbsp;</p>

          <p align="center">&nbsp;</p>

          <p align="center">&nbsp;</p>

        </td>

        <td height="313" width="15%" valign="top" > <table border=1 bordercolor=#111111 cellpadding=3 cellspacing=0 

      class=border width="85%" height="257">

            <tbody>

              <tr> 

                <td bgcolor=#efefef width="100%"> <div align="center"><img src="images/list.gif" width="16" height="16"> 

                    控制面板</div></td>

              </tr>

              <tr> 

                <td align=middle class=shadow2 height=230 valign=middle 

            width="100%"> <div align="center"> 

                    <? if($ses_right=="管理员"){ ?>

                    <p><br>

                    </p>

                    <p><img src="images/edit.gif" width="18" height="13"> <a href="add_grp.php" >增 

                      加 新 组</a></p>

                    <? }?>

                    <p><br>

                      <img src="images/edit.gif" width="18" height="13"> <a href="add_usr.php"  >增 

                      加 成 员</a></p>

                    <?if($ses_right=="管理员"){ ?>

                    <p><br>

                      <img src="images/edit.gif" width="18" height="13"> <a href="user_mag_view.php">查 

                      看 某 组</a></p>

                    <? }?>

                    <p><br>

                      <img src="images/edit.gif" width="18" height="13"> <a href="user_view.php" target="_self">查 

                      看 成 员</a><br>

                      <br>

                      <br>

                      <br>

                    </p>

                  </div></td>

              </tr>

            </tbody>

          </table></td>

        <td width="75%" height="313" valign="top"> 

          <table border="1" cellspacing="0" cellpadding="3" bordercolor="#111111" align="center" width="100%" class=border>

            <tr bgcolor="#f7f7f7"> 

              <td height="31" width="6%"> 

                <div align="center">编号</div>

              </td>

              <td height="31" width="8%"> 

                <div align="center"> 登录名</div>

              </td>

              <td height="31" width="9%"> 

                <div align="center">真实姓名</div>

              </td>

              <td height="31" width="10%"> 

                <div align="center">邮箱</div>

              </td>

              <td height="31" width="10%" align="center">权限级别</td>

              <td height="31" width="10%" align="center">所在组</td>

              <td height="31" width="10%" align="center">组长</td>

              <td height="31" width="10%" align="center">备注</td>

              <td height="31" width="8%" align="center">删除</td>

              <?if(trim($ses_right)=="管理员"){ ?>  <td height="31" width="8%" align="center">组修改</td><? }?>

              <td height="31" width="8%" align="center">权限修改</td>

            </tr>

<?  
if($ses_right=="组长"){
	$sqldo="select count(*) from users where group_id='$ses_groupid'";
}
else{
	$sqldo="select count(*) from users";
}
$userful=$cla->db_query($sqldo);
$group_sum=$userful[0][0];	
if($ses_right=="组长"){
	$sqldo="select user_id,real_name,login_name,login_password,email,right_level,group_id,class_right,operate_right,user_description from users where group_id='$ses_groupid'";
}
else{
	$sqldo="select user_id,real_name,login_name,login_password,email,right_level,group_id,class_right,operate_right,user_description  from users";
}
$user_array=$cla->db_query($sqldo);
$i=0;
while ($user_array[$i][0]){
	//取得组长名
	$temp=$user_array[$i]["GROUP_ID"];
	$sqldo_in="select group_name,group_head from groups where group_id='$temp'";
	$group_info=$cla->db_query($sqldo_in);
?>
<tr> 
<td align="center" width="6%"> 
 <? if($user_array[$i]["USER_ID"]<>""){
echo 	$user_array[$i]["USER_ID"];}
else { echo "&nbsp;";}
?>
</td>
 <td align="center" width="8%"> 
 <? if($user_array[$i]["LOGIN_NAME"]<>""){
echo 	$user_array[$i]["LOGIN_NAME"];}
else { echo "&nbsp;";}
?>
</td>
 <td align="center" width="9%"> 
<? if($user_array[$i]["REAL_NAME"]<>""){
echo 	$user_array[$i]["REAL_NAME"];}
else { echo "&nbsp;";}
?>
 </td>
<td align="center" width="10%"> 
<? if($user_array[$i]["EMAIL"]<>"") { echo $user_array[$i]["EMAIL"];}
else {echo "&nbsp"; }
?>
</td>
<td align="center" width="10%"> 
<? if($user_array[$i]["RIGHT_LEVEL"]<>"") { echo $user_array[$i]["RIGHT_LEVEL"];}
else {echo "&nbsp"; }
?>
</td>
<td align="center" width="10%"> 
<? if($group_info[0]["GROUP_NAME"]<>""){
echo $group_info[0]["GROUP_NAME"];}
else { echo "&nbsp;";}
?>
</td>
<td align="center" width="10%"> 
<? if($group_info[0]["GROUP_HEAD"]<>""){
echo $group_info[0]["GROUP_HEAD"];}
else { echo "&nbsp;";}
?>
</td>
<td align="center" width="10%"> 
<? if($user_array[$i]["USER_DESCRIPTION"]<>""){
echo 	$user_array[$i]["USER_DESCRIPTION"];}
else { echo "&nbsp;";}
?>
</td>
<td align="center" width="8%"><a href="?action=del&uid=<? echo $user_array[$i]['USER_ID'];?>&rname=<? echo $user_array[$i]['REAL_NAME'];?>">删除</a></td>
<?if(trim($ses_right)=="管理员"){ ?>  <td align="center" width="8%"><a href="edit_user.php?action=gedit&uid=<? echo $user_array[$i]['USER_ID'];?>&gid=<? echo $user_array[$i]['GROUP_ID'];?>">组修改</a></td><?}?>
<td align="center" width="8%"><a href="edit_userq.php?action=qedit&uid=<? echo $user_array[$i]['USER_ID'];?>&gid=<? echo $user_array[$i]['GROUP_ID'];?>">权限修改</a></td>
</tr>
<? $i++;}?>
</table>

          <p>&nbsp;</p>

        </td>

      </tr>

    </table>

  </div>

</center>

<p align="center">&nbsp;</p>

<div align="center"><br>

  <p>&nbsp;</p>

</div>

<? $cla->db_logoff();?>

</body>

</html>

⌨️ 快捷键说明

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