12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <%@ page language="java" contentType="text/html;charset=utf-8"%>
- <%@include file="/pages/includes/taglibs.jsp"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
- <html>
- <head>
- <script type="text/javascript" src="<%=request.getContextPath() %>/resource/js/jquery-1.8.3.js"></script>
- <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/jquery.jqGrid.min.js"></script>
- <script type="text/ecmascript" src="<%=request.getContextPath() %>/resource/plugin/jqgrid/js/i18n/grid.locale-cn.js"></script>
-
- <script type="text/ecmascript" src="<%=request.getContextPath()%>/pages/system/jqgrid.js"></script>
-
- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/resource/plugin/jqgrid/css/ui.jqgrid.css" />
-
- <script type='text/javascript'>
- $(document).ready(function () {
- showJqGrid();
- });
- function showJqGrid() {
- var id = 'gridTable';
- var url = '<%=request.getContextPath() %>/wpAjax.action';
- var datatype = 'json';
- var colNames = ['ID', '日期','速度'];
- var colModel = [
- { name: 'id', index: 'id'},
- {
- name: 'name', index: 'name', width: 200, align: 'center'
- },
- {
- name: 'code', index: 'code', width: 250, align: 'center'
- }
- ];
- var caption = '风电场';
- var sortname = 'ID';
- var gridPagerID = 'gridPager';
- myJqGrid(id, url, datatype, colNames, colModel, caption, sortname, gridPagerID);
- }
- </script>
- </head>
- <body>
- <form id='form1' >
- <table id='gridTable'>
- </table>
- <div id='gridPager'>
- </div>
- </form>
- </body>
- </html>
|