static function get_sel_img() { global $msg, $mailtpl_form_sel_img, $pmb_img_folder, $pmb_img_url; if (!$pmb_img_folder) { return ''; } $tpl = $mailtpl_form_sel_img; $img = new files_gestion($pmb_img_folder, $pmb_img_url); if (!$img->get_count_file()) { return ''; } $select = $img->get_sel('select_file', "!!path!!!!name!!", "!!name!!"); $tpl = str_replace('!!select_file!!', $select, $tpl); return $tpl; }