Ejemplo n.º 1
0
             $name .= ' (' . $object->societe . ')';
         }
     } else {
         $name = $object->societe;
     }
     // Create a form array
     $formquestion = array(array('label' => $langs->trans("NameToCreate"), 'type' => 'text', 'name' => 'companyname', 'value' => $name));
     print $form->formconfirm($_SERVER["PHP_SELF"] . "?rowid=" . $object->id, $langs->trans("CreateDolibarrThirdParty"), $langs->trans("ConfirmCreateThirdParty"), "confirm_create_thirdparty", $formquestion, 1);
 }
 // Confirm validate member
 if ($action == 'valid') {
     $langs->load("mails");
     $adht = new AdherentType($db);
     $adht->fetch($object->typeid);
     $subjecttosend = $object->makeSubstitution($conf->global->ADHERENT_MAIL_VALID_SUBJECT);
     $texttosend = $object->makeSubstitution($adht->getMailOnValid());
     $tmp = $langs->trans("SendAnEMailToMember");
     $tmp .= '<br>(' . $langs->trans("MailFrom") . ': <b>' . $conf->global->ADHERENT_MAIL_FROM . '</b>, ';
     $tmp .= $langs->trans("MailRecipient") . ': <b>' . $object->email . '</b>)';
     $helpcontent = '';
     $helpcontent .= '<b>' . $langs->trans("MailFrom") . '</b>: ' . $conf->global->ADHERENT_MAIL_FROM . '<br>' . "\n";
     $helpcontent .= '<b>' . $langs->trans("MailRecipient") . '</b>: ' . $object->email . '<br>' . "\n";
     $helpcontent .= '<b>' . $langs->trans("Subject") . '</b>:<br>' . "\n";
     $helpcontent .= $subjecttosend . "\n";
     $helpcontent .= "<br>";
     $helpcontent .= '<b>' . $langs->trans("Content") . '</b>:<br>';
     $helpcontent .= dol_htmlentitiesbr($texttosend) . "\n";
     $label = $form->textwithpicto($tmp, $helpcontent, 1, 'help');
     // Create form popup
     $formquestion = array();
     if ($object->email) {