1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@taglib prefix="p" uri="http://www.test.com/jsp/permission"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <%@ include file="../../common/head.jsp"%>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css"
- rel="stylesheet" />
- <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
- <script
- src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
- <script
- src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
- <script type="text/javascript">
- <!--
- function setShow(value,row,index){
- if(row.news_show == '1'){
- return '显示' ;
- }else{
- return '隐藏' ;
- }
- }
- function setOpenFlag(value,row,index){
- if(row.open_flag == '1'){
- return '公开' ;
- }else{
- return '内部' ;
- }
- }
- //-->
- </script>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row row-lg">
- <div class="col-sm-12">
- <cs:toolbar title="公告" tableId="tabNews" width="100%"
- height="100%" menuCode="${menuCode }" >
- </cs:toolbar>
- <table id="tabNews" data-toggle="table" data-url="list2.cs"
- data-method="get" data-click-to-select="true"
- data-pagination="true" data-search="false" data-data-type="json"
- data-show-refresh="true" data-show-columns="true"
- data-show-toggle="true" data-search-on-enter-key="true"
- data-toolbar="#def_toolbar" data-side-pagination="server"
- data-query-params="queryParams" data-mobile-responsive="true">
- <thead>
- <tr>
- <th data-radio="true" data-click-to-select="true"></th>
- <th data-field="news_title">标题</th>
- <th data-field="open_flag" data-formatter="setOpenFlag">是否公开</th>
- <th data-field=news_sort>排序</th>
- <th data-field="news_show" data-formatter="setShow">是否显示</th>
- <th data-field="create_time" data-formatter="format_time">添加时间</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </body>
- </html>
|