. */ /** * \file htdocs/core/class/html.formmailing.class.php * \ingroup core * \brief File of predefined functions for HTML forms for mailing module */ require_once DOL_DOCUMENT_ROOT .'/core/class/html.form.class.php'; /** * Class to offer components to list and upload files */ class FormMailing extends Form { public $db; public $error; public $errors=array(); /** * Constructor * * @param DoliDB $db Database handler */ function __construct($db) { $this->db = $db; return 1; } /** * Output a select with destinaries status * * @param string $selectedid the selected id * @param string $htmlname name of controm * @param integer $show_empty show empty option * @return string HTML select */ public function selectDestinariesStatus($selectedid='',$htmlname='dest_status', $show_empty=0) { global $langs; $langs->load("mails"); require_once DOL_DOCUMENT_ROOT.'/comm/mailing/class/mailing.class.php'; $mailing = new Mailing($this->db); $array = $mailing->statut_dest; //Cannot use form->selectarray because empty value is defaulted to -1 in this method and we use here status -1... $out = ''; return $out; } }