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