| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>课程列表</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/hr/train/courseClassTree.js"></script>
- <script type="text/javascript">
- var grid = null;
- $(document).ready(function(){
- $("#layout1").ligerLayout({
- leftWidth : 250,
- height : '99%'
- });
- initCourseGrid();
- });
- function initCourseGrid(params) {
- var columns = [
- { display: '课程类别ID', name: 'class_id',align: 'left', type: 'text',isSort: false, hide: true,width:100},
- {
- display : '课程类别',
- name : 'class_name',
- width : 100
- }, {
- display : '课程名称',
- name : 'course_name',
- width : 150
- }];
-
- grid = $("#maingrid4")
- .ligerGrid(
- {
- columns : columns,
- pageSize : 20,
- url : 'hrTrainCourseAction.do?task=courseList&time=' + new Date().getTime() + params,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '94%',
- enabledEdit: true,
- checkbox : true
-
- });
- $("#pageloading").hide();
- // $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- //查询
- function searchByKword(tree) {
- var s = "";
- var class_id ="";
- if(tree=="tree"){
- class_id = $("#class_id").val();
- }else{
- class_id = $("#_class_id").val();
- }
- class_id= $("#class_id").val()
- if (class_id != "" && typeof (class_id) != "undefined") {
- s += "&class_id=" + class_id;
- }
- var course_name = $("#course_name").val();//规则名称
- if (course_name != "" && typeof (course_name) != "undefined") {
- s += "&course_name=" + encodeURI(encodeURI(course_name));
- }
- grid.set("newPage","1");
- initCourseGrid(s);
- }
-
- function f_select() {
- var rows = grid.getCheckedRows();
- return rows;
- }
-
-
- </script>
- <style type="text/css">
- body {
- padding: 5px;
- margin: 0;
- }
- #layout1 {
- width: 99.5%;
- margin: 0;
- padding: 0;
- }
- .l-button {
- margin-left: 1px;
- }
- #deptBtn {
- /* width: 100%; */
- background: #e5ecf9;
- text-align: center;
- height: 25px;
- padding-top: 3px
- }
- .l-layout-left {
- overflow-y: auto;
- }
- </style>
- </head>
- <BODY>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div class="l-content">
- <div id="layout1">
-
- <input type="hidden" name="typeRootId" id="typeRootId" value="${typeRootId }"/>
- <input type="hidden" name="asset_search_type" id="asset_search_type" value=""/>
- <div position="left" title="课程分类" class="user-tree-style">
-
- <ul id="courseclassTree" class="tree" style="margin-top: 3px;"></ul>
- </div>
- <div position="center" id="assetList" title="课程列表">
- <div class="default_search" style="margin: 0;">
- <ul class="list_search">
- <li class="title"> 课程名称:</li>
- <li class="text"><input type="text" name="course_name" id="course_name"></input>
- <input type="hidden" name="class_id" id="class_id" value="${class_id}"/>
-
- </li>
- </ul>
- <ul>
- <li class="search-button"><input type="button" class='l-button'
- name="search" onclick="searchByKword()" value="查询" /></li>
- </ul>
- </div>
- <div style="overflow: hidden; clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </div>
- </div>
- </BODY>
- </HTML>
|