1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- namespace app\admin;
- class app_downlog extends Base
- {
- public function initialize()
- {
- parent::initialize();
- $this->Administrator(4);
- $this->header();
- }
- public function __destruct()
- {
- $this->footer();
- }
- function index($_var_0 = [])
- {
- $_var_1 = SafeRequest("page", "get");
- $this->search = SafeRequest("search", "get");
- $this->search && ($_var_0[] = ["uid|appid|appname", "like", "%" . $this->search . "%"]);
- $this->appid = SafeRequest("appid", "get");
- is_numeric($this->appid) && ($_var_0[] = ["appid", "=", $this->appid]);
- $this->mapTime("addtime", false, $_var_0);
- $_var_2 = db("downhistory")->where($_var_0)->order("id 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();
- $this->searchForm("", "", function () {
- echo " ";
- });
- ?> <form name="form" method="post" action="?c=app_pack&a=allsave">
- <table class="tb tb2">
- <tr>
- <th class="partition">分发下载记录</th>
- </tr>
- </table>
- <table class="layui-table">
- <thead>
- <tr>
- <th>ID</th>
- <th>用户</th>
- <th>应用名称</th>
- <th>版本</th>
- <th>大小</th>
- <th>浏览</th>
- <th>下载</th>
- <th>下载点数</th>
- <th>偷量</th>
- <th>偷量点数</th>
- <th>日期</th>
- </tr>
- </thead>
- <?php
- if ($_var_4 == 0) {
- ?><tr><td colspan="22" style="margin:auto;text-align:center" >暂无数据</td></tr><?php
- } else {
- if ($_var_3) {
- foreach ($_var_3 as $_var_6) {
- ?>
- <tr>
- <td><?php echo $_var_6["id"];?></td>
- <td><?php echo db("user")->where("in_userid", $_var_6["uid"])->value("in_username");?></td>
- <td><?php echo $_var_6["appname"];?></a></td>
- <td><?php echo $_var_6["appversion"];?></td>
- <td><?php echo formatsize($_var_6["appsize"]);?></td>
- <td><?php echo $_var_6["liulan"];?></td>
- <td><?php echo $_var_6["down"];?></td>
- <td><?php echo $_var_6["down_points"];?></td>
- <td><?php echo $_var_6["steal"];?></td>
- <td><?php echo $_var_6["steal_points"];?></td>
- <td><?php echo explode(" ", $_var_6["addtime"])[0];?></td>
- </tr><?php
- }
- }
- }
- ?> </table>
- <?php echo $this->render($_var_5);?> </form>
- </div>
-
- <?php
- }
- }
|