' . _("You haven't filled the first section of the poll creation.") . ' !

' . _("Back to the homepage of ") . ' ' . '' . NOMAPPLICATION . '.

'; bandeau_pied(); } else { // Step 4 : Data prepare before insert in DB if (Utils::issetAndNoEmpty('confirmation')) { $temp_results = array(); $choixdate=''; if (Utils::issetAndNoEmpty('totalchoixjour', $_SESSION) === true) { for ($i = 0; $i < count($_SESSION["totalchoixjour"]); $i++) { for ($j=0;$j< min(count($_SESSION['horaires'.$i]),12);$j++) { if ($_SESSION['horaires'.$i][$j]!="") { array_push($temp_results, $_SESSION["totalchoixjour"][$i].'@'.$_SESSION['horaires'.$i][$j]); } else { array_push($temp_results, $_SESSION["totalchoixjour"][$i]); } } } } // Sort and remove doublons $temp_results = array_unique($temp_results); sort($temp_results); for ($i=0;$i

'. _("Confirm the creation of your poll") .'

'. _("Your poll will expire automatically 2 days after the last date of your poll.") .'

'. _("Removal date:") .' '.$removal_date.'

'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the administration page of your poll."). '

' . _("Then, you will receive quickly two emails: one contening the link of your poll for sending it to the voters, the other contening the link to the administration page of your poll.") .'

'."\n"; bandeau_pied(); // Step 2/3 : Select dates of the poll } else { Utils::print_header ( _("Poll dates (2 on 3)") ); bandeau_titre(_("Poll dates (2 on 3)")); echo '

'. _("Choose the dates of your poll") .'

'. _("To schedule an event you need to propose at least two choices (two hours for one day or two days).").'

'. _("You can add or remove additionnal days and hours with the buttons") .'

'. _("For each selected day, you can choose, or not, meeting hours (e.g.: \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)").'

'; // Fields days : 1 by default $nb_days = (isset($_SESSION["totalchoixjour"])) ? count($_SESSION["totalchoixjour"]) : 1; for ($i=0;$i<$nb_days;$i++) { $day_value = isset($_SESSION["totalchoixjour"][$i]) ? strftime( "%d/%m/%Y", $_SESSION["totalchoixjour"][$i]) : ''; echo '
'."\n"; // Fields hours : 3 by default for ($j=0;$j
'."\n"; } echo '
'; } echo '
'."\n"; bandeau_pied(); } }