function images($field, $value, $fieldinfo) { extract($fieldinfo); $list_str = ''; if($value) { $value = string2array(new_html_entity_decode($value)); if(is_array($value)) { foreach($value as $_k=>$_v) { $list_str .= "
".L('remove_out', '', 'content')."
"; } } } else { $list_str .= "
".L('upload_pic_max', '', 'content')." {$upload_number} ".L('tips_pics', '', 'content')."
"; } $string = '
'.L('pic_list').''; $string .= $list_str; $string .= '
'; if(!defined('IMAGES_INIT')) { $str = ''; define('IMAGES_INIT', 1); } $authkey = upload_key("$upload_number,$upload_allowext,$isselectimage"); $string .= $str."
catid','{$authkey}')\"/> ".L('select_pic')."
"; return $string; }