' . _("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++) { if(count($_SESSION['horaires'.$i])!=0) { 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]); } } } 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 time() + (24*60*60)) { $_SESSION["champdatefin"]=$time; } } } ajouter_sondage(); } else { if (Utils::issetAndNoEmpty('days')) { if (!isset($_SESSION["totalchoixjour"])) { $_SESSION["totalchoixjour"]=array(); } $k = 0; for ($i = 0; $i < count($_POST["days"]); $i++) { if (isset($_POST["days"][$i]) && $_POST["days"][$i] !='') { $_SESSION['totalchoixjour'][$k] = mktime(0, 0, 0, substr($_POST["days"][$i],3,2),substr($_POST["days"][$i],0,2),substr($_POST["days"][$i],6,4)); $l = 0; for($j = 0; $j < count($_POST['horaires'.$i]); $j++) { if (isset($_POST['horaires'.$i][$j]) && $_POST['horaires'.$i][$j] != '') { $_SESSION['horaires'.$k][$l] = $_POST['horaires'.$i][$j]; $l++; } } $k++; } } } } //le format du sondage est DATE $_SESSION["formatsondage"] = "D".$_SESSION["studsplus"]; // Step 3/3 : Confirm poll creation if (Utils::issetAndNoEmpty('choixheures') && Utils::issetAndNoEmpty('totalchoixjour', $_SESSION)) { Utils::print_header ( _("Removal date and confirmation (3 on 3)") ); bandeau_titre(_("Removal date and confirmation (3 on 3)")); $temp_array = array_unique($_SESSION["totalchoixjour"]); sort($temp_array); $removal_date=utf8_encode(strftime($date_format['txt_full'], end($temp_array)+ (86400 * $config['default_poll_duration']))); // Sumary $summary = '