日期:2014-05-16 浏览次数:20451 次
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Insert title here</title> <link href="/education2/jqGrid4.4/themes/redmond/jquery-ui-1.8.2.custom.css" rel="Stylesheet" /> <link href="/education2/jqGrid4.4/themes/ui.jqgrid.css" rel="Stylesheet" /> <script src="/education2/jqGrid4.4/js/jquery-1.7.2.js" type="text/javascript"></script> <script type="text/javascript" src="/education2/jqGrid4.4/js/jquery-ui-1.8.2.custom.min.js"></script> <script type="text/javascript" src="/education2/jqGrid4.4/js/i18n/grid.locale-cn.js"></script> <script src="/education2/jqGrid4.4/js/jquery.jqGrid.src.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#gridTable").jqGrid({ url : '/education2/json/searchTeacher', mtype : "GET", datatype : "json", colNames : [ 'Id', '姓名', '职称', '院系', '教研室', '学历', '出生年月' ], colModel : [ { name : 'teacherId', index : 'teacherId', width : 55, hidden : true, hidedlg : true,//form中不出现 key : true }, { name : 'teacherName', index : 'teacherName', width : 90, editable : true }, { name : 'teacherTitle', index : 'teacherTitle', width : 100, editable : true, edittype : 'select', editoptions : { value : '讲师:讲师; 副教授:副教授; 教授:教授' } }, { name : 'teacherDepartment', index : 'teacherDepartment', width : 80, align : "right", edittype:'select', editoptions:{dataUrl : "/education2/json/departmentTeacher"}, editable : true }, { name : 'teacherSection', index : 'teacherSection', width : 80, align : "right", editable : true }, { name : 'teacherEducation', index : 'teacherEducation', width : 80, align : "right", editable : true }, { name : 'teacherBirthday', index : 'teacherBirthday', width : 150, sortable : false, editable : true } ], jsonReader : { root : "gridModel",