PageRenderTime 35ms CodeModel.GetById 1ms app.highlight 26ms RepoModel.GetById 2ms app.codeStats 0ms

/source/gl/mb/form/hidden.html

http://prosporous.googlecode.com/
HTML | 159 lines | 156 code | 3 blank | 0 comment | 0 complexity | e20b13810924759c6a091d92ef89e704 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>??????</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: 'checkboxgroup',
 38                fieldLabel: '????',
 39				itemCls: 'x-check-group-alt',
 40                items: [
 41                    {boxLabel: '????', name: 'xr',inputValue:1<{if $fld.xr=='1'}>,checked: true<{/if}>}
 42                ]
 43            }]
 44        },{
 45            xtype:'fieldset',
 46            title: '??????',
 47            autoHeight: true,
 48            items: [{
 49                itemCls: 'x-check-group-alt',
 50 				allowBlank: false,
 51                layout:'form',
 52                items: [{
 53               	xtype: 'textarea',
 54                fieldLabel: 'STR[JSON]{,??,?????,???EXTJS??JSON??.}',
 55				name:'cfg[STR]',
 56				width:200,
 57				value:'<{$cfg.STR}>'
 58	            }]
 59            }]
 60        },{
 61            xtype:'fieldset',
 62            title: '????',
 63            autoHeight: true,
 64            items: [{
 65                itemCls: 'x-check-group-alt',
 66 				allowBlank: false,
 67                layout:'column',
 68                items: [{
 69                    columnWidth: '.33',
 70			        bodyStyle: 'padding:0 10px 0;',
 71 					labelWidth:60,
 72					layout:'form',
 73                   items: [{
 74							html:"<font color='red'><b>???<hr></b></font>"
 75							},{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'},
 76{
 77                xtype: 'textfield',
 78                name: 'blm',
 79                fieldLabel: '???',
 80				value:"<{$fld.blm}>",
 81				width:'80px'}]
 82                },{
 83                    columnWidth: '.33',
 84			        bodyStyle: 'padding:0 10px 0;',
 85 					labelWidth:40,
 86					layout:'form',
 87                   items: [{
 88							html:"<font color='red'><b>XY??<hr></b></font>"
 89							},{
 90                xtype: 'textfield',
 91                name: 'x',
 92                fieldLabel: 'X?',
 93				value:'<{$fld.x}>',
 94				width:'80px'},
 95{
 96                xtype: 'textfield',
 97                name: 'y',
 98                fieldLabel: 'Y?',
 99				value:'<{$fld.y}>',
100				width:'80px'}]
101                },{
102                    columnWidth: '.33',
103			        bodyStyle: 'padding:0 10px 0;',
104 					labelWidth:40,
105					layout:'form',
106                   items: [{
107							html:"<font color='red'><b>Z??<hr></b></font>"
108							},{
109                xtype: 'textfield',
110                name: 'z',
111                fieldLabel: 'Z?',
112				value:'<{$fld.z}>',
113				width:'80px'},{
114                xtype: 'hidden',
115                name: 'id',
116				value:'<{$fld.id}>'},{
117                xtype: 'hidden',
118                name: 'type',
119				value:'<{$fld.type}>'}]
120                }]
121            }]
122        }],
123        
124        buttons: [{
125            text: '??',
126            handler: function(){
127               if(fp.getForm().isValid()){
128                    //Ext.Msg.alert('Submitted Values',fp.getForm().getValues(true).replace(/&/g,', '));
129					myMask.show();
130					fp.form.doAction('submit',{
131									url:'fldcfg.php',
132									method:'POST',
133									params:{op:'save'},
134									waitMsg:'????....',
135									success:function (response){
136									 myMask.hide();
137									parent.Ext.getCmp('<{$fld.id}>').close();
138									},
139									failure:function (response){
140									    Ext.MessageBox.alert('????','????');
141									}
142								});
143
144                }
145            }
146        },{
147            text: 'Reset',
148            handler: function(){
149                fp.getForm().reset();
150            }
151        }]
152    });
153});
154</script>
155</head>
156<body>
157<div id="form-ct"></div>
158</body>
159</html>