| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- use common\services\xhMerchantService;
- use common\services\xhCouponService;
- use common\services\xhUserService;
- use common\services\xhUserAssetService;
- use common\components\stringUtil;
- ?>
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
- <div class="row">
- <form action="" method="GET">
- <div class="col-xs-6" style="width:90%;">
- <div class="dataTables_length">
- <label>类型: <select name="class" class="form-control">
- <option <?php if(isset($_GET['class']) && $_GET['class'] == -1){ echo 'selected="selected"'; }?> value="-1">全部</option>
- <option <?php if(isset($_GET['class']) && $_GET['class'] == 1){ echo 'selected="selected"'; }?> value="1">会员</option>
- </select>
- </label>
- <label>昵称/手机号:<input type="search" value="<?php if(isset($_GET['content'])){ echo $_GET['content']; } ?>" class="form-control" name="content" placeholder=""></label>
- <input class="btn btn-secondary btn-single" type="submit" name="" value="搜索" />
- </div>
- </div>
- </form>
- </div>
- <div class="table-responsive">
- <table class="table table-bordered table-striped table-hover" >
- <thead>
- <tr class="active">
- <th class="no-sorting hidden-xs"><input name="selectAll" type="checkbox"></th>
- <th class="hidden-xs">商家</th>
- <th class="hidden-xs">ID</th>
- <th class="hidden-xs">头像</th>
- <th>昵称</th>
- <th class="hidden-xs">手机号</th>
- <th class="hidden-xs">等级</th>
- <th class="hidden-xs">积分</th>
- <th class="hidden-xs">粉丝</th>
- <th class="hidden-xs">关注时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody class="middle-align">
- <?php foreach($models as $key => $val){
- $userId = $val['id'];
- $asset = xhUserAssetService::getByUserId($userId);
- $merchantId = $val['merchantId'];
- $merchant = xhMerchantService::getById($merchantId);
- ?>
- <tr>
- <td class="hidden-xs"><input name="uId" value="<?= $val['id'] ?>" type="checkbox"></td>
- <td class="hidden-xs"><?= $merchant['merchantName'] ?></td>
- <td class="hidden-xs"><?= $val['id'] ?></td>
- <td class="hidden-xs">
- <a href="/user/detail?id=<?= $val['id'] ?>" title="<?= $val['userName'] ?>">
- <img src="/images/newGrey.gif" class="lazy" data-original="<?php if(!empty($val['avatar'])){ $avatar = xhUserService::getAvatarList($val['avatar']); echo Yii::$app->params['imgUrl'].$avatar['small']; }else{ echo '/images/avatar.jpg'; } ?>" style="width:20px;border-radius:10px;" />
- </a>
- </td>
- <td><a class="add-under-line" href="/user/detail?id=<?= $val['id'] ?>" title="<?= $val['userName'] ?>"><?php echo stringUtil::subStringUtf8($val['userName'],4,'..'); ?></a></td>
- <td class="hidden-xs">
- <?= $val['mobile'] ?>
- </td>
- <td class="hidden-xs"><?php if(!empty($asset['memberLevel'])){ echo $asset['memberLevel']; } ?>
- </td>
- <td class="hidden-xs"><?php if(!empty($asset['integral'])){ echo $asset['integral']; } ?></td>
- <td class="hidden-xs"><?php if($val['subscribe'] == 1) echo '<a href="javascript:void(0)" style="color:#68b828;cursor:text" <i class="fa fa-check"></i></a>'; ?></td>
- <td class="hidden-xs"><?php if(!empty($val['subscribeTime'])){ echo date("Y-n-j H:i",$val['subscribeTime']); } ?></td>
- <td class="hidden-xs"></td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
- <div class="row">
- <div>
- <div style="display:inline-block;margin-left:15px;">
- <label>
- <select name="doOption" aria-controls="example-1" class="form-control">
- <option value="0">添加标签</option>
- </select>
- </label>
- <button name="multipConfirm" class="btn btn-secondary btn-single">确认</button>
- </div>
- <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
- <?= $pages ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- footer -->
- <?php
- use backend\widgets\FooterWidget;
- ?>
- <?= FooterWidget::widget()?>
- <!-- footer -->
|