PageRenderTime 26ms CodeModel.GetById 15ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/source/gl/mb/form/fckeditor.html

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