123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- namespace app\admin;
- class combine extends Base
- {
-
- public function initialize()
- {
- parent::initialize();
- $this->Administrator(3);
- $this->header();
- }
- public function __destruct()
- {
- $this->footer();
- }
- function index($_var_0 = [])
- {
- $_var_1 = SafeRequest("page", "get");
- $_var_2 = db("combine")->order("ctime desc")->paginate(["page" => $_var_1]);
- $_var_3 = $_var_2->items();
- $_var_4 = $_var_2->total();
- $_var_5 = getRender($_var_2, $_var_1);
- ?><div class="container"><?php
- $this->nav3();
-
- ?>
- <table class="layui-table">
- <thead>
- <tr>
- <th>编号</th>
- <th>安卓地址</th>
- <th>IOS地址</th>
- <th>合并地址</th>
- <th>用户名</th>
- <th>用户ID</th>
- <th>添加时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <?php
- if ($_var_4 == 0) {
- ?><td colspan="22" style="margin:auto;text-align:center" >暂无合并</td>
- <?php
- } else {
- foreach ($_var_3 as $_var_8) {
- ?><tr class="hover">
- <td><?php echo $_var_8["id"];?></td>
- <td><?php echo $_var_8["android"];?></td>
- <td><?php echo $_var_8["ios"];?></td>
- <td><?php echo $_var_8["link"];?></td>
- <td><?php echo $_var_8["username"];?></td>
- <td><?php echo $_var_8["userid"];?></td>
- <td><?php echo date("Y-m-d H:i:s", $_var_8["ctime"]);?></td>
- <td><a class="layui-btn layui-btn-danger layui-btn-xs" href="?c=combine&a=del&id=<?php echo $_var_8["id"];?>"><i class="layui-icon layui-icon-delete"></i>删除</a></td>
- </tr>
- <?php
- }
- }
- ?></table>
- <?php echo $this->render($_var_5);?>
- </div>
- <?php
- }
- function del()
- {
- $_var_9 = SafeRequest("id", "get");
- db("combine")->where("id", $_var_9)->delete();
- $this->ShowMessage("恭喜您,删除成功!", $_SERVER["HTTP_REFERER"], "infotitle2", 3000, 1);
- }
- }
|