267$parameters = array();
269$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
271 setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
275if (empty($reshook) && $action ==
'add' && (!empty($conference->id) && $conference->status == 2 || !empty($project->id) && $project->status ==
Project::STATUS_VALIDATED)) {
284 $errmsg .= $langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"Email")).
"<br>\n";
287 if (!
GETPOST(
"societe") && !empty((
float) $project->price_registration)) {
289 $errmsg .= $langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"Company")).
"<br>\n";
293 $langs->load(
"errors");
294 $errmsg .= $langs->trans(
"ErrorBadEMail",
GETPOST(
"email")).
"<br>\n";
298 $errmsg .= $langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"Country")).
"<br>\n";
307 if ($type ==
'global') {
308 $filter =
"(t.fk_project:=:".((int)
$id).
") AND (t.email:=:'".$db->escape($email).
"')";
310 if ($type ==
'conf') {
311 $filter =
"(t.fk_actioncomm:=:".((int)
$id).
") AND (t.email:=:'".$db->escape($email).
"')";
315 $resultfetchconfattendee = $confattendee->fetchAll(
'',
'', 0, 0, $filter);
317 $attendeealreadyexists =
false;
318 if ($resultfetchconfattendee < 0) {
320 $errmsg .= $confattendee->error;
321 $errors = array_merge($errors, $confattendee->errors);
322 } elseif (is_array($resultfetchconfattendee) && count($resultfetchconfattendee) > 0) {
324 $confattendee = array_shift($resultfetchconfattendee);
325 $attendeealreadyexists =
true;
328 $confattendee->date_creation =
dol_now();
333 if (!$error && (!$attendeealreadyexists || empty((
float) $confattendee->amount))) {
334 $confattendee->date_subscription =
dol_now();
335 $confattendee->email = $email;
336 $confattendee->fk_project = $project->id;
337 $confattendee->fk_actioncomm =
$id;
338 $confattendee->note_public = $note_public;
339 $confattendee->firstname = $firstname;
340 $confattendee->lastname = $lastname;
343 $extrafields->fetch_name_optionals_label($confattendee->table_element);
344 $ret = $extrafields->setOptionalsFromPost(
null, $confattendee);
347 $errmsg .= $confattendee->error;
350 if (!$error && $attendeealreadyexists) {
351 $resultconfattendee = $confattendee->update($user);
352 if ($resultconfattendee < 0) {
354 $errmsg .= $confattendee->error;
355 $errors = array_merge($errors, $confattendee->errors);
360 if (!$error && !$attendeealreadyexists) {
363 $nb_post_max =
getDolGlobalInt(
"MAIN_SECURITY_MAX_POST_ON_PUBLIC_PAGES_BY_IP_ADDRESS", 200);
368 if ($nb_post_max > 0) {
369 $sql =
"SELECT COUNT(ref) as nb_attendee";
370 $sql .=
" FROM ".MAIN_DB_PREFIX.
"eventorganization_conferenceorboothattendee";
371 $sql .=
" WHERE ip = '".$db->escape($confattendee->ip).
"'";
372 $sql .=
" AND date_creation > '".$db->idate($minmonthpost).
"'";
373 $resql = $db->query($sql);
375 $num = $db->num_rows($resql);
379 $obj = $db->fetch_object($resql);
380 $nb_post_ip = $obj->nb_attendee;
385 $resultconfattendee = -1;
387 if ($nb_post_max > 0 && $nb_post_ip >= $nb_post_max) {
389 $errmsg .= $langs->trans(
"AlreadyTooMuchPostOnThisIPAdress");
390 array_push($confattendee->errors, $langs->trans(
"AlreadyTooMuchPostOnThisIPAdress"));
391 setEventMessage($errmsg,
'errors');
393 $resultconfattendee = $confattendee->create($user);
395 if ($resultconfattendee < 0) {
397 $errmsg .= $confattendee->error;
398 $errors = array_merge($errors, $confattendee->errors);
406 if (!$error && !empty($confattendee->date_subscription) && !empty((
float) $confattendee->amount)) {
408 $redirection =
$dolibarr_main_url_root.
'/public/eventorganization/subscriptionok.php?id='.((int)
$id).
'&securekey='.urlencode($securekeyurl);
410 $mesg = $langs->trans(
"RegistrationAndPaymentWereAlreadyRecorded", $email);
411 setEventMessages($mesg,
null,
'mesgs');
415 header(
"Location: ".$redirection);
419 $resultfetchthirdparty = 0;
421 $genericcompanyname = $langs->trans(
'EventParticipant').
' '.($emailcompany ? $emailcompany : $email);
424 $thirdparty =
new Societe($db);
427 if (!empty($confattendee->fk_soc) && $confattendee->fk_soc > 0) {
428 $resultfetchthirdparty = $thirdparty->fetch($confattendee->fk_soc);
432 if ($resultfetchthirdparty <= 0 && !empty($societe) && !empty($emailcompany)) {
433 $resultfetchthirdparty = $thirdparty->fetch(0, $societe,
'',
'',
'',
'',
'',
'',
'',
'', $emailcompany);
434 if ($resultfetchthirdparty > 0) {
436 $confattendee->fk_soc = $thirdparty->id;
437 $confattendee->update($user);
438 } elseif ($resultfetchthirdparty == -2) {
439 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithNameContactUs",
$mysoc->email);
443 if ($resultfetchthirdparty <= 0 && !empty($societe) && !empty($email) && $email != $emailcompany) {
444 $resultfetchthirdparty = $thirdparty->fetch(0, $societe,
'',
'',
'',
'',
'',
'',
'',
'', $email);
445 if ($resultfetchthirdparty > 0) {
447 $confattendee->fk_soc = $thirdparty->id;
448 $confattendee->update($user);
449 } elseif ($resultfetchthirdparty == -2) {
450 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithNameContactUs",
$mysoc->email);
454 if ($resultfetchthirdparty <= 0 && !empty($emailcompany)) {
456 $resultfetchthirdparty = $thirdparty->fetch(0,
'',
'',
'',
'',
'',
'',
'',
'',
'', $emailcompany);
457 if ($resultfetchthirdparty > 0) {
459 $confattendee->fk_soc = $thirdparty->id;
460 $confattendee->update($user);
461 } elseif ($resultfetchthirdparty == -2) {
462 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithEmailContactUs",
$mysoc->email);
465 if ($resultfetchthirdparty <= 0 && !empty($email) && $email != $emailcompany) {
467 $resultfetchthirdparty = $thirdparty->fetch(0,
'',
'',
'',
'',
'',
'',
'',
'',
'', $email);
468 if ($resultfetchthirdparty > 0) {
470 $confattendee->fk_soc = $thirdparty->id;
471 $confattendee->update($user);
472 } elseif ($resultfetchthirdparty == -2) {
473 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithEmailContactUs",
$mysoc->email);
476 if ($resultfetchthirdparty <= 0 && !empty($genericcompanyname)) {
478 $resultfetchthirdparty = $thirdparty->fetch(0, $genericcompanyname,
'',
'',
'',
'',
'',
'',
'',
'',
'');
479 if ($resultfetchthirdparty > 0) {
481 $confattendee->fk_soc = $thirdparty->id;
482 $confattendee->update($user);
483 } elseif ($resultfetchthirdparty == -2) {
484 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithNameContactUs",
$mysoc->email);
490 if ($resultfetchthirdparty <= 0 && !empty($email)) {
492 $resultfetchcontact = $contact->fetch(0,
null,
'', $email);
493 if ($resultfetchcontact > 0 && $contact->fk_soc > 0) {
494 $thirdparty->fetch($contact->fk_soc);
495 $confattendee->fk_soc = $thirdparty->id;
496 $confattendee->update($user);
497 $resultfetchthirdparty = 1;
501 if ($resultfetchthirdparty <= 0 && !empty($societe)) {
503 $resultfetchthirdparty = $thirdparty->fetch(0, $societe,
'',
'',
'',
'',
'',
'',
'',
'',
'');
504 if ($resultfetchthirdparty > 0) {
506 $confattendee->fk_soc = $thirdparty->id;
507 $confattendee->update($user);
508 } elseif ($resultfetchthirdparty == -2) {
509 $thirdparty->error =
"ErrorSeveralCompaniesWithNameContactUs";
515 if (empty((
float) $project->price_registration)) {
516 $resultfetchthirdparty = 1;
519 if ($resultfetchthirdparty < 0) {
522 $errmsg .= $thirdparty->error;
523 $errors = array_merge($errors, $thirdparty->errors);
524 } elseif ($resultfetchthirdparty == 0) {
526 if (!empty($societe)) {
527 $thirdparty->name = $societe;
529 $thirdparty->name = $genericcompanyname;
531 $thirdparty->address =
GETPOST(
"address");
532 $thirdparty->zip =
GETPOST(
"zipcode");
533 $thirdparty->town =
GETPOST(
"town");
534 $thirdparty->client = $thirdparty::PROSPECT;
535 $thirdparty->fournisseur = 0;
536 $thirdparty->country_id =
GETPOSTINT(
"country_id");
537 $thirdparty->state_id =
GETPOSTINT(
"state_id");
538 $thirdparty->email = ($emailcompany ? $emailcompany : $email);
542 if (substr(
$module, 0, 15) ==
'mod_codeclient_' && substr(
$module, -3) ==
'php') {
545 $dirsociete = array_merge(array(
'/core/modules/societe/'),
$conf->modules_parts[
'societe']);
546 foreach ($dirsociete as $dirroot) {
552 $modCodeClient =
new $module($db);
553 '@phan-var-force ModeleThirdPartyCode $modCodeClient';
556 if (empty($tmpcode) && !empty($modCodeClient->code_auto)) {
557 $tmpcode = $modCodeClient->getNextValue($thirdparty, 0);
559 $thirdparty->code_client = $tmpcode;
561 $readythirdparty = $thirdparty->create($user);
562 if ($readythirdparty < 0) {
564 $errmsg .= $thirdparty->error;
565 $errors = array_merge($errors, $thirdparty->errors);
567 $thirdparty->country_code =
getCountry($thirdparty->country_id,
'2', $db, $langs);
568 $thirdparty->country =
getCountry($thirdparty->country_code,
'', $db, $langs);
571 $confattendee->fk_soc = $thirdparty->id;
572 $confattendee->update($user);
577 if (!$error && is_object($thirdparty)) {
579 if (!empty((
float) $project->price_registration)) {
580 $outputlangs = $langs;
584 $outputlangs->loadLangs(array(
"eventorganization"));
587 $productforinvoicerow =
new Product($db);
588 $productforinvoicerow->id = 0;
592 $resultprod = $productforinvoicerow->fetch(
getDolGlobalInt(
'SERVICE_CONFERENCE_ATTENDEE_SUBSCRIPTION'));
597 if ($resultprod < 0) {
599 $errmsg .= $productforinvoicerow->error;
600 $errors = array_merge($errors, $productforinvoicerow->errors);
603 if (empty($confattendee->fk_invoice)) {
605 $facture->socid = $thirdparty->id;
608 $facture->cond_reglement_id = $confattendee->cond_reglement_id;
609 $facture->fk_project = $project->id;
612 if (empty($facture->cond_reglement_id)) {
613 $paymenttermstatic =
new PaymentTerm($confattendee->db);
614 $facture->cond_reglement_id = $paymenttermstatic->getDefaultId();
615 if (empty($facture->cond_reglement_id)) {
617 $confattendee->error =
'ErrorNoPaymentTermRECEPFound';
618 $confattendee->errors[] = $confattendee->error;
621 $resultfacture = $facture->create($user);
622 if ($resultfacture <= 0) {
623 $confattendee->error = $facture->error;
624 $confattendee->errors = $facture->errors;
627 $confattendee->fk_invoice = $resultfacture;
628 $confattendee->update($user);
631 $facture->fetch($confattendee->fk_invoice);
644 $labelforproduct = $outputlangs->trans(
"EventFee", $project->title);
645 if ($project->location) {
646 $labelforproduct .=
' - '.$project->location;
649 $date_end = $project->date_end_event;
652 if (empty($facture->lines)) {
653 $pu_ttc = (float) $project->price_registration;
655 $price_base_type =
'TTC';
657 $result = $facture->addline($labelforproduct, $pu_ht, 1, $vattouse, 0, 0, $productforinvoicerow->id, 0,
$date_start, $date_end, 0, 0, 0, $price_base_type, $pu_ttc, 1);
659 $confattendee->error = $facture->error;
660 $confattendee->errors = $facture->errors;
666 if (!$error && is_object($facture)) {
675 $sourcetouse =
'organizedeventregistration';
676 $reftouse = $facture->id;
677 $redirection =
$dolibarr_main_url_root.
'/public/payment/newpayment.php?source='.urlencode((
string) ($sourcetouse)).
'&ref='.urlencode((
string) ($reftouse));
679 $redirection .=
'&securekey='.dol_hash(
getDolGlobalString(
'PAYMENT_SECURITY_TOKEN') . $sourcetouse . $reftouse,
'2');
682 header(
"Location: ".$redirection);
689 $resultsetstatus = $confattendee->setStatut(1);
690 if ($resultsetstatus < 0) {
692 $errmsg .= $confattendee->error;
693 $errors = array_merge($errors, $confattendee->errors);
700 require_once DOL_DOCUMENT_ROOT.
'/core/class/CMailFile.class.php';
701 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formmail.class.php';
705 $outputlangs->setDefaultLang(empty($thirdparty->default_lang) ?
$mysoc->default_lang : $thirdparty->default_lang);
707 $outputlangs->loadLangs(array(
"main",
"members",
"eventorganization"));
709 $arraydefaultmessage =
null;
711 $labeltouse =
getDolGlobalInt(
'EVENTORGANIZATION_TEMPLATE_EMAIL_AFT_SUBS_EVENT');
712 if (!empty($labeltouse)) {
713 $arraydefaultmessage = $formmail->getEMailTemplate($db,
'eventorganization_send', $user, $outputlangs, $labeltouse, 1,
'');
716 if (!empty($labeltouse) && is_object($arraydefaultmessage) && $arraydefaultmessage->id > 0) {
717 $subject = $arraydefaultmessage->topic;
718 $msg = $arraydefaultmessage->content;
724 $substitutionarray = getCommonSubstitutionArray($outputlangs, 0,
null, $thirdparty);
730 $sendto = !empty($thirdparty->email) ? $thirdparty->email :
731 $confattendee->email;
734 $urlback = $_SERVER[
"REQUEST_URI"];
738 if (!empty($sendto)) {
739 $mailfile =
new CMailFile($subjecttosend, $sendto, $from, $texttosend, array(), array(), array(),
'',
'', 0, ($ishtml ? 1 : 0));
740 $result = $mailfile->sendfile();
742 dol_syslog(
"EMail sent to ".$sendto, LOG_DEBUG, 0,
'_payment');
744 dol_syslog(
"Failed to send EMail to ".$sendto, LOG_ERR, 0,
'_payment');
749 $redirection =
$dolibarr_main_url_root.
'/public/eventorganization/subscriptionok.php?id='.((int)
$id).
'&securekey='.urlencode($securekeyurl);
751 header(
"Location: ".$redirection);
769$form =
new Form($db);
775print
'<div align="center">';
776print
'<div id="divsubscribe">';
779print
'<div class="center subscriptionformbanner subbanner justify margintoponly paddingtop marginbottomonly padingbottom">';
780print
load_fiche_titre($langs->trans(
"NewRegistration"),
'',
'', 0,
'',
'center');
782print
'<span class="opacitymedium">'.$langs->trans(
"EvntOrgWelcomeMessage").
'</span>';
785print
'<span class="eventlabel large">'.dolPrintHTML($project->title .
' '. $conference->label).
'</span><br>';
789print
'<div class="justify subscriptionformhelptext">';
791$eventdatestart = ($conference->id > 0 ? $conference->datep : $project->date_start_event);
792$eventdateend = ($conference->id > 0 ? $conference->datep2 : $project->date_end_event);
793$eventlocation = ($conference->id > 0 && !empty($conference->location) ? $conference->location : $project->location);
795if ($eventdatestart || $eventdateend) {
796 print
'<br><span class="fa fa-calendar pictofixedwidth opacitymedium"></span>';
798if ($eventdatestart) {
800 $tmparray =
dol_getdate($eventdatestart,
false,
'');
801 if ($tmparray[
'hours'] || $tmparray[
'minutes'] || $tmparray[
'seconds']) {
806if ($eventdatestart && $eventdateend) {
812 if ($tmparray[
'hours'] || $tmparray[
'minutes'] || $tmparray[
'seconds']) {
817if ($eventdatestart || $eventdateend) {
821 print
'<span class="fa fa-map-marked-alt pictofixedwidth opacitymedium"></span>'.dolPrintHTML($eventlocation).
'<br>';
823if ($project->note_public) {
824 print
'<br><span class="opacitymedium">'.dol_htmlentitiesbr($project->note_public).
'</span><br>';
831if ($conference->id > 0) {
832 $maxattendees = $conference->max_participants;
834 $maxattendees = $project->max_attendees;
839 print
'<div class="opacitymedium">'.$langs->trans(
"Attendees").
': '.((int) $currentnbofattendees).
' / '.((int) $maxattendees).
'</div>';
842if ($maxattendees && $currentnbofattendees >= $maxattendees) {
844 print
'<div class="warning">'.$langs->trans(
"MaxNbOfAttendeesReached").
'</div>';
852if ((!empty($conference->id) && $conference->status == ConferenceOrBooth::STATUS_CONFIRMED) || (!empty($project->id) && $project->status ==
Project::STATUS_VALIDATED)) {
853 if (empty($maxattendees) ||
854 ($currentnbofattendees < $maxattendees &&
855 (!
getDolGlobalString(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED') || (
getDolGlobalString(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED') ==
GETPOST(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED')))
858 print
'<form action="' . $_SERVER[
"PHP_SELF"] .
'" method="POST" name="newmember">' .
"\n";
859 print
'<input type="hidden" name="token" value="' .
newToken() .
'" / >';
860 print
'<input type="hidden" name="entity" value="' . $entity .
'" />';
861 print
'<input type="hidden" name="action" value="add" />';
862 print
'<input type="hidden" name="type" value="' . $type .
'" />';
863 print
'<input type="hidden" name="id" value="' . $conference->id .
'" />';
864 print
'<input type="hidden" name="fk_project" value="' . $project->id .
'" />';
865 print
'<input type="hidden" name="securekey" value="' . $securekeyreceived .
'" />';
866 if (
GETPOST(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED')) {
867 print
'<input type="hidden" name="EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED" value="' .
GETPOST(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED') .
'" />';
877 print
'<script type="text/javascript">
878 jQuery(document).ready(function () {
879 jQuery(document).ready(function () {
880 jQuery("#selectcountry_id").change(function() {
881 document.newmember.action.value="create";
882 document.newmember.submit();
888 print
'<table class="border" summary="form to subscribe" id="tablesubscribe">' .
"\n";
891 print
'<tr><td><span class="fieldrequired">';
892 print $langs->trans(
"Firstname") .
'</span></td><td>';
893 print img_picto(
'',
'user',
'class="pictofixedwidth"');
894 print
'<input type="text" name="firstname" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag($firstname) .
'" required autofocus></td></tr>' .
"\n";
897 print
'<tr><td><span class="fieldrequired">';
898 print $langs->trans(
"Lastname") .
'</span></td><td>';
899 print img_picto(
'',
'user',
'class="pictofixedwidth"');
900 print
'<input type="text" name="lastname" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag($lastname) .
'" required></td></tr>' .
"\n";
903 print
'<tr><td><span class="fieldrequired">' . $langs->trans(
"EmailAttendee") .
'</span></td><td>';
904 print img_picto(
'',
'email',
'class="pictofixedwidth"');
905 print
'<input type="text" name="email" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag(
GETPOST(
'email')) .
'" required></td></tr>' .
"\n";
908 print
'<tr id="trcompany" class="trcompany"><td>';
909 if (!empty((
float) $project->price_registration)) {
910 print
'<span class="fieldrequired">';
912 print $langs->trans(
"Company");
913 if (!empty((
float) $project->price_registration)) {
917 print img_picto(
'',
'company',
'class="pictofixedwidth"');
918 print
'<input type="text" name="societe" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag(
GETPOST(
'societe')) .
'"'.(empty((
float) $project->price_registration) ?
'' :
' required').
'></td></tr>' .
"\n";
921 if (!empty((
float) $project->price_registration)) {
922 print
'<tr><td>' . $form->textwithpicto($langs->trans(
"EmailCompany"), $langs->trans(
"EmailCompanyForInvoice")) .
'</td><td>';
923 print img_picto(
'',
'email',
'class="pictofixedwidth"');
924 print
'<input type="text" name="emailcompany" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag(
GETPOST(
'emailcompany')) .
'"></td></tr>' .
"\n";
928 print
'<tr><td>' . $langs->trans(
"Address") .
'</td><td>' .
"\n";
929 print
'<textarea name="address" id="address" wrap="soft" class="centpercent" rows="' . ROWS_2 .
'">' .
dol_escape_htmltag(
GETPOST(
'address',
'restricthtml'), 0, 1) .
'</textarea></td></tr>' .
"\n";
932 print
'<tr><td>' . $langs->trans(
'Zip') .
' / ' . $langs->trans(
'Town') .
'</td><td>';
933 print $formcompany->select_ziptown(
GETPOST(
'zipcode'),
'zipcode', array(
'town',
'selectcountry_id',
'state_id'), 6, 1);
935 print $formcompany->select_ziptown(
GETPOST(
'town'),
'town', array(
'zipcode',
'selectcountry_id',
'state_id'), 0, 1);
939 print
'<tr><td><span class="fieldrequired">'.$langs->trans(
'Country').
'</span></td><td>';
940 print img_picto(
'',
'country',
'class="pictofixedwidth"');
941 $country_id =
GETPOST(
'country_id');
943 $country_id =
getCountry(
$conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE,
'2', $db, $langs);
945 if (!$country_id && !empty(
$conf->geoipmaxmind->enabled)) {
949 $new_country_id =
getCountry($country_code,
'3', $db, $langs);
951 if ($new_country_id) {
952 $country_id = $new_country_id;
956 $country_code =
getCountry($country_id,
'2', $db, $langs);
957 print $form->select_country($country_id,
'country_id',
'', 0,
'minwidth200 widthcentpercentminusx maxwidth300');
961 print
'<tr><td>' . $langs->trans(
'State') .
'</td><td>';
963 print img_picto(
'',
'state',
'class="pictofixedwidth"');
964 print $formcompany->select_state(
GETPOSTINT(
"state_id"), $country_code);
971 if (!empty((
float) $project->price_registration)) {
972 print
'<tr><td>' . $langs->trans(
'Price') .
'</td><td>';
973 print
'<span class="amount price-registration">'.price($project->price_registration, 1, $langs, 1, -1, -1,
$conf->currency).
'</span>';
978 $parameters[
'tpl_context'] =
'public';
979 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
981 $notetoshow = $note_public;
982 print
'<tr><td>' . $langs->trans(
'Note') .
'</td><td>';
984 $notetoshow = str_replace(
'\n',
"\n",
getDolGlobalString(
'EVENTORGANIZATION_DEFAULT_NOTE_ON_REGISTRATION'));
986 print
'<textarea name="note_public" class="centpercent" rows="'.ROWS_9.
'">'.
dol_escape_htmltag($notetoshow, 0, 1).
'</textarea>';
996 print
'<div class="center">';
997 print
'<input type="submit" value="' . $langs->trans(
"Submit") .
'" id="submitsave" class="button">';
998 if (!empty($backtopage)) {
999 print
' <input type="submit" value="' . $langs->trans(
"Cancel") .
'" id="submitcancel" class="button button-cancel">';
1009 if ($project->status == $project::STATUS_DRAFT) {
1010 print $langs->trans(
"ConferenceIsNotConfirmed");