Ejemplo n.º 1
0
         print '<tr class="bankswitchclass2"><td>' . $langs->trans('Bank');
         print ' <em>(' . $langs->trans("ChequeBank") . ')</em>';
         print '</td>';
         print '<td><input id="chqbank" name="chqbank" size="32" type="text" value="' . (!GETPOST('chqbank') ? '' : GETPOST('chqbank')) . '"></td></tr>';
     }
 }
 print '<tr><td colspan="2">&nbsp;</td>';
 print '<tr><td width="30%">' . $langs->trans("SendAcknowledgementByMail") . '</td>';
 print '<td>';
 if (!$object->email) {
     print $langs->trans("NoEMail");
 } else {
     $adht = new AdherentType($db);
     $adht->fetch($object->typeid);
     $subjecttosend = $object->makeSubstitution($conf->global->ADHERENT_MAIL_COTIS_SUBJECT);
     $texttosend = $object->makeSubstitution($adht->getMailOnSubscription());
     $tmp = '<input name="sendmail" type="checkbox"' . (GETPOST('sendmail') ? GETPOST('sendmail') : (!empty($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL) ? ' checked' : '')) . '>';
     $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("MailTopic") . '</b>:<br>' . "\n";
     $helpcontent .= $subjecttosend . "\n";
     $helpcontent .= "<br>";
     $helpcontent .= '<b>' . $langs->trans("MailText") . '</b>:<br>';
     $helpcontent .= dol_htmlentitiesbr($texttosend) . "\n";
     print $form->textwithpicto($tmp, $helpcontent, 1, 'help');
 }
 print '</td></tr>';
 print '</tbody>';
 print '</table>';
 dol_fiche_end();