www.gusucode.com > 同城苏州黄页系统php源码程序 > lib/class.field/fld_file.class.php
<? if( !class_exists('field') ) include_once($root_path.'lib/field.class.php'); ############################## # # 上传 栏位类 --- --- # class fld_file extends field { var $name = 'file'; var $caption = '上传'; var $inputType = 'picture'; var $checkType = 'ignore'; var $groupType = ''; var $default = ''; var $alertName = '上传'; var $allowEmpty = 0; var $minValue = '*'; var $maxValue = '*'; var $inputName = 'file'; var $formName = 'theform'; var $column = 'file'; var $input_maxlength = ''; var $input_size_width = ''; var $input_size_height = ''; var $inputStyle = ''; var $innerInput = ""; var $lm_dbtable = ''; var $lm_indexFld = ''; var $lm_loadAll = false; var $maxFileByte = 0; var $maxPicWidth = 0; var $maxPicHeight = 0; function fld_file ( &$webpage ) { $this->groupMember = array( ); $this->options = unserialize("a:0:{}"); $this->lm_lower = unserialize("a:1:{i:0;s:0:\"\";}"); $this->allowFileType = unserialize("a:5:{i:0;s:3:\"gif\";i:1;s:4:\"jpeg\";i:2;s:3:\"jpg\";i:3;s:3:\"JPG\";i:4;s:3:\"GIF\";}"); $this->set_input_size(); # 调用父类的构造函数,初始化 父类中的成员 $my_parent_name=get_parent_class(__CLASS__); $this->$my_parent_name(); } } ?>