| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <!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>
- </head>
- <body layout:fragment="content">
- <style>
- .permission-list2 > dt{
- display:block!important;
- width:50%!important;
- background-color: #efefef!important;
- padding: 5px 10px!important;
- float:none!important;
- }
- </style>
- <article class="page-container">
- <form class="form form-horizontal" id="form-notify-add">
- <div id="tab-system" class="HuiTab">
- <div class="tabBar cl">
- <span>递推园区</span>
- </div>
-
- <div class="tabCon">
- <table id="streetTb" class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th>园区名称</th>
- <th>阅读情况</th>
- </tr>
- </thead>
- <tbody class="pushStreetsList" >
- <tr class="text-c" th:each="build,iterStat:${buildDetail}"
- th:object="${build}">
- <td><span name="push_name" th:text="*{push_name}"></span></td>
- <td class="td-status">
- <span class="label radius" th:unless="*{is_read}">未读</span>
- <span class="label radius label-success" th:if="*{is_read}">已读</span>
- </td>
- </tr>
- </tbody>
- </table>
- <div th:replace="admin/common/page :: page"></div>
- </div>
-
- </div>
-
- <div class="row cl">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <button class="btn btn-primary radius" type="submit" onClick="savePush();"><i class="Hui-iconfont"></i> 保存</button>
- <button onClick="removeIframe();" class="btn btn-default radius" type="button"> 取消 </button>
- </div>
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/js/government/notify/notify_addPush.js}"></script>
- <script th:inline="javascript">
- !function($) {
- $.fn.Huitab = function(options){
- var defaults = {
- tabBar:'.tabBar span',
- tabCon:".tabCon",
- className:"current",
- tabEvent:"click",
- index:0,
- }
- var options = $.extend(defaults, options);
- this.each(function(){
- var that = $(this);
- that.find(options.tabBar).removeClass(options.className);
- that.find(options.tabBar).eq(options.index).addClass(options.className);
- that.find(options.tabCon).hide();
- that.find(options.tabCon).eq(options.index).show();
-
- that.find(options.tabBar).on(options.tabEvent,function(){
- that.find(options.tabBar).removeClass(options.className);
- $(this).addClass(options.className);
- var index = that.find(options.tabBar).index(this);
- that.find(options.tabCon).hide();
- that.find(options.tabCon).eq(index).show();
- });
- });
- }
- } (window.jQuery);
- $(function () {
- $("#tab-system").Huitab();
- $(".permission-list dt input:checkbox").click(function(){
- $(this).closest("dl").find("dd input:checkbox").prop("checked",$(this).prop("checked"));
- });
- $(".permission-list2 dd input:checkbox").click(function(){
- var l =$(this).parent().parent().find("input:checked").length;
- var l2=$(this).parents(".permission-list").find(".permission-list2 dd").find("input:checked").length;
- if($(this).prop("checked")){
- $(this).closest("dl").find("dt input:checkbox").prop("checked",true);
- $(this).parents(".permission-list").find("dt").first().find("input:checkbox").prop("checked",true);
- }
- else{
- if(l==0){
- $(this).closest("dl").find("dt input:checkbox").prop("checked",false);
- }
- if(l2==0){
- $(this).parents(".permission-list").find("dt").first().find("input:checkbox").prop("checked",false);
- }
- }
- });
-
-
- });
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
-
- </script>
- </body>
- </html>
|