12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page language="java"
- import="com.sysmodel.XFormModelImpl,
- java.util.Map,
- java.util.Iterator"%>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <META http-equiv="Content-Type" content="text/html; charset=GB2312">
- <LINK rel="stylesheet" href="../../../styles/sortabletable.css" type="text/css">
- <script type="text/javascript" src="../../../scripts/ext20/adapter/ext/ext-base.js"></script>
- <link rel="stylesheet" href="../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
- <script type="text/javascript" src="../../../scripts/ext20/ext-all.js"></script>
-
- <script type="text/javascript">
- Ext.onReady(function(){
- Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
- var myData = [
- <% Map pageCss =XFormModelImpl.getInstance().getPageCssMap();
- Iterator it = pageCss.entrySet().iterator();
- while (it.hasNext()) {
- Map.Entry entry = (Map.Entry) it.next();
- Object key = entry.getKey();
- Object value = entry.getValue();
- out.print("['"+key+"','"+value+"']");
- if (it.hasNext()) out.print(",\n");
- }%>
- ];
-
- var store = new Ext.data.SimpleStore({
- fields: [
- {name: 'code'},
- {name: 'value'}
- ]
- });
- store.loadData(myData);
-
- var grid = new Ext.grid.GridPanel({
- store: store,
- columns: [
- new Ext.grid.RowNumberer(),
- {header: "CSS名称", width: 100, sortable: true,dataIndex: 'code'},
- {header: "CSS对应的CLASS", width: 200, sortable: true,dataIndex: 'value'}
- ],
- stripeRows: true,
- height:500,
- width:750,
- title:'页面CSS配置'
- });
-
- grid.render('report');
- grid.getSelectionModel().selectFirstRow();
- });
- </script>
-
- </head>
- <body>
- <div id="report"></div>
- </body>
- </html>
|