6122be6df04445593c221c13b8a568fa0689d3b3.svn-base 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <HTML>
  4. <HEAD>
  5. <TITLE></TITLE>
  6. <META http-equiv="Content-Type" content="text/html; charset=GB2312">
  7. <link rel="stylesheet" href="../../../../../styles/css.css" type="text/css">
  8. <LINK rel="stylesheet" href="../../../../../styles/sortabletable.css" type="text/css">
  9. <script type="text/javascript">
  10. <%
  11. String refreshNode = request.getParameter("refreshNode") == null ? "" : request.getParameter("refreshNode");
  12. if(!refreshNode.equals("")){%>
  13. var loadTip = "<div>数据装载中,请稍候...</div>";
  14. var treeImagePath = "<%=request.getContextPath()%>/images/tree_images/";
  15. var url = "<%=request.getContextPath()%>/admin/menu/divTreeService.jsp?nodeID=template";
  16. var treeCloseImg = "plus.gif";
  17. var treeOpenImg = "minus.gif";
  18. parent.frames["confTreeFrame"].refreshNode('template');
  19. <%}%>
  20. </script>
  21. <link rel="stylesheet" href="../../../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
  22. <script type="text/javascript" src="../../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
  23. <script type="text/javascript" src="../../../../../scripts/ext20/ext-all.js"></script>
  24. <SCRIPT LANGUAGE="JavaScript">
  25. Ext.onReady(function(){
  26. function toggleDetails(btn, pressed){
  27. var view = grid.getView();
  28. view.showPreview = pressed;
  29. view.refresh();
  30. }
  31. var ds= new Ext.data.Store({
  32. proxy: new Ext.data.ScriptTagProxy({url:'listCols.jsp'}),
  33. reader: new Ext.data.JsonReader( {root:'root'},
  34. [{name: 'Name'},
  35. {name: 'Description'},
  36. {name: 'del'}
  37. ])});
  38. var cm=new Ext.grid.ColumnModel(
  39. [ new Ext.grid.RowNumberer(),
  40. {header: '模板名称', dataIndex: 'Name', sortable: true},
  41. {header: '模板描述', dataIndex: 'Description'},
  42. {header: 'del', dataIndex: 'del'}
  43. ]);
  44. var grid=new Ext.grid.GridPanel({el:'report',ds:ds,cm:cm,
  45. width:740,
  46. height:545,
  47. title:'常量模版',
  48. store: ds
  49. });
  50. grid.render();
  51. ds.load({params:{start:1, limit:2}});
  52. });
  53. </SCRIPT>
  54. </HEAD>
  55. <body>
  56. <div id="report">
  57. </div>
  58. </BODY>
  59. </HTML>