Use function to notify errors

This commit is contained in:
Laurent Destailleur 2011-06-15 09:58:13 +00:00
parent 4078a1243e
commit 9cc22004fc

View File

@ -612,7 +612,8 @@ if ($_GET["action"] == 'create')
print_fiche_titre($langs->trans("NewMailing")); print_fiche_titre($langs->trans("NewMailing"));
if ($message) print $message."<br>"; if (preg_match('/class="error"/i',$message)) dol_htmloutput_errors($message);
else dol_htmloutput_mesg($message);
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';
print '<tr><td width="25%" class="fieldrequired">'.$langs->trans("MailTitle").'</td><td><input class="flat" name="titre" size="40" value="'.$_POST['titre'].'"></td></tr>'; print '<tr><td width="25%" class="fieldrequired">'.$langs->trans("MailTitle").'</td><td><input class="flat" name="titre" size="40" value="'.$_POST['titre'].'"></td></tr>';