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