| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>园区通告管理</title>
- <style>
- .text-c{text-align:left}
- </style>
- </head>
- <body layout:fragment="content">
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i>
- 首页
- <span class="c-gray en">></span>通告管理
- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
- <i class="Hui-iconfont"></i>
- </a>
- </nav>
- <form id="myForm" th:action="@{/government/notify/list}" th:method="get">
- <div class="page-container">
- <div class="text-c">
- <span class="select-box" style="width:200px">
- <select th:id="type" class="select" th:name="type" >
- <option value="">--请选择类型--</option>
- <option th:each="item : ${notify_type}" th:value="${item.value}" th:text="${item.code}" th:selected="${condition.type}==${item.value}">
- </option>
- </select>
- </span>
- <input type="text" class="input-text" style="width:200px" placeholder="请输入来源或标题" name="keyword" th:value="${condition.keyword}"/>
- <label>开始日期:</label><input type="text" class="input-text" style="width:200px" readonly placeholder="请输入开始日期" id="begin_date" name="begin_date" th:value="${condition.begin_date}"/>
- <label>结束日期:</label><input type="text" class="input-text" style="width:200px" readonly placeholder="请输入结束日期" id="end_date" name="end_date" th:value="${condition.end_date}"/>
- <button type="submit" class="btn btn-primary">
- 搜索
- </button>
- </div>
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <span class="l" th:if="${is_admin} eq true" ><!-- -->
- <!-- <a href="javascript:;" th:onclick="'javascript:notify_status(\'/government/notify/status\',\'false\');'" class="btn btn-primary radius">启用</a>
- <a href="javascript:;" th:onclick="'javascript:notify_status(\'/government/notify/status\',\'true\');'" class="btn btn-primary radius">禁用</a>
- -->
- <!-- <a href="javascript:;" onclick="notify_del()" class="btn btn-danger radius"><i class="Hui-iconfont"></i> 批量删除</a> -->
- <a href="javascript:;" onclick="notify_archive()" class="btn btn-danger radius"><i class="Hui-iconfont"></i> 归档</a>
- <a href="javascript:;" th:onclick="'javascript:notify_add(\'新增\',\'/government/notify/add\',\'800\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont"></i> 新增</a>
- </span>
- <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
- </div>
- <table id="notifyTb" class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
- <thead>
- <tr class="text-c">
- <th><input type="checkbox" name="" value=""/></th>
- <th style="width:250px;">标题</th>
- <th width="44">类型</th>
- <th>来源</th>
- <th style="width:150px;">接收日期</th>
- <th style="width:150px;">推送日期</th>
- <th>有效截止日期</th>
- <th style="width:150px;">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
- <!--<td><input type="checkbox" value="2" name=""/></td>-->
- <td><input type="checkbox" th:id="*{id}" th:value="*{id}" name="id"/></td>
- <td th:text="*{title}" class="text-overflow" th:title="*{title}"></td>
- <td th:text="*{type_code}"></td>
- <td th:text="*{source_name}"></td>
- <td th:text="*{create_time}"></td>
- <td>
- <span th:if="*{push_date}" th:text="*{push_date}">已推送</span>
- <span th:unless="*{push_date}" th:text="未推送">未推送</span>
- </td>
- <td>
- <span th:if="*{expiry_date}!=''" th:text="*{expiry_date}"></span>
- <span th:if="*{expiry_date}==''" th:text="无有效日期">无</span>
- </td>
- <td class="td-manage" th:if="*{source}=='0'">
- <a href="javascript:;" onclick="notify_info('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_info(\'详情\',\'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
- <a th:unless="*{push_date}" href="javascript:;" onclick="notify_edit('编辑','admin-add.html','2','800','500')" th:onclick="'javascript:notify_edit(\'编辑\',\'/government/notify/edit/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a>
- <a title="推送" href="javascript:;" onclick="notify_detailInfo('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_detailInfo(\'推送\',\'/government/notify/directPush/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">推送</a>
- <a title="阅读情况" href="javascript:;" onclick="notify_detailInfo('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_detailInfo(\'阅读情况\',\'/government/notifyDetail/list/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">阅读情况</a>
- </td>
- <td class="td-manage" th:unless="*{source}=='0'">
- <a href="javascript:;" onclick="notify_info('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_info(\'详情\',\'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
- <a title="阅读情况" href="javascript:;" onclick="notify_detailInfo('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_detailInfo(\'阅读情况\',\'/government/notifyDetail/list/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">阅读情况</a>
- </td>
- </tr>
- </tbody>
- </table>
- <div th:replace="admin/common/page :: page"></div>
- </div>
- </form>
- <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
- <script type="text/javascript" th:src="@{/js/government/notify/notify_list.js}"></script>
- <script th:inline="javascript">
- laydate.render({
- elem: '#begin_date' //指定元素
- });
- laydate.render({
- elem: '#end_date' //指定元素
- });
- </script>
- </body>
- </html>
|