/source/gl/form/items_config.php

http://prosporous.googlecode.com/ · PHP · 37 lines · 25 code · 0 blank · 12 comment · 0 complexity · bcff16663a8fafba5a45cfdeba6a6d2b MD5 · raw file

  1. <?php
  2. /**??????UTF-8???.
  3. * Created on 2010-6-16
  4. *
  5. * @author EXT <isrn@qq.com>
  6. *
  7. */
  8. $type_array =array(
  9. array('name'=>'textfield','value'=>'??','param'=>'0','width'=>'300','height'=>'200','config'=>array(array('name'=>'width','type'=>'textfield','lable'=>'??'))),
  10. array('name'=>'datefield','value'=>'???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'format','type'=>'textfield','lable'=>'????'))),
  11. array('name'=>'my97','value'=>'My97','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'format','type'=>'textfield','lable'=>'????'))),
  12. array('name'=>'textarea','value'=>'???','param'=>'1','width'=>'300','height'=>'200','default'=>'{"height":"200"}','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
  13. array('name'=>'htmleditor','value'=>'EXT???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
  14. array('name'=>'fckeditor','value'=>'FCK???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
  15. array('name'=>'kindeditor','value'=>'KIND???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
  16. array('name'=>'recommend','value'=>'????','param'=>'0','width'=>'300','height'=>'200','config'=>''),
  17. array('name'=>'swfupload','value'=>'?????','param'=>'0','width'=>'300','height'=>'200','config'=>''),
  18. array('name'=>'fileup','value'=>'?????','param'=>'0','width'=>'300','height'=>'200','config'=>''),
  19. array('name'=>'combo','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
  20. array('name'=>'combo1','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
  21. array('name'=>'combosearch','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
  22. array('name'=>'combo2','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
  23. array('name'=>'combo3','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
  24. array('name'=>'combossx','value'=>'???','param'=>'1','width'=>'400','height'=>'400'),
  25. array('name'=>'radiogroup','value'=>'??','param'=>'1','width'=>'400','height'=>'400'),
  26. array('name'=>'checkboxgroup','value'=>'??','param'=>'1','width'=>'400','height'=>'400'),
  27. array('name'=>'password','value'=>'??','param'=>'1','width'=>'400','height'=>'120','config'=>array(array('name'=>'confirm','type'=>'checkbox','lable'=>'??????'))),
  28. array('name'=>'hidden','value'=>'???','param'=>'0','width'=>'300','height'=>'200','config'=>''),
  29. array('name'=>'colorpickerfield','value'=>'????','param'=>'0','width'=>'100','height'=>'200','config'=>array(array('name'=>'width','type'=>'colorpickerfield','lable'=>'??')))
  30. );
  31. //$fun_database = array(
  32. // 'item_add'=>'var news=Ext.data.Record.create([{name:"id"},{name:"value"}]);function item_add(){Ext.MessageBox.prompt("????????","????",function(_btn,_text){if(_btn=="ok"){var combo=Ext.getCmp("combo");combo.store.insert(0,new news({value:_text}));combo.setValue(_text);combo["selectItem"]=combo.store.getAt(0);}});}',
  33. // 'item_edit'=>'function item_edit(){var combo=Ext.getCmp("combo");if(combo["selectItem"]!=null)Ext.MessageBox.prompt("??????????","????",function(_btn,_text){if(_btn=="ok"){combo["selectItem"].set("value",_text);combo.setValue(_text);}});}',
  34. // 'item_del'=>'function item_del(){var combo=Ext.getCmp("combo");if(combo["selectItem"]!=null)Ext.MessageBox.confirm("??????????","????",function(_btn){if(_btn=="yes"){try{combo.store.remove(combo["selectItem"]);}catch(_err){}if(combo.store.getCount()){combo.setValue(combo.store.getAt(0).get("value"));combo["selectItem"]=combo.store.getAt(0);}else{combo.setValue("");combo["selectItem"]=null;}}});}',
  35. // 'combo_submit'=>'function combo_submit(){var combo=Ext.getCmp("combo");alert(combo.store.getAt(1).get("value"));}'
  36. //)
  37. ?>