} print '</table>'; print "</div>"; // Clone confirmation if ($action == 'clone') { // Create an array for form $formquestion = array('text' => $langs->trans("ConfirmClone"), array('type' => 'checkbox', 'name' => 'clone_content', 'label' => $langs->trans("CloneContent"), 'value' => 1), array('type' => 'checkbox', 'name' => 'clone_receivers', 'label' => $langs->trans("CloneReceivers") . ' (' . $langs->trans("FeatureNotYetAvailable") . ')', 'value' => 0, 'disabled' => true)); // Paiement incomplet. On demande si motif = escompte ou autre print $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('CloneEMailing'), $langs->trans('ConfirmCloneEMailing', $object->ref), 'confirm_clone', $formquestion, 'yes', 2, 240); } dol_htmloutput_mesg($mesg); if ($conf->mailjet->enabled) { dol_include_once("/mailjet/class/mailjet.class.php"); $langs->load("mailjet@mailjet"); $mailjet = new Mailjet($db); print $mailjet->statistic($mil->id); } /* * Boutons d'action */ if (GETPOST("cancel") || $confirm == 'no' || $action == '' || in_array($action, array('valid', 'delete', 'sendall', 'clone'))) { print "\n\n<div class=\"tabsAction\">\n"; if (($object->statut == 0 || $object->statut == 1) && $user->rights->mailing->creer) { print '<a class="butAction" href="' . $_SERVER['PHP_SELF'] . '?action=edit&id=' . $object->id . '">' . $langs->trans("EditMailing") . '</a>'; } //print '<a class="butAction" href="fiche.php?action=test&id='.$object->id.'">'.$langs->trans("PreviewMailing").'</a>'; if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !$user->rights->mailing->mailing_advance->send) { print '<a class="butActionRefused" href="#" title="' . dol_escape_htmltag($langs->transnoentitiesnoconv("NotEnoughPermissions")) . '">' . $langs->trans("TestMailing") . '</a>'; } else { print '<a class="butAction" href="' . $_SERVER['PHP_SELF'] . '?action=test&id=' . $object->id . '">' . $langs->trans("TestMailing") . '</a>'; }