1 Star 0 Fork 21

7270李茵熳/php_study

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
manage_member.php 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
Your Name 提交于 2020-12-24 11:30 . TestGuest6.6/*
<?php
/**
* TestGuest Version1.0
* ================================================
* Copy 2019-2021 ljcollege
* Web: http://www.ljcollege.com
* ================================================
* Author: Luo
* Date: 2020-9-12
*/
session_start();
//定义个常量,用来授权调用includes里面的文件
define('IN_TG',true);
//定义个常量,用来指定本页的内容
define('SCRIPT','manage_member');
//引入公共文件
require dirname(__FILE__).'/includes/common.inc.php';
//必须是管理员才能登录
_manage_login();
global $_pagesize,$_pagenum;
_page("SELECT tg_id FROM tg_user",15);
$_result = _query("SELECT
tg_id,
tg_username,
tg_email,
tg_reg_time
FROM
tg_user
ORDER BY
tg_reg_time DESC
LIMIT
$_pagenum,$_pagesize
");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
require ROOT_PATH.'includes/title.inc.php';
?>
<script type="text/javascript" src="js/member_message.js"></script>
</head>
<body>
<?php
require ROOT_PATH.'includes/header.inc.php';
?>
<div id="member">
<?php
require ROOT_PATH.'includes/manage.inc.php';
?>
<div id="member_main">
<h2>会员列表中心</h2>
<form method="post" action="?action=delete">
<table cellspacing="1">
<tr><th>ID号</th><th>会员名</th><th>邮件</th><th>注册时间</th><th>操作</th></tr>
<?php
$_html = array();
while (!!$_rows = _fetch_array_list($_result)) {
$_html['id'] = $_rows['tg_id'];
$_html['username'] = $_rows['tg_username'];
$_html['email'] = $_rows['tg_email'];
$_html['reg_time'] = $_rows['tg_reg_time'];
$_html = _html($_html);
?>
<tr><td><?php echo $_html['id']?></td><td><?php echo $_html['username']?></td><td><?php echo $_html['email']?></td><td><?php echo $_html['reg_time']?></td><td>[<a href="?action=del&id=<?php echo $_html['id']?>"></a>] [修]</td></tr>
<?php }?>
</table>
</form>
<?php
_free_result($_result);
_paging(2);
?>
</div>
</div>
<?php
require ROOT_PATH.'includes/footer.inc.php';
?>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/liyinman/php_study.git
git@gitee.com:liyinman/php_study.git
liyinman
php_study
php_study
master

搜索帮助