123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?php
- namespace app\admin;
- class super_sign extends Base
- {
- public $statusText = [-2 => "签名失败", -1 => "解析失败", "未签名", "准备中", "正在解析", "正在签名", "正在打包", "签名完成"];
- public function initialize()
- {
- parent::initialize();
- $this->Administrator(6);
- $this->header();
- }
- public function __destruct()
- {
- ?> <script>
- $('input[name=sort]').on('input', function () {
- var sort = $(this).val();
- if (sort != $(this).attr('data-sort'))
- $.ajax({
- url: '?c=ajax&a=ios_device_sort',
- data: {id: $(this).attr('data-id'), sort: sort},
- type: 'post',
- success: function (ret) {
- console.log(ret)
- }
- });
- });
- </script>
- <?php
- $this->footer();
- }
- function index($map = [])
- {
- $this->search = SafeRequest("search", "get");
- $this->search && ($map[] = ["user_id|app_id|app_name|udid|cert_iss", "like", "%" . $this->search . "%"]);
- $_var_0 = SafeRequest("app_id", "get");
- $_var_0 && ($map[] = ["app_id", "=", $_var_0]);
- $this->type = SafeRequest("type", "get");
- is_numeric($this->type) && ($map[] = ["type", "=", $this->type]);
- $_var_1 = SafeRequest("udid", "get");
- $_var_1 && ($map[] = ["udid", "=", $_var_1]);
- $_var_2 = SafeRequest("page", "get");
- $this->mapTime("sign_time", true, $map);
- $_var_3 = db("super_sign")->where($map)->order("sign_time desc")->paginate(["page" => $_var_2]);
- $_var_4 = $_var_3->items();
- $_var_5 = getRender($_var_3, $_var_2);
- $_var_6 = $_var_3->total();
- ?><div class="container"><?php
- $this->nav3();
- $this->searchForm("", "", function () {
- ?> <select name="type" onchange="document.btnsearch.submit();">
- <option value="">全部类型</option>
- <option value="1" <?php echo $this->type == "1" ? "selected=\"selected\"" : "";?>>首次</option>
- <option value="0" <?php echo $this->type == "0" ? "selected=\"selected\"" : "";?>>重复</option>
- </select>
- <?php
- });
- ?>
- <style type="text/css">
- a{
- text-decoration: none;
- }
- a:hover{ text-decoration:none}
- </style>
- <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>设备UDID</th>
- <th>所用证书</th>
- <th>类型</th>
- <th>签名时间</th>
- <th>状态</th>
- </tr>
- </thead>
- <?php
- if ($_var_6 == 0) {
- ?><tr><td colspan="22" style="margin:auto;text-align:center" >暂无数据</td></tr>
- <?php
- }
- if ($_var_4) {
- foreach ($_var_4 as $_var_7) {
- ?><tr class="hover">
- <td class="td25"><?php echo $_var_7["id"];?></td>
- <td><?php echo $_var_7["app_name"];?></td>
- <td><?php echo $_var_7["app_version"];?></td>
- <td><?php echo $_var_7["udid"];?></td>
- <td><?php echo $_var_7["cert_iss"];?></td>
- <td><?php echo $_var_7["type"] ? "首次" : "重复";?></td>
- <td><?php echo date("Y-m-d H:i:s", $_var_7["sign_time"]);?></td>
- <td><a class="layui-btn layui-btn-normal layui-btn-xs"><?php echo $this->statusText[$_var_7["status"]];?></td></tr><?php
- }
- }
- ?></table></div><?php echo $_var_5;?><?php
- }
- }
|