PageRenderTime 44ms CodeModel.GetById 18ms app.highlight 20ms RepoModel.GetById 1ms app.codeStats 0ms

/source/gl/mb/form/combo.html

http://prosporous.googlecode.com/
HTML | 181 lines | 178 code | 3 blank | 0 comment | 0 complexity | 5f27a871b02b17bd0c00ee533f5edaa9 MD5 | raw file
  1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<html>
  3<head>
  4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5<title>??????-combo</title>
  6<{$showjs}>
  7<link rel="stylesheet" type="text/css" href="../css/main1.css" />
  8    <style>
  9        .x-check-group-alt {
 10            background: #D1DDEF;
 11            border-top:1px dotted #B5B8C8;
 12            border-bottom:1px dotted #B5B8C8;
 13        }
 14    </style>
 15<script language="javascript">
 16Ext.onReady(function(){
 17    Ext.QuickTips.init();
 18    Ext.form.Field.prototype.msgTarget = 'side';
 19	var myMask = new Ext.LoadMask(Ext.getBody(), {
 20							msg: '???...',
 21							removeMask: true //?????
 22						});
 23    var fp = new Ext.FormPanel({
 24        frame: true,
 25//        title:'????? [Right Group Config]',
 26        labelWidth: 110,
 27        width: Ext.getBody().getWidth(),
 28        renderTo:'form-ct',
 29        bodyStyle: 'padding:0 10px 0;',
 30        
 31        items: [{
 32            xtype:'fieldset',
 33            title: '????',
 34            autoHeight: true,
 35            layout: 'form',
 36            items: [{
 37                xtype: 'textfield',
 38                name: 'width',
 39                fieldLabel: '??',
 40				itemCls: 'x-check-group-alt',
 41				value:'<{if $fld.width==''}>50<{else}><{$fld.width}><{/if}>',
 42				width:'80px'
 43            },{
 44                xtype: 'textfield',
 45                name: 'ts',
 46                fieldLabel: '???',
 47				value:'<{if $fld.ts==''}><{$fld.name}>????!<{else}><{$fld.ts}><{/if}>',
 48                anchor: '95%'
 49            },{
 50               xtype: 'checkboxgroup',
 51                fieldLabel: '????',
 52				itemCls: 'x-check-group-alt',
 53                items: [
 54                    {boxLabel: '????', name: 'yxwk',inputValue:1<{if $fld.yxwk=='1'}>,checked: true<{/if}>},
 55                    {boxLabel: '????', name: 'gj',inputValue: 1<{if $fld.gj=='1'}>,checked: true<{/if}>},
 56                    {boxLabel: '????', name: 'zy',inputValue: 1<{if $fld.zy=='1'}>,checked: true<{/if}>},
 57                    {boxLabel: '????', name: 'xr',inputValue:1<{if $fld.xr=='1'}>,checked: true<{/if}>}
 58                ]
 59            }]
 60        },{
 61            xtype:'fieldset',
 62            title: '??????',
 63            autoHeight: true,
 64            items: [{
 65                itemCls: 'x-check-group-alt',
 66 				allowBlank: false,
 67                layout:'form',
 68                items: [{
 69              	xtype: 'button',
 70                text: '????',
 71				handler:function(){
 72				parent.xajax_loadUrl('',"./form/fldcfg.php?op=sj&id=<{$fld.id}>",600,330,false,'t<{$fld.id}>');
 73					}
 74            },{
 75               	xtype: 'textarea',
 76                fieldLabel: 'STR[JSON]{,??,?????,???EXTJS??JSON??.}',
 77				name:'cfg[STR]',
 78				width:200,
 79				value:'<{$cfg.STR}>'
 80	            }]
 81            }]
 82        },{
 83            xtype:'fieldset',
 84            title: '????',
 85            autoHeight: true,
 86            items: [{
 87                itemCls: 'x-check-group-alt',
 88 				allowBlank: false,
 89                layout:'column',
 90                items: [{
 91                    columnWidth: '.33',
 92			        bodyStyle: 'padding:0 10px 0;',
 93 					labelWidth:60,
 94					layout:'form',
 95                   items: [{
 96							html:"<font color='red'><b>???<hr></b></font>"
 97							},{xtype: 'combo',value:'<{if $fld.qzfs==''}>1<{else}><{$fld.qzfs}><{/if}>',fieldLabel:'????',blankText:'...????',style:'text-align:left',mode: 'local',forceSelection: true,triggerAction: 'all',width: 90,editable: false,emptyText:'???...',valueField :'yinv',displayField:'xianv',store:new Ext.data.SimpleStore({fields:['yinv','xianv'],data:[['0','???'],['1','????'],['function','function'],['$_GET','$_GET'],['$_POST','$_POST'],['$_SESSION','$_SESSION'],['$_COOKIE','$_COOKIE'],['$_SERVER','$_SERVER'],['$_ENV','$_ENV'],['$_FILES','$_FILES']]}),hiddenName: 'qzfs'},
 98{
 99                xtype: 'textfield',
100                name: 'blm',
101                fieldLabel: '???',
102				value:"<{$fld.blm}>",
103				width:'80px'}]
104                },{
105                    columnWidth: '.33',
106			        bodyStyle: 'padding:0 10px 0;',
107 					labelWidth:40,
108					layout:'form',
109                   items: [{
110							html:"<font color='red'><b>XY??<hr></b></font>"
111							},{
112                xtype: 'textfield',
113                name: 'x',
114                fieldLabel: 'X?',
115				value:'<{$fld.x}>',
116				width:'80px'},
117{
118                xtype: 'textfield',
119                name: 'y',
120                fieldLabel: 'Y?',
121				value:'<{$fld.y}>',
122				width:'80px'}]
123                },{
124                    columnWidth: '.33',
125			        bodyStyle: 'padding:0 10px 0;',
126 					labelWidth:40,
127					layout:'form',
128                   items: [{
129							html:"<font color='red'><b>Z??<hr></b></font>"
130							},{
131                xtype: 'textfield',
132                name: 'z',
133                fieldLabel: 'Z?',
134				value:'<{$fld.z}>',
135				width:'80px'},{
136                xtype: 'hidden',
137                name: 'id',
138				value:'<{$fld.id}>'},{
139                xtype: 'hidden',
140                name: 'type',
141				value:'<{$fld.type}>'}]
142                }]
143            }]
144        }],
145        
146        buttons: [{
147            text: '??',
148            handler: function(){
149               if(fp.getForm().isValid()){
150                    //Ext.Msg.alert('Submitted Values',fp.getForm().getValues(true).replace(/&/g,', '));
151					myMask.show();
152					fp.form.doAction('submit',{
153									url:'fldcfg.php',
154									method:'POST',
155									params:{op:'save'},
156									waitMsg:'????....',
157									success:function (response){
158									 myMask.hide();
159									parent.Ext.getCmp('<{$fld.id}>').close();
160									},
161									failure:function (response){
162									    Ext.MessageBox.alert('????','????');
163									}
164								});
165
166                }
167            }
168        },{
169            text: 'Reset',
170            handler: function(){
171                fp.getForm().reset();
172            }
173        }]
174    });
175});
176</script>
177</head>
178<body>
179<div id="form-ct"></div>
180</body>
181</html>