| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- ${zhiqim_manager_content()}
- <#-- 导航 -->
- <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
- <nav>
- <ul>
- <li class="z-active">公告管理</li>
- </ul>
- <div class="z-float-left z-mg10">
- <form name="theForm" method="post">
- <input name="title" class="z-float-left z-input z-w300 zi-bd-r-none" value="${title}" maxlength="64" placeholder="公告标题">
- <select name="status" class="z-float-left z-select z-mg-r-1 zi-bd-r-none" data-role="z-select" data-class="${zmr_color_class}">
- <option value="">全部公告状态</option>
- <option value="0" <#if status=="0">selected</#if>>草稿</option>
- <option value="1" <#if status=="1">selected</#if>>已发布</option>
- <option value="2" <#if status=="2">selected</#if>>已下线</option>
- </select>
- <button class="z-float-left z-button z-w80 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i>查询</button>
- </form>
- </div>
- <div class="z-text-right z-mg-t10 z-mg-r5">
- <button class="z-button ${zmr_color_class}" onclick="Z.L.href('noticeAdd.htm');"><i class="z-font z-add"></i>增加公告</button>
- </div>
- </nav>
- </div>
- <#-- 列表 -->
- <table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
- <tr bgcolor="${zmr_thead_bgcolor}">
- <td width="50">选择</td>
- <td width="10%">公告状态</td>
- <td width="*">文章标题</td>
- <td width="10%">创建人</td>
- <td width="10%">创建时间</td>
- <td width="10%">发布人</td>
- <td width="10%">发布时间</td>
- <td width="10%">操作</td>
- </tr>
- ${zhiqim_manager_tr_no_record(noticeList, 5, "暂时没有公告信息")}
- <#for item :noticeList.list()>
- <tr class="z-h40 z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
- <td><input name="noticeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getId()}"></td>
- <td>
- <#if item.getStatus()==0><span style="color:violet">草稿</span></#if>
- <#if item.getStatus()==1><span style="color:green">已发布</span></#if>
- <#if item.getStatus()==2><span style="color:red">已下线</span></#if>
- </td>
- <td><a title="点击查看详情" href="javascript:getInfo('${item.getId()}');">${item.getTitle()}</a></td>
- <td>${item.getAddUser()}</td>
- <td>
- ${Sqls.toDateTimeString(item.getAddTime())}
- </td>
- <td>${item.getFinshUser()}</td>
- <td>${Sqls.toDateTimeString(item.getFinshTime())}</td>
- <td>
- <#if item.getStatus()==0>
- <button class="z-button ${zmr_color_class}" onclick="doModify('${item.getId()}')"><i class="z-font z-modify"></i>修改</button>
- <button class="z-button z-green" onclick="doEnable('${item.getId()}');"><i class="z-font z-open"></i>发布</button>
- </#if>
- <#if item.getStatus()==1>
- <button class="z-button z-red" onclick="doBlockUp('${item.getId()}')"><i class="z-font z-close"></i>下线</button>
- </#if>
- <!--
- <#if item.getStatus()==2>
- <button class="z-button z-green" onclick="doEnable('${item.getId()}');"><i class="z-font z-open"></i>发布</button>
- </#if>
- //-->
- </td>
- </tr>
- </#for>
- </table>
- ${zhiqim_manager_paging(noticeList, "noticeList.htm")}
- <script>
- function doEnable(id){
- Z.confirm("您确定要启用该公告吗",function(){
- var ajax = new Z.Ajax();
- ajax.setClassName("DesignerNoticePresenter");
- ajax.setMethodName("doEnable");
- ajax.addParam(id);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- Z.success("操作成功",function(){
- parent.location.reload();
- parent.Z.Dialog.close();
- });
- });
- ajax.execute();
- });
- }
- function doBlockUp(id){
- Z.confirm("您确定要下线该公告吗",function(){
- var ajax = new Z.Ajax();
- ajax.setClassName("DesignerNoticePresenter");
- ajax.setMethodName("doBlockUp");
- ajax.addParam(id);
- ajax.setFailureAlert();
- ajax.setSuccess(function(){
- Z.success("操作成功",function(){
- parent.location.reload();
- parent.Z.Dialog.close();
- });
- });
- ajax.execute();
- });
- }
- function doModify(id){
- window.location.href="/noticeModify.htm?noticeId="+id;
- }
- function getInfo(id){
- var dialog = new Z.Dialog();
- dialog.title = "公告详情";
- dialog.url = "/noticeInfo.htm?id="+id;
- dialog.width = 1000;
- dialog.height = 746;
- dialog.execute();
- }
- </script>
|