/source/gl/mb/form/htmleditor.html
http://prosporous.googlecode.com/ · HTML · 177 lines · 174 code · 3 blank · 0 comment · 0 complexity · b68a1ac7fbba8b867a3fa1aba022a93d MD5 · raw file
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>??????-combo</title>
- <{$showjs}>
- <link rel="stylesheet" type="text/css" href="../css/main1.css" />
- <style>
- .x-check-group-alt {
- background: #D1DDEF;
- border-top:1px dotted #B5B8C8;
- border-bottom:1px dotted #B5B8C8;
- }
- </style>
- <script language="javascript">
- Ext.onReady(function(){
- Ext.QuickTips.init();
- Ext.form.Field.prototype.msgTarget = 'side';
- var myMask = new Ext.LoadMask(Ext.getBody(), {
- msg: '???...',
- removeMask: true //?????
- });
- var fp = new Ext.FormPanel({
- frame: true,
- // title:'????? [Right Group Config]',
- labelWidth: 110,
- width: Ext.getBody().getWidth(),
- renderTo:'form-ct',
- bodyStyle: 'padding:0 10px 0;',
-
- items: [{
- xtype:'fieldset',
- title: '????',
- autoHeight: true,
- layout: 'form',
- items: [{
- xtype: 'textfield',
- name: 'width',
- fieldLabel: '??{TM??????,??}',
- itemCls: 'x-check-group-alt',
- value:'<{if $fld.width==''}>400<{else}><{$fld.width}><{/if}>',
- width:'80px'
- },{
- xtype: 'textfield',
- name: 'cfg[height]',
- fieldLabel: '??{??TM??}',
- itemCls: 'x-check-group-alt',
- value:'<{if $cfg.height==''}>200<{else}><{$cfg.height}><{/if}>',
- width:'80px'
- },{
- xtype: 'checkboxgroup',
- fieldLabel: '????',
- itemCls: 'x-check-group-alt',
- items: [
- {boxLabel: '????', name: 'bt',inputValue: 1<{if $fld.bt=='1'}>,checked: true<{/if}>},
- {boxLabel: '????', name: 'gj',inputValue: 1<{if $fld.gj=='1'}>,checked: true<{/if}>},
- {boxLabel: '????', name: 'zy',inputValue: 1<{if $fld.zy=='1'}>,checked: true<{/if}>},
- {boxLabel: '????', name: 'xr',inputValue:1<{if $fld.xr=='1'}>,checked: true<{/if}>}
- ]
- }]
- },{
- xtype:'fieldset',
- title: '??????',
- autoHeight: true,
- items: [{
- itemCls: 'x-check-group-alt',
- allowBlank: false,
- layout:'form',
- items: [{
- xtype: 'textarea',
- fieldLabel: 'STR[JSON]{,??,?????,???EXTJS??JSON??.}',
- name:'cfg[STR]',
- width:200,
- value:'<{$cfg.STR}>'
- }]
- }]
- },{
- xtype:'fieldset',
- title: '????',
- autoHeight: true,
- items: [{
- itemCls: 'x-check-group-alt',
- allowBlank: false,
- layout:'column',
- items: [{
- columnWidth: '.33',
- bodyStyle: 'padding:0 10px 0;',
- labelWidth:60,
- layout:'form',
- items: [{
- html:"<font color='red'><b>???<hr></b></font>"
- },{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'},
- {
- xtype: 'textfield',
- name: 'blm',
- fieldLabel: '???',
- value:"<{$fld.blm}>",
- width:'80px'}]
- },{
- columnWidth: '.33',
- bodyStyle: 'padding:0 10px 0;',
- labelWidth:40,
- layout:'form',
- items: [{
- html:"<font color='red'><b>XY??<hr></b></font>"
- },{
- xtype: 'textfield',
- name: 'x',
- fieldLabel: 'X?',
- value:'<{$fld.x}>',
- width:'80px'},
- {
- xtype: 'textfield',
- name: 'y',
- fieldLabel: 'Y?',
- value:'<{$fld.y}>',
- width:'80px'}]
- },{
- columnWidth: '.33',
- bodyStyle: 'padding:0 10px 0;',
- labelWidth:40,
- layout:'form',
- items: [{
- html:"<font color='red'><b>Z??<hr></b></font>"
- },{
- xtype: 'textfield',
- name: 'z',
- fieldLabel: 'Z?',
- value:'<{$fld.z}>',
- width:'80px'},{
- xtype: 'hidden',
- name: 'id',
- value:'<{$fld.id}>'},{
- xtype: 'hidden',
- name: 'type',
- value:'<{$fld.type}>'}]
- }]
- }]
- }],
-
- buttons: [{
- text: '??',
- handler: function(){
- if(fp.getForm().isValid()){
- //Ext.Msg.alert('Submitted Values',fp.getForm().getValues(true).replace(/&/g,', '));
- myMask.show();
- fp.form.doAction('submit',{
- url:'fldcfg.php',
- method:'POST',
- params:{op:'save'},
- waitMsg:'????....',
- success:function (response){
- myMask.hide();
- parent.Ext.getCmp('<{$fld.id}>').close();
- Ext.MessageBox.alert('????','????');
- },
- failure:function (response){
- Ext.MessageBox.alert('????','????');
- }
- });
-
- }
- }
- },{
- text: 'Reset',
- handler: function(){
- fp.getForm().reset();
- }
- }]
- });
- });
- </script>
- </head>
- <body>
- <div id="form-ct"></div>
- </body>
- </html>