/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
- <?php
- /**??????UTF-8???.
- * Created on 2010-6-16
- *
- * @author EXT <isrn@qq.com>
- *
- */
- $type_array =array(
- array('name'=>'textfield','value'=>'??','param'=>'0','width'=>'300','height'=>'200','config'=>array(array('name'=>'width','type'=>'textfield','lable'=>'??'))),
- array('name'=>'datefield','value'=>'???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'format','type'=>'textfield','lable'=>'????'))),
- array('name'=>'my97','value'=>'My97','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'format','type'=>'textfield','lable'=>'????'))),
- array('name'=>'textarea','value'=>'???','param'=>'1','width'=>'300','height'=>'200','default'=>'{"height":"200"}','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
- array('name'=>'htmleditor','value'=>'EXT???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
- array('name'=>'fckeditor','value'=>'FCK???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
- array('name'=>'kindeditor','value'=>'KIND???','param'=>'1','width'=>'300','height'=>'200','config'=>array(array('name'=>'height','type'=>'textfield','lable'=>'??'))),
- array('name'=>'recommend','value'=>'????','param'=>'0','width'=>'300','height'=>'200','config'=>''),
- array('name'=>'swfupload','value'=>'?????','param'=>'0','width'=>'300','height'=>'200','config'=>''),
- array('name'=>'fileup','value'=>'?????','param'=>'0','width'=>'300','height'=>'200','config'=>''),
- array('name'=>'combo','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'combo1','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'combosearch','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'combo2','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'combo3','value'=>'????','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'combossx','value'=>'???','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'radiogroup','value'=>'??','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'checkboxgroup','value'=>'??','param'=>'1','width'=>'400','height'=>'400'),
- array('name'=>'password','value'=>'??','param'=>'1','width'=>'400','height'=>'120','config'=>array(array('name'=>'confirm','type'=>'checkbox','lable'=>'??????'))),
- array('name'=>'hidden','value'=>'???','param'=>'0','width'=>'300','height'=>'200','config'=>''),
- array('name'=>'colorpickerfield','value'=>'????','param'=>'0','width'=>'100','height'=>'200','config'=>array(array('name'=>'width','type'=>'colorpickerfield','lable'=>'??')))
- );
- //$fun_database = array(
- // '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);}});}',
- // '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);}});}',
- // '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;}}});}',
- // 'combo_submit'=>'function combo_submit(){var combo=Ext.getCmp("combo");alert(combo.store.getAt(1).get("value"));}'
- //)
- ?>