| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme() + "://"
- + request.getServerName() + ":" + request.getServerPort()
- + path + "/";
- %>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <base href="<%=basePath%>">
- <!-- 下拉框 -->
- <link rel="stylesheet" href="static/ace/css/chosen.css" />
- <!-- jsp文件头和头部 -->
- <%@ include file="../../system/index/top.jsp"%>
- <!-- 日期框 -->
- <link rel="stylesheet" href="static/ace/css/datepicker.css" />
- </head>
- <body class="no-skin">
- <!-- /section:basics/navbar.layout -->
- <div class="main-container" id="main-container">
- <!-- /section:basics/sidebar -->
- <div class="main-content">
- <div class="main-content-inner">
- <div class="page-content">
- <div class="row">
- <div class="col-xs-12">
- <form action="loginimg/list.do" method="post" name="Form" id="Form">
- </from>
- <table id="simple-table" class="table table-striped table-bordered table-hover" style="margin-top:5px;">
- <thead>
- <tr>
- <th class="center" style="width:50px;">序号</th>
- <th class="center">图片</th>
- <th class="center">名称</th>
- <th class="center">状态</th>
- <th class="center">排序</th>
- <th class="center">操作</th>
- </tr>
- </thead>
-
- <tbody>
- <!-- 开始循环 -->
- <c:choose>
- <c:when test="${not empty varList}">
- <c:forEach items="${varList}" var="var" varStatus="vs">
- <tr>
- <td class='center' style="width: 30px;">${page.showCount*(page.currentPage-1)+vs.index+1}</td>
- <td class='center'><img src="<%=basePath%>static/login/images/${var.FILEPATH}" width="100" /></td>
- <td class='center'>${var.NAME}</td>
- <td class='center'>${var.TYPE == 1?'启用':'停用'}</td>
- <td class='center'>${var.FORDER}</td>
- <td class="center">
- <div class="hidden-sm hidden-xs btn-group">
- <a class="btn btn-xs btn-success" title="编辑" onclick="edit('${var.LOGINIMG_ID}');">
- <i class="ace-icon fa fa-pencil-square-o bigger-120" title="编辑"></i>
- </a>
- <a class="btn btn-xs btn-danger" onclick="del('${var.LOGINIMG_ID}');">
- <i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i>
- </a>
- </div>
- <div class="hidden-md hidden-lg">
- <div class="inline pos-rel">
- <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
- <i class="ace-icon fa fa-cog icon-only bigger-110"></i>
- </button>
-
- <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
- <li>
- <a style="cursor:pointer;" onclick="edit('${var.LOGINIMG_ID}');" class="tooltip-success" data-rel="tooltip" title="修改">
- <span class="green">
- <i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
- </span>
- </a>
- </li>
- <li>
- <a style="cursor:pointer;" onclick="del('${var.LOGINIMG_ID}');" class="tooltip-error" data-rel="tooltip" title="删除">
- <span class="red">
- <i class="ace-icon fa fa-trash-o bigger-120"></i>
- </span>
- </a>
- </li>
- </ul>
- </div>
- </div>
- </td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr class="main_info">
- <td colspan="100" class="center" >没有相关数据</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- <div class="page-header position-relative">
- <table style="width:100%;">
- <tr>
- <td style="vertical-align:top;">
- <a class="btn btn-mini btn-success" onclick="add();">新增</a>
- </td>
- <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
- </tr>
- </table>
- </div>
- </form>
-
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- </div>
- <!-- /.page-content -->
- </div>
- </div>
- <!-- /.main-content -->
- <!-- 返回顶部 -->
- <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
- <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
- </a>
- </div>
- <!-- /.main-container -->
- <!-- basic scripts -->
- <!-- 页面底部js¨ -->
- <%@ include file="../../system/index/foot.jsp"%>
- <!-- 删除时确认窗口 -->
- <script src="static/ace/js/bootbox.js"></script>
- <!-- ace scripts -->
- <script src="static/ace/js/ace/ace.js"></script>
- <!-- 下拉框 -->
- <script src="static/ace/js/chosen.jquery.js"></script>
- <!-- 日期框 -->
- <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
- <!--提示框-->
- <script type="text/javascript" src="static/js/jquery.tips.js"></script>
- <script type="text/javascript">
- $(getTop(globalThis).hangge());//关闭加载状态
- //检索
- function tosearch(){
- getTop(globalThis).jzts();
- $("#Form").submit();
- }
-
- //新增
- function add(){
- getTop(globalThis).jzts();
- var diag = new getTop(globalThis).Dialog();
- diag.Drag=true;
- diag.Title ="新增";
- diag.URL = '<%=basePath%>loginimg/goAdd.do';
- diag.Width = 450;
- diag.Height = 335;
- diag.Modal = true; //有无遮罩窗口
- diag. ShowMaxButton = true; //最大化按钮
- diag.ShowMinButton = true; //最小化按钮
- diag.CancelEvent = function(){ //关闭事件
- if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
- tosearch();
- }
- diag.close();
- };
- diag.show();
- }
-
- //删除
- function del(Id){
- bootbox.confirm("确定要删除吗?", function(result) {
- if(result) {
- getTop(globalThis).jzts();
- var url = "<%=basePath%>loginimg/delete.do?LOGINIMG_ID="+Id+"&tm="+new Date().getTime();
- $.get(url,function(data){
- tosearch();
- });
- }
- });
- }
-
- //修改
- function edit(Id){
- getTop(globalThis).jzts();
- var diag = new getTop(globalThis).Dialog();
- diag.Drag=true;
- diag.Title ="编辑";
- diag.URL = '<%=basePath%>loginimg/goEdit.do?LOGINIMG_ID='+Id;
- diag.Width = 450;
- diag.Height = 220;
- diag.Modal = true; //有无遮罩窗口
- diag. ShowMaxButton = true; //最大化按钮
- diag.ShowMinButton = true; //最小化按钮
- diag.CancelEvent = function(){ //关闭事件
- if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
- tosearch();
- }
- diag.close();
- };
- diag.show();
- }
-
- </script>
- </body>
- </html>
|