function downfiles($field, $value, $fieldinfo) { extract(string2array($fieldinfo['setting'])); $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')."
"; } } } $string = '
'.L('file_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}')\"/> "; return $string; }