1 Star 0 Fork 0

Jamie793 / Typecho_Visits_Plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
manage-vists.php 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
Jamie793 提交于 2020-07-12 19:58 . doxm@foxmail.com
<?php
// include 'common.php';
include 'header.php';
include 'menu.php';
?>
<style>
.list input {
border: none;
font-size: 15px;
}
.list .head th {
border-bottom: 2px solid #eee;
}
.list tbody td {
border-bottom: 1px solid #eee;
}
.list .content {
height: 50px;
}
</style>
<head>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
</head>
<?php
$prefix = $db->getPrefix();
$vists = $db->fetchAll(
$db->select()->from($prefix . 'visits')->order($prefix . 'visits.id', Typecho_Db::SORT_DESC));
?>
<div class="main" align="center">
<p>
<h2>管理网站访问者位置信息</h2></p>
<p>
<table class="list">
<colgroup>
<col width="50"/>
<col width="100"/>
<col width="150"/>
<col width="250"/>
<col width="200"/>
</colgroup>
<thead>
<tr class="head" style="height: 50px">
<th>ID</th>
<th>IP</th>
<th>位置</th>
<th>访问页面</th>
<th>时间</th>
</tr>
</thead>
<tbody>
<?php foreach ($vists as $vist): ?>
<tr align="center" class="content">
<td><label><?php echo $vist['id']; ?></label></td>
<td><label><?php echo $vist['ip']; ?></label></td>
<td><label><?php echo $vist['location']; ?></label></td>
<td><label><?php echo $vist['page']; ?></label></td>
<td><label><?php echo $vist['time']; ?></label></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</p>
</div>
PHP
1
https://gitee.com/Jamie793/Typecho_Visits_Plugin.git
git@gitee.com:Jamie793/Typecho_Visits_Plugin.git
Jamie793
Typecho_Visits_Plugin
Typecho_Visits_Plugin
master

搜索帮助