123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <%@ 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%>">
- <meta charset="utf-8" />
- <%@ include file="../../system/index/top.jsp"%>
- <script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
- <link type="text/css" rel="stylesheet" href="plugins/zTree/2.6/zTreeStyle.css"/>
- <script type="text/javascript" src="plugins/zTree/2.6/jquery.ztree-2.6.min.js"></script>
- </head>
- <body style="background-color:#FFFFFF">
- <div>
- <div style="width:20%;height:870px;vertical-align:top;background-color:#F9F9F9;float:left">
- <ul id="leftTree" class="tree"></ul>
- </div>
- <div style="width:79.5%;vertical-align:top;float:right">
- <!-- 检索 -->
- <form action="department/yearListAllDepartment.do" method="post" name="Form" id="Form">
- <table style="margin-top:5px;">
- <tr>
- <td>
- <select name="YEAR" id="YEAR" data-placeholder="请选择年份" style="vertical-align:top;" style="width:100%;" >
- <c:forEach items="${yearList}" var="var" varStatus="vs">
- <option value="${var}" <c:if test="${var == currentYear}">selected</c:if>>${var}</option>
- </c:forEach>
- </select>
- </td>
- <td>
- <span class="input-icon">
- <input type="text" placeholder="这里输入关键词" class="nav-search-input" id="keywords"
- name="keywords" autocomplete="off" value="${page.pd.keywords }" style="height:30px"/>
- </span>
- </td>
- <td>
- <select name="DEPARTMENT_ID" id="DEPARTMENT_ID">
- <option value="${DEPARTMENT_ID}" <c:if test="${DEPARTMENT_ID != ''}">selected</c:if>>本级</option>
- <option value="" <c:if test="${DEPARTMENT_ID == ''}">selected</c:if>>全部</option>
- </select>
- </td>
- <c:if test="${QX.cha == 1 }">
- <td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="gsearch();" title="检索"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i></a></td>
- </c:if>
- <td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="gset();" title="配置"><i id="nav-search-icon" class="ace-icon fa fa-cog bigger-110 nav-search-icon blue"></i></a></td>
- </tr>
- </table>
- <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>
- </tr>
- </thead>
- <tbody>
- <!-- 开始循环 -->
- <c:choose>
- <c:when test="${not empty varList}">
- <c:if test="${QX.cha == 1 }">
- <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'><a href="javascript:goSondict('${var.DEPARTMENT_ID }')"><i class="ace-icon fa fa-share bigger-100"></i> ${var.NAME}</a></td>
- <td class='center'><a href="javascript:goSondict('${var.DEPARTMENT_ID }')">${var.NAME_EN}</a></td>
- <td class='center'>${var.BIANMA}</td>
- <td class='center'>${var.HEADMAN}</td>
- </tr>
- </c:forEach>
- </c:if>
- <c:if test="${QX.cha == 0 }">
- <tr><td colspan="100" class="center">您无权查看</td></tr>
- </c:if>
- </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;">
- <c:if test="${null != pd.DEPARTMENT_ID && pd.DEPARTMENT_ID != ''}">
- <a class="btn btn-sm btn-success" onclick="goSondict('${pd.PARENT_ID}');">返回</a>
- </c:if>
- </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>
- </div>
- <!-- 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 type="text/javascript" src="static/js/jquery.tips.js"></script>
- <SCRIPT type="text/javascript">
- //关闭加载状态
- $(top.hangge());
- var zTree;
- $(document).ready(function(){
- var setting = {
- showLine: true,
- checkable: false
- };
- var zn = '${zTreeNodes}';
- var zTreeNodes = eval(zn);
- zTree = $("#leftTree").zTree(setting, zTreeNodes);
- });
-
- //检索
- function gsearch(){
- top.jzts();
- $("#Form").submit();
- }
-
- //去此ID下子级列表
- function goSondict(DEPARTMENT_ID){
- top.jzts();
- window.location.href="<%=basePath%>department/yearList.do?DEPARTMENT_ID="+DEPARTMENT_ID+"&YEAR="+$("#YEAR").val();
- };
-
- //配置
- function gset(){
- top.jzts();
- var diag = new top.Dialog();
- diag.Drag=true;
- diag.Title ="配置";
- diag.URL = '<%=basePath%>department/gset.do?DEPARTMENT_ID='+DEPARTMENT_ID+'&dnowPage=${page.currentPage}';
- diag.Width = 350;
- diag.Height = 465;
- diag.CancelEvent = function(){ //关闭事件
- if('none' == diag.innerFrame.contentWindow.document.getElementById('zhongxin')){
- parent.location.href="<%=basePath%>department/yearListAllDepartment.do?dnowPage=${page.currentPage}";
- }
- diag.close();
- };
- diag.show();
- }
- </SCRIPT>
- </body>
- </html>
|