WHERE email IN ($list)");
foreach ($res->fetchAllRow() as $row) {
list ($email, $uid) = $row;
- $uids[$other_mails[$email]] = $uid;
+ $uids[$email] = $uid;
}
}
}
switch (@Post::v('valid')) {
+ case 'Vérifier':
+ // Same as 'preview', but performs a test of all provided emails
+ if ($subset) {
+ require_once 'emails.inc.php';
+ $ids = ids_from_mails($subset_to);
+ $has_error = false;
+ foreach ($subset_to as $e) {
+ if (!array_key_exists($e, $ids)) {
+ if (!$has_error) {
+ $page->trigError("Emails inconnus :");
+ $has_error = true;
+ }
+ $page->trigError($e);
+ }
+ }
+ }
+ // XXX : no break here, since Vérifier is a subcase of Aperçu.
case 'Aperçu':
$this->load('axletter.inc.php');
$al = new AXLetter(array($id, $short_name, $subject, $title, $body, $signature,
<input type="hidden" name="echeance" value="{$echeance}" />
{/if}
<input type="submit" name="valid" value="Aperçu" />
+ {if $subset}
+ <input type="submit" name="valid" value="Vérifier" />
+ {/if}
{if !$new}
<input type="submit" name="valid" value="Confirmer" />
{/if}