gusucode.com > 同城苏州黄页系统php源码程序 > lib/class.field/fld_score.class.php

    <?
if( !class_exists('field') )
	include_once($root_path.'lib/field.class.php');

##############################
#
# 印象评分 栏位类 --- ---
#
class fld_score extends field
{
	var $name				= 'score';
	var $caption			= '印象评分';
	var $inputType			= 'radio';
	var $checkType			= 'checkbox';
	
	var $groupType			= '';

	var $default			= '2';
	var $alertName			= '印象评分';
	var $allowEmpty			= 0;
	var $minValue			= '*';
	var $maxValue			= '*';
	var $inputName			= 'score';
	var $formName			= 'theform';
	var $column				= 'score';
	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_score ( &$webpage )
	{
		$this->groupMember		= array(
		);		
		$this->options			= unserialize("a:4:{i:3;s:6:\"很好\";i:2;s:3:\"好\";i:1;s:6:\"一般\";i:-1;s:3:\"差\";}");
		$this->lm_lower			= unserialize("a:1:{i:0;s:0:\"\";}");
		$this->allowFileType	= unserialize("a:1:{i:0;s:0:\"\";}");
		
		$this->set_input_size();
		

		# 调用父类的构造函数,初始化 父类中的成员
		$my_parent_name=get_parent_class(__CLASS__);
		$this->$my_parent_name();
	}
}
?>