252$parameters = array();
254$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
260if (empty($reshook) && $action ==
'add' && (!empty($conference->id) && $conference->status == 2 || !empty($project->id) && $project->status ==
Project::STATUS_VALIDATED)) {
269 $errmsg .= $langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"Email")).
"<br>\n";
272 if (!
GETPOST(
"societe") && !empty((
float) $project->price_registration)) {
274 $errmsg .= $langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"Company")).
"<br>\n";
278 $langs->load(
"errors");
279 $errmsg .= $langs->trans(
"ErrorBadEMail",
GETPOST(
"email")).
"<br>\n";
283 $errmsg .= $langs->trans(
"ErrorFieldRequired", $langs->transnoentitiesnoconv(
"Country")).
"<br>\n";
292 if ($type ==
'global') {
293 $filter =
"(t.fk_project:=:".((int)
$id).
") AND (t.email:=:'".
$db->escape($email).
"')";
295 if ($type ==
'conf') {
296 $filter =
"(t.fk_actioncomm:=:".((int)
$id).
") AND (t.email:=:'".
$db->escape($email).
"')";
300 $resultfetchconfattendee = $confattendee->fetchAll(
'',
'', 0, 0, $filter);
302 $attendeealreadyexists =
false;
303 if ($resultfetchconfattendee < 0) {
305 $errmsg .= $confattendee->error;
306 $errors = array_merge($errors, $confattendee->errors);
307 } elseif (is_array($resultfetchconfattendee) && count($resultfetchconfattendee) > 0) {
309 $confattendee = array_shift($resultfetchconfattendee);
310 $attendeealreadyexists =
true;
313 $confattendee->date_creation =
dol_now();
318 if (!$error && (!$attendeealreadyexists || empty((
float) $confattendee->amount))) {
319 $confattendee->date_subscription =
dol_now();
320 $confattendee->email = $email;
321 $confattendee->fk_project = $project->id;
322 $confattendee->fk_actioncomm =
$id;
323 $confattendee->note_public = $note_public;
324 $confattendee->firstname = $firstname;
325 $confattendee->lastname = $lastname;
328 $extrafields->fetch_name_optionals_label($confattendee->table_element);
329 $ret = $extrafields->setOptionalsFromPost(
null, $confattendee);
332 $errmsg .= $confattendee->error;
335 if (!$error && $attendeealreadyexists) {
336 $resultconfattendee = $confattendee->update($user);
337 if ($resultconfattendee < 0) {
339 $errmsg .= $confattendee->error;
340 $errors = array_merge($errors, $confattendee->errors);
345 if (!$error && !$attendeealreadyexists) {
348 $nb_post_max =
getDolGlobalInt(
"MAIN_SECURITY_MAX_POST_ON_PUBLIC_PAGES_BY_IP_ADDRESS", 200);
353 if ($nb_post_max > 0) {
354 $sql =
"SELECT COUNT(ref) as nb_attendee";
355 $sql .=
" FROM ".MAIN_DB_PREFIX.
"eventorganization_conferenceorboothattendee";
356 $sql .=
" WHERE ip = '".$db->escape($confattendee->ip).
"'";
357 $sql .=
" AND date_creation > '".$db->idate($minmonthpost).
"'";
358 $resql =
$db->query($sql);
360 $num =
$db->num_rows($resql);
364 $obj =
$db->fetch_object($resql);
365 $nb_post_ip = $obj->nb_attendee;
370 $resultconfattendee = -1;
372 if ($nb_post_max > 0 && $nb_post_ip >= $nb_post_max) {
374 $errmsg .= $langs->trans(
"AlreadyTooMuchPostOnThisIPAdress");
375 array_push($confattendee->errors, $langs->trans(
"AlreadyTooMuchPostOnThisIPAdress"));
378 $resultconfattendee = $confattendee->create($user);
380 if ($resultconfattendee < 0) {
382 $errmsg .= $confattendee->error;
383 $errors = array_merge($errors, $confattendee->errors);
391 if (!$error && !empty($confattendee->date_subscription) && !empty((
float) $confattendee->amount)) {
393 $redirection =
$dolibarr_main_url_root.
'/public/eventorganization/subscriptionok.php?id='.((int)
$id).
'&securekey='.urlencode($securekeyurl);
395 $mesg = $langs->trans(
"RegistrationAndPaymentWereAlreadyRecorded", $email);
400 header(
"Location: ".$redirection);
404 $resultfetchthirdparty = 0;
406 $genericcompanyname = $langs->trans(
'EventParticipant').
' '.($emailcompany ? $emailcompany : $email);
412 if (!empty($confattendee->fk_soc) && $confattendee->fk_soc > 0) {
413 $resultfetchthirdparty = $thirdparty->fetch($confattendee->fk_soc);
417 if ($resultfetchthirdparty <= 0 && !empty($societe) && !empty($emailcompany)) {
418 $resultfetchthirdparty = $thirdparty->fetch(0, $societe,
'',
'',
'',
'',
'',
'',
'',
'', $emailcompany);
419 if ($resultfetchthirdparty > 0) {
421 $confattendee->fk_soc = $thirdparty->id;
422 $confattendee->update($user);
423 } elseif ($resultfetchthirdparty == -2) {
424 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithNameContactUs",
$mysoc->email);
428 if ($resultfetchthirdparty <= 0 && !empty($societe) && !empty($email) && $email != $emailcompany) {
429 $resultfetchthirdparty = $thirdparty->fetch(0, $societe,
'',
'',
'',
'',
'',
'',
'',
'', $email);
430 if ($resultfetchthirdparty > 0) {
432 $confattendee->fk_soc = $thirdparty->id;
433 $confattendee->update($user);
434 } elseif ($resultfetchthirdparty == -2) {
435 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithNameContactUs",
$mysoc->email);
439 if ($resultfetchthirdparty <= 0 && !empty($emailcompany)) {
441 $resultfetchthirdparty = $thirdparty->fetch(0,
'',
'',
'',
'',
'',
'',
'',
'',
'', $emailcompany);
442 if ($resultfetchthirdparty > 0) {
444 $confattendee->fk_soc = $thirdparty->id;
445 $confattendee->update($user);
446 } elseif ($resultfetchthirdparty == -2) {
447 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithEmailContactUs",
$mysoc->email);
450 if ($resultfetchthirdparty <= 0 && !empty($email) && $email != $emailcompany) {
452 $resultfetchthirdparty = $thirdparty->fetch(0,
'',
'',
'',
'',
'',
'',
'',
'',
'', $email);
453 if ($resultfetchthirdparty > 0) {
455 $confattendee->fk_soc = $thirdparty->id;
456 $confattendee->update($user);
457 } elseif ($resultfetchthirdparty == -2) {
458 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithEmailContactUs",
$mysoc->email);
461 if ($resultfetchthirdparty <= 0 && !empty($genericcompanyname)) {
463 $resultfetchthirdparty = $thirdparty->fetch(0, $genericcompanyname,
'',
'',
'',
'',
'',
'',
'',
'',
'');
464 if ($resultfetchthirdparty > 0) {
466 $confattendee->fk_soc = $thirdparty->id;
467 $confattendee->update($user);
468 } elseif ($resultfetchthirdparty == -2) {
469 $thirdparty->error = $langs->trans(
"ErrorSeveralCompaniesWithNameContactUs",
$mysoc->email);
475 if ($resultfetchthirdparty <= 0 && !empty($email)) {
477 $resultfetchcontact = $contact->fetch(0,
null,
'', $email);
478 if ($resultfetchcontact > 0 && $contact->fk_soc > 0) {
479 $thirdparty->fetch($contact->fk_soc);
480 $confattendee->fk_soc = $thirdparty->id;
481 $confattendee->update($user);
482 $resultfetchthirdparty = 1;
486 if ($resultfetchthirdparty <= 0 && !empty($societe)) {
488 $resultfetchthirdparty = $thirdparty->fetch(0, $societe,
'',
'',
'',
'',
'',
'',
'',
'',
'');
489 if ($resultfetchthirdparty > 0) {
491 $confattendee->fk_soc = $thirdparty->id;
492 $confattendee->update($user);
493 } elseif ($resultfetchthirdparty == -2) {
494 $thirdparty->error =
"ErrorSeveralCompaniesWithNameContactUs";
500 if (empty((
float) $project->price_registration)) {
501 $resultfetchthirdparty = 1;
504 if ($resultfetchthirdparty < 0) {
507 $errmsg .= $thirdparty->error;
508 $errors = array_merge($errors, $thirdparty->errors);
509 } elseif ($resultfetchthirdparty == 0) {
511 if (!empty($societe)) {
512 $thirdparty->name = $societe;
514 $thirdparty->name = $genericcompanyname;
516 $thirdparty->address =
GETPOST(
"address");
517 $thirdparty->zip =
GETPOST(
"zipcode");
518 $thirdparty->town =
GETPOST(
"town");
519 $thirdparty->client = $thirdparty::PROSPECT;
520 $thirdparty->fournisseur = 0;
521 $thirdparty->country_id =
GETPOSTINT(
"country_id");
522 $thirdparty->state_id =
GETPOSTINT(
"state_id");
523 $thirdparty->email = ($emailcompany ? $emailcompany : $email);
527 if (substr($module, 0, 15) ==
'mod_codeclient_' && substr($module, -3) ==
'php') {
528 $module = substr($module, 0,
dol_strlen($module) - 4);
530 $dirsociete = array_merge(array(
'/core/modules/societe/'),
$conf->modules_parts[
'societe']);
531 foreach ($dirsociete as $dirroot) {
537 $modCodeClient =
new $module(
$db);
538 '@phan-var-force ModeleThirdPartyCode $modCodeClient';
540 if (empty($tmpcode) && !empty($modCodeClient->code_auto)) {
541 $tmpcode = $modCodeClient->getNextValue($thirdparty, 0);
543 $thirdparty->code_client = $tmpcode;
545 $readythirdparty = $thirdparty->create($user);
546 if ($readythirdparty < 0) {
548 $errmsg .= $thirdparty->error;
549 $errors = array_merge($errors, $thirdparty->errors);
551 $thirdparty->country_code =
getCountry($thirdparty->country_id,
'2',
$db, $langs);
552 $thirdparty->country =
getCountry($thirdparty->country_code,
'',
$db, $langs);
555 $confattendee->fk_soc = $thirdparty->id;
556 $confattendee->update($user);
561 if (!$error && is_object($thirdparty)) {
563 if (!empty((
float) $project->price_registration)) {
564 $outputlangs = $langs;
568 $outputlangs->loadLangs(array(
"eventorganization"));
572 $productforinvoicerow->id = 0;
576 $resultprod = $productforinvoicerow->fetch(
getDolGlobalInt(
'SERVICE_CONFERENCE_ATTENDEE_SUBSCRIPTION'));
581 if ($resultprod < 0) {
583 $errmsg .= $productforinvoicerow->error;
584 $errors = array_merge($errors, $productforinvoicerow->errors);
587 if (empty($confattendee->fk_invoice)) {
589 $facture->socid = $thirdparty->id;
592 $facture->cond_reglement_id = $confattendee->cond_reglement_id;
593 $facture->fk_project = $project->id;
596 if (empty($facture->cond_reglement_id)) {
597 $paymenttermstatic =
new PaymentTerm($confattendee->db);
598 $facture->cond_reglement_id = $paymenttermstatic->getDefaultId();
599 if (empty($facture->cond_reglement_id)) {
601 $confattendee->error =
'ErrorNoPaymentTermRECEPFound';
602 $confattendee->errors[] = $confattendee->error;
605 $resultfacture = $facture->create($user);
606 if ($resultfacture <= 0) {
607 $confattendee->error = $facture->error;
608 $confattendee->errors = $facture->errors;
611 $confattendee->fk_invoice = $resultfacture;
612 $confattendee->update($user);
615 $facture->fetch($confattendee->fk_invoice);
628 $labelforproduct = $outputlangs->trans(
"EventFee", $project->title);
629 if ($project->location) {
630 $labelforproduct .=
' - '.$project->location;
633 $date_end = $project->date_end_event;
636 if (empty($facture->lines)) {
637 $pu_ttc = (float) $project->price_registration;
639 $price_base_type =
'TTC';
641 $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);
643 $confattendee->error = $facture->error;
644 $confattendee->errors = $facture->errors;
650 if (!$error && is_object($facture)) {
659 $sourcetouse =
'organizedeventregistration';
660 $reftouse = $facture->id;
661 $redirection =
$dolibarr_main_url_root.
'/public/payment/newpayment.php?source='.urlencode((
string) ($sourcetouse)).
'&ref='.urlencode((
string) ($reftouse));
663 $redirection .=
'&securekey='.dol_hash(
getDolGlobalString(
'PAYMENT_SECURITY_TOKEN') . $sourcetouse . $reftouse,
'2');
666 header(
"Location: ".$redirection);
673 $resultsetstatus = $confattendee->setStatut(1);
674 if ($resultsetstatus < 0) {
676 $errmsg .= $confattendee->error;
677 $errors = array_merge($errors, $confattendee->errors);
684 require_once DOL_DOCUMENT_ROOT.
'/core/class/CMailFile.class.php';
685 include_once DOL_DOCUMENT_ROOT.
'/core/class/html.formmail.class.php';
689 $outputlangs->setDefaultLang(empty($thirdparty->default_lang) ?
$mysoc->default_lang : $thirdparty->default_lang);
691 $outputlangs->loadLangs(array(
"main",
"members",
"eventorganization"));
693 $arraydefaultmessage =
null;
695 $labeltouse =
getDolGlobalInt(
'EVENTORGANIZATION_TEMPLATE_EMAIL_AFT_SUBS_EVENT');
696 if (!empty($labeltouse)) {
697 $arraydefaultmessage = $formmail->getEMailTemplate(
$db,
'eventorganization_send', $user, $outputlangs, $labeltouse, 1,
'');
700 if (!empty($labeltouse) && is_object($arraydefaultmessage) && $arraydefaultmessage->id > 0) {
701 $subject = $arraydefaultmessage->topic;
702 $msg = $arraydefaultmessage->content;
708 $substitutionarray = getCommonSubstitutionArray($outputlangs, 0,
null, $thirdparty);
714 $sendto = !empty($thirdparty->email) ? $thirdparty->email :
715 $confattendee->email;
718 $urlback = $_SERVER[
"REQUEST_URI"];
722 if (!empty($sendto)) {
723 $mailfile =
new CMailFile($subjecttosend, $sendto, $from, $texttosend, array(), array(), array(),
'',
'', 0, ($ishtml ? 1 : 0));
724 $result = $mailfile->sendfile();
726 dol_syslog(
"EMail sent to ".$sendto, LOG_DEBUG, 0,
'_payment');
728 dol_syslog(
"Failed to send EMail to ".$sendto, LOG_ERR, 0,
'_payment');
733 $redirection =
$dolibarr_main_url_root.
'/public/eventorganization/subscriptionok.php?id='.((int)
$id).
'&securekey='.urlencode($securekeyurl);
735 header(
"Location: ".$redirection);
759print
'<div align="center">';
760print
'<div id="divsubscribe">';
763print
'<div class="center subscriptionformbanner subbanner justify margintoponly paddingtop marginbottomonly padingbottom">';
764print
load_fiche_titre($langs->trans(
"NewRegistration"),
'',
'', 0,
'',
'center');
766print
'<span class="opacitymedium">'.$langs->trans(
"EvntOrgWelcomeMessage").
'</span>';
769print
'<span class="eventlabel large">'.dolPrintHTML($project->title .
' '. $conference->label).
'</span><br>';
773print
'<div class="justify subscriptionformhelptext">';
775if ($project->date_start_event || $project->date_end_event) {
776 print
'<br><span class="fa fa-calendar pictofixedwidth opacitymedium"></span>';
778if ($project->date_start_event) {
780 $tmparray =
dol_getdate($project->date_start_event,
false,
'');
781 if ($tmparray[
'hours'] || $tmparray[
'minutes'] || $tmparray[
'seconds']) {
786if ($project->date_start_event && $project->date_end_event) {
789if ($project->date_end_event) {
791 $tmparray =
dol_getdate($project->date_end_event,
false,
'');
792 if ($tmparray[
'hours'] || $tmparray[
'minutes'] || $tmparray[
'seconds']) {
797if ($project->date_start_event || $project->date_end_event) {
800if ($project->location) {
801 print
'<span class="fa fa-map-marked-alt pictofixedwidth opacitymedium"></span>'.dolPrintHTML($project->location).
'<br>';
803if ($project->note_public) {
804 print
'<br><span class="opacitymedium">'.dol_htmlentitiesbr($project->note_public).
'</span><br>';
811if ($conference->id > 0) {
827 $maxattendees = $project->max_attendees;
830if ($maxattendees && $currentnbofattendees >= $maxattendees) {
832 print
'<div class="warning">'.$langs->trans(
"MaxNbOfAttendeesReached").
'</div>';
840if ((!empty($conference->id) && $conference->status == ConferenceOrBooth::STATUS_CONFIRMED) || (!empty($project->id) && $project->status ==
Project::STATUS_VALIDATED)) {
841 if (empty($maxattendees) ||
842 ($currentnbofattendees < $maxattendees &&
843 (!
getDolGlobalString(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED') || (
getDolGlobalString(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED') ==
GETPOST(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED')))
846 print
'<form action="' . $_SERVER[
"PHP_SELF"] .
'" method="POST" name="newmember">' .
"\n";
847 print
'<input type="hidden" name="token" value="' .
newToken() .
'" / >';
848 print
'<input type="hidden" name="entity" value="' . $entity .
'" />';
849 print
'<input type="hidden" name="action" value="add" />';
850 print
'<input type="hidden" name="type" value="' . $type .
'" />';
851 print
'<input type="hidden" name="id" value="' . $conference->id .
'" />';
852 print
'<input type="hidden" name="fk_project" value="' . $project->id .
'" />';
853 print
'<input type="hidden" name="securekey" value="' . $securekeyreceived .
'" />';
854 if (
GETPOST(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED')) {
855 print
'<input type="hidden" name="EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED" value="' .
GETPOST(
'EVENTORGANIZATION_ALLOW_REGISTRATION_WHEN_MAX_REACHED') .
'" />';
865 print
'<script type="text/javascript">
866 jQuery(document).ready(function () {
867 jQuery(document).ready(function () {
868 jQuery("#selectcountry_id").change(function() {
869 document.newmember.action.value="create";
870 document.newmember.submit();
876 print
'<table class="border" summary="form to subscribe" id="tablesubscribe">' .
"\n";
879 print
'<tr><td><span class="fieldrequired">';
880 print $langs->trans(
"Firstname") .
'</span></td><td>';
881 print
img_picto(
'',
'user',
'class="pictofixedwidth"');
882 print
'<input type="text" name="firstname" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag($firstname) .
'" required autofocus></td></tr>' .
"\n";
885 print
'<tr><td><span class="fieldrequired">';
886 print $langs->trans(
"Lastname") .
'</span></td><td>';
887 print
img_picto(
'',
'user',
'class="pictofixedwidth"');
888 print
'<input type="text" name="lastname" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag($lastname) .
'" required></td></tr>' .
"\n";
891 print
'<tr><td><span class="fieldrequired">' . $langs->trans(
"EmailAttendee") .
'</span></td><td>';
892 print
img_picto(
'',
'email',
'class="pictofixedwidth"');
893 print
'<input type="text" name="email" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag(
GETPOST(
'email')) .
'" required></td></tr>' .
"\n";
896 print
'<tr id="trcompany" class="trcompany"><td>';
897 if (!empty((
float) $project->price_registration)) {
898 print
'<span class="fieldrequired">';
900 print $langs->trans(
"Company");
901 if (!empty((
float) $project->price_registration)) {
905 print
img_picto(
'',
'company',
'class="pictofixedwidth"');
906 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";
909 if (!empty((
float) $project->price_registration)) {
910 print
'<tr><td>' . $form->textwithpicto($langs->trans(
"EmailCompany"), $langs->trans(
"EmailCompanyForInvoice")) .
'</td><td>';
911 print
img_picto(
'',
'email',
'class="pictofixedwidth"');
912 print
'<input type="text" name="emailcompany" maxlength="255" class="minwidth200 widthcentpercentminusx maxwidth300" value="' .
dol_escape_htmltag(
GETPOST(
'emailcompany')) .
'"></td></tr>' .
"\n";
916 print
'<tr><td>' . $langs->trans(
"Address") .
'</td><td>' .
"\n";
917 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";
920 print
'<tr><td>' . $langs->trans(
'Zip') .
' / ' . $langs->trans(
'Town') .
'</td><td>';
921 print $formcompany->select_ziptown(
GETPOST(
'zipcode'),
'zipcode', array(
'town',
'selectcountry_id',
'state_id'), 6, 1);
923 print $formcompany->select_ziptown(
GETPOST(
'town'),
'town', array(
'zipcode',
'selectcountry_id',
'state_id'), 0, 1);
927 print
'<tr><td><span class="fieldrequired">'.$langs->trans(
'Country').
'</span></td><td>';
928 print
img_picto(
'',
'country',
'class="pictofixedwidth"');
929 $country_id =
GETPOST(
'country_id');
931 $country_id =
getCountry(
$conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE,
'2',
$db, $langs);
933 if (!$country_id && !empty(
$conf->geoipmaxmind->enabled)) {
937 $new_country_id =
getCountry($country_code,
'3',
$db, $langs);
939 if ($new_country_id) {
940 $country_id = $new_country_id;
945 print $form->select_country($country_id,
'country_id',
'', 0,
'minwidth200 widthcentpercentminusx maxwidth300');
949 print
'<tr><td>' . $langs->trans(
'State') .
'</td><td>';
951 print
img_picto(
'',
'state',
'class="pictofixedwidth"');
952 print $formcompany->select_state(
GETPOSTINT(
"state_id"), $country_code);
959 if (!empty((
float) $project->price_registration)) {
960 print
'<tr><td>' . $langs->trans(
'Price') .
'</td><td>';
961 print
'<span class="amount price-registration">'.price($project->price_registration, 1, $langs, 1, -1, -1,
$conf->currency).
'</span>';
966 $parameters[
'tpl_context'] =
'public';
967 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
969 $notetoshow = $note_public;
970 print
'<tr><td>' . $langs->trans(
'Note') .
'</td><td>';
972 $notetoshow = str_replace(
'\n',
"\n",
getDolGlobalString(
'EVENTORGANIZATION_DEFAULT_NOTE_ON_REGISTRATION'));
974 print
'<textarea name="note_public" class="centpercent" rows="'.ROWS_9.
'">'.
dol_escape_htmltag($notetoshow, 0, 1).
'</textarea>';
984 print
'<div class="center">';
985 print
'<input type="submit" value="' . $langs->trans(
"Submit") .
'" id="submitsave" class="button">';
986 if (!empty($backtopage)) {
987 print
' <input type="submit" value="' . $langs->trans(
"Cancel") .
'" id="submitcancel" class="button button-cancel">';
997 if ($project->status == $project::STATUS_DRAFT) {
998 print $langs->trans(
"ConferenceIsNotConfirmed");