|
- <?php
- /**
- * Created by PhpStorm.
- * User: tianlionfire
- * Date: 2018/3/7
- * Time: 10:35
- */
-
- use backend\modules\zzcs\assets\ZzcsAsset;
- use yii\widgets\Pjax;
-
- ZzcsAsset::addCss($this, '/plug/My97DatePicker/skin/WdatePicker.css');
- ZzcsAsset::addCss($this, '/global/css/combo.select.css');
- ZzcsAsset::addCss($this, '/global/css/bootstrap.min.css');
- ZzcsAsset::addCss($this, '/hotel-affiche/css/affiche_list.css');
- ZzcsAsset::addScript($this, '/global/js/jquery.combo.select.js');
- ZzcsAsset::addScript($this, '/hotel-affiche/js/affiche_list.js?v=20180307');
- ZzcsAsset::addScript($this, '/plug/My97DatePicker/WdatePicker.js');
- ZzcsAsset::addScript($this, '/plug/layer/layer.js');
- ZzcsAsset::addScript($this, '/plug/date-time/date-manage.js?v=001');
-
- ?>
- <div class="search_cost">
- <ul id="search_cost">
- <li class="search2">
- <span class="name_span">酒店名称:</span>
- <select class="hotel_name" id="hotel_name">
- <option value="">请选择</option>
- <?php foreach ($hotelName as $key => $vel) { ?>
- <option value="<?php echo $vel['hotel_name']; ?>"><?php echo $vel['hotel_name']; ?></option>
- <?php } ?>
- </select>
- </li>
- <li class="search9">
- <span class="name_span">公告类型:</span>
- <select id="affiche_type" class="affiche_type" style="font-size:12px;">
- <option value="-1" selected="selected" style="font-size: 12px;">全部</option>
- <option value="1" style="font-size: 12px;">价格调整</option>
- <option value="2" style="font-size: 12px;">预定信息</option>
- <option value="3" style="font-size: 12px;">酒店信息</option>
- <option value="0" style="font-size: 12px;">其他</option>
- </select>
- </li>
- <li class="search9">
- <span class="name_span">排序:</span>
- <select id="sort" class="sort" style="font-size:12px;">
- <option value="" selected="selected" style="font-size: 12px;">请选择</option>
- <option value="1" style="font-size: 12px;">重要等级</option>
- <option value="2" style="font-size: 12px;">发布时间</option>
- <option value="3" style="font-size: 12px;">发布人</option>
- </select>
- </li>
- <li>
- <span class="name_span">发布人:</span>
- <select id="create_name" class="create_name">
- <option value="" selected="selected" style="font-size: 12px;">全部</option>
- <?php foreach ($createUserName as $v): ?>
- <option value="<?= $v['createUserName'] ?>"
- style="font-size: 12px;"><?= $v['createUserName'] ?></option>
- <?php endforeach; ?>
- </select>
- </li>
- <li class="search4">
- <span>更多查询:</span>
- <input type="text" style="font-size:12px;width:150px;" id="more_search" value="" size="40"
- placeholder="公告标题/公告内容"/>
- </li>
- <li class="search7">
- <span class="btn-primary" id="search_btn" onclick='searchInfo()'>查询</span>
- </li>
- </ul>
- </div>
- <!-----------head end-------------->
- <?php Pjax::begin(['id' => 'main_table', 'timeout' => 30000000]) ?>
- <div class="table_list">
- <table id="table_list">
- <thead>
- <tr style="text-align: center;">
- <th class="td5">重要等级</th>
- <!-- <th class="td2">编号</th>-->
- <th class="td3">酒店名称</th>
- <th class="td4">公告类型</th>
- <th class="td6">公告标题</th>
- <th class="td7">公告内容</th>
- <th class="td4">发布人</th>
- <th class="td11">发布时间</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach($afficheList as $val){ ?>
- <tr>
- <td class="td5" style="<?php if($val['important_level']==1){?>background:#dd4b39<?php }else if($val['important_level']==2){?>background:#f39c12<?php }else if($val['important_level']==3){?>background:#3b8ab8<?php }?>;color:#ffffff;"><?php echo $val['important_level_description']; ?></td>
- <!-- <td class="td2">--><?php //echo $val['index']; ?><!--</span></td>-->
- <td class="td3"><?php echo $val['hotel_name']; ?></td>
- <td class="td4"><?php echo $val['affiche_type_description']; ?></td>
- <td class="td6" style="cursor:pointer;overflow: hidden;white-space:nowrap;text-overflow: ellipsis;text-align:left;" onclick="lookDetail(<?php echo $val['id'];?>)"><?php echo $val['affiche_title']; ?></td>
- <td class="td7" style="overflow: hidden;white-space:nowrap;text-overflow: ellipsis;max-width:120px;cursor:pointer;text-align:left;" onclick="lookDetail(<?php echo $val['id'];?>)"><?php echo $val['content']; ?></td>
- <td class="td4"><?php echo $val['create_user_name']; ?></td>
- <td class="td11"><?php echo $val['create_time']; ?></td>
- </tr>
- <?php }; ?>
- </tbody>
- </table>
- </div>
- <!-----------body end ------------->
-
- <!--页码信息-->
- <div id="page_size_d" total_row="<?php echo $page['total_row']; ?>" total_page="<?php echo $page['total_page']; ?>">
- <span class="page_size">每页条数</span>
- <select id="page_size" onchange="changePageSize(this)">
- <?php foreach ($page_size_arr as $key => $vel) {
- if ($vel == $page['page_size']) {
- echo '<option value="' . $vel . '" selected=selected>' . $vel . '</option>';
- } else {
- echo '<option value="' . $vel . '">' . $vel . '</option>';
- }
- } ?>
- </select>
- </div>
- <div id="page_list">
- <?php
- if (count($page_arr) > 0) {
- foreach ($page_arr as $key => $vel) {
- if ($page['current_page'] == 1 && ($vel == '首页' || $vel == '<上一页')) {
- $class = 'not_click';
- } elseif ($page['current_page'] == $vel) {
- $class = 'click';
- } elseif ($page['current_page'] == $page['total_page'] && ($vel == '末页' || $vel == '下一页>')) {
- $class = 'not_click';
- } elseif ($vel == '...') {
- $class = 'not_click';
- } else {
- $class = 'clickable';
- }
- if ($vel != '首页' && $vel != '<上一页' && $vel != '下一页>' && $vel != '末页') {
- $class = 'page_num ' . $class;
- }
- if ($class == 'clickable' || $class == 'page_num clickable') {
- echo '<span class="' . $class . '" onclick="pageSearchInfo(this,' . $page['total_page'] . ')">' . $vel . '</span>';
- } else {
- echo '<span class="' . $class . '">' . $vel . '</span>';
- }
- }
- }
- ?>
- <span class="total_row">共<?php echo $page['total_row']; ?>条</span>
- </div>
- <?php Pjax::end() ?>
|