📄 listmembergroup.php
字号:
<?
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/user.php");
include("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=$_COOKIE['enewsloginuserid'];
$loginin=$_COOKIE['enewsloginusername'];
$loginrnd=$_COOKIE['enewsloginrnd'];
$loginlevel=$_COOKIE['enewsloginlevel'];
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"member");
$url="控制面板 -> <a href=ListMember.php>管理会员组";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理会员组</title>
<link href="../../data/images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td>位置:<?=$url?></td>
</tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td width="8%" height="25"> <div align="center"><font color="#FFFFFF">ID</font></div></td>
<td width="40%" height="25"> <div align="center"><font color="#FFFFFF">会员组名称</font></div></td>
<td width="14%"><div align="center"><font color="#FFFFFF">级别值</font></div></td>
<td width="15%" height="25"> <div align="center"><font color="#FFFFFF">本组会员数</font></div></td>
<td width="23%" height="25"> <div align="center"><font color="#FFFFFF">操作</font></div></td>
</tr>
<?
$sql=$empire->query("select * from phome_enewsmembergroup order by level desc");
while($r=$empire->fetch($sql))
{
//统计会员数
$t=$empire->fetch1("select count(*) as total from ".$user_tablename." where ".$user_group."='$r[groupid]'");
$total=$t[total];
?>
<tr bgcolor="#FFFFFF">
<td height="25"> <div align="center"><?=$r[groupid]?></div></td>
<td height="25"> <div align="center"><?=$r[groupname]?></div></td>
<td><div align="center"><?=$r[level]?></div></td>
<td height="25"> <div align="center"><?=$total?></div></td>
<td height="25"> <div align="center">[<a href="AddMemberGroup.php?enews=EditMemberGroup&groupid=<?=$r[groupid]?>">修改</a>]
[<a href="../enews.php?enews=DelMemberGroup&groupid=<?=$r[groupid]?>" onclick="return confirm('确认要删除此会员组?');">删除</a>]</div></td>
</tr>
<?
}
db_close();
$empire=null;
?>
<tr bgcolor="#FFFFFF">
<td height="25" colspan="5">说明:级别值越高,查看新闻的权限越大</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -