'."\n";
- echo ' '. _("Your poll aim is to make a choice between different subjects. Enter the subjects to vote for:") .'
'."\n";
+ echo '
'."\n";
+ echo '
'. _("Your poll aim is to make a choice between different subjects. Enter the subjects to vote for:") .'
'."\n";
echo '
'."\n";
//affichage des cases texte de formulaire
@@ -156,7 +162,7 @@ if (issetAndNoEmpty('titre', $_SESSION) === false || issetAndNoEmpty('nom', $_SE
if (isset($_SESSION["choix$i"]) === false) {
$_SESSION["choix$i"] = '';
}
- echo '
'. _("Choice") .' '.$j.' :
'."\n";
+ echo '
:
'."\n";
}
echo '
'."\n";
@@ -168,9 +174,8 @@ if (issetAndNoEmpty('titre', $_SESSION) === false || issetAndNoEmpty('nom', $_SE
//ajout de cases supplementaires
echo '
'."\n";
- echo '
'. _("5 choices more") .'
'."\n";
+ echo '
'. _("5 choices more") .'
'."\n";
echo '
'."\n";
- echo' '."\n";
//echo '
'."\n";
//echo '
'. _("Next") .'
'."\n";
@@ -191,46 +196,43 @@ if (!isset($_POST["fin_sondage_autre_x"])) {
//message d'erreur si aucun champ renseigné
if ($testremplissage != "ok" && (isset($_POST["fin_sondage_autre"]) || isset($_POST["fin_sondage_autre_x"]))) {
- print " " . _("Enter at least one choice") . "
"."\n";
+ print "
" . _("Enter at least one choice") . "
"."\n";
$erreur = true;
}
//message d'erreur si mauvaise date
if ($testdate === false) {
- print " " . _("Date must be have the format DD/MM/YYYY") . "
"."\n";
+ print "
" . _("Date must be have the format DD/MM/YYYY") . "
"."\n";
}
if ($erreur_injection) {
- print "" . _("Characters \" < and > are not permitted") . "
\n";
+ print "
" . _("Characters \" < and > are not permitted") . "
\n";
}
if ((isset($_POST["fin_sondage_autre"]) || isset($_POST["fin_sondage_autre_x"])) && !$erreur && !$erreur_injection) {
//demande de la date de fin du sondage
- echo ' '."\n";
echo '
'."\n";
- echo ' '. _("Your poll will be automatically removed after 6 months. You can fix another removal date for it.") .'
'."\n";
//bandeau de pied
@@ -214,12 +214,12 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
//debut de la page web
echo ''."\n";
- echo ''."\n";
+ echo ''."\n";
echo ''."\n";
echo ''."\n";
- echo ''.NOMAPPLICATION.''."\n";
- echo ''."\n";
- echo '';
+ echo ''._("Poll dates (2 on 2)").' - '.NOMAPPLICATION.''."\n";
+ echo ''."\n";
+ echo '';
echo ''."\n";
echo ''."\n";
@@ -230,7 +230,7 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
bandeau_titre(_("Poll dates (2 on 2)"));
sous_bandeau_choix();
- echo '
'."\n";
+ echo '
'."\n";
//ajout pyg pour la cohérence graphique
@@ -244,7 +244,7 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
//debut du tableau qui affiche le calendrier
echo '
'."\n";
echo '
'."\n";
- echo '
'.$motmois.' '.$_SESSION["annee"].'
'."\n";
+ echo '
'.$motmois.' '.$_SESSION["annee"].'
'."\n";
echo '
'."\n";
echo '
'."\n";
echo '
'."\n";
@@ -498,7 +498,7 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
}
if ($_SESSION["nbrecaseshoraires"] < 10) {
- echo '
'."\n";
+ echo '
'."\n";
}
echo '
'."\n";
@@ -621,4 +621,4 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION)
unset($_SESSION["nbrecaseshoraires"]);
echo '';
}
-}
\ No newline at end of file
+}
diff --git a/contacts.php b/contacts.php
index d1d72c4..2590fd6 100644
--- a/contacts.php
+++ b/contacts.php
@@ -65,21 +65,20 @@ if ((isset($_POST['envoiquestion']) || isset($_POST['envoiquestion_x'])) && isse
}
//affichage de la page de confirmation d'envoi
- echo ''."\n";
- echo ''."\n";
+ echo ''."\n";
+ echo ''."\n";
echo ''."\n";
- echo ''.NOMAPPLICATION.''."\n";
+ echo ''._("Make your polls").' - '.NOMAPPLICATION.''."\n";
echo ''."\n";
- echo ''."\n";
+ echo ''."\n";
echo ''."\n";
echo ''."\n";
logo();
bandeau_tete();
bandeau_titre(_("Make your polls"));
echo '
'."\n";
- print "
" . _("Your message has been sent!") . "
"."\n";
- print "" . _("Back to the homepage of ") . " ".NOMAPPLICATION."."."\n";
- echo '
'."\n";
+ print "
" . _("Your message has been sent!") . "
"."\n";
+ print "" . _("Back to the homepage of ") . " ".NOMAPPLICATION."."."\n";
echo '
';
diff --git a/infos_sondage.php b/infos_sondage.php
index e7b8482..473074d 100644
--- a/infos_sondage.php
+++ b/infos_sondage.php
@@ -141,18 +141,23 @@ if (issetAndNoEmpty("poursuivre")){
}
+ } else {
+ // Title Erreur !
+ print_header(true, _("Error!").' - '._("Poll creation (1 on 2)"));
}
+} else {
+ // Title OK (formulaire pas encore rempli)
+ print_header(true, _("Poll creation (1 on 2)"));
}
//affichage de la page
-print_header(true);
echo ''."\n";
framanav();
//affichage des bandeaux de tete
logo();
bandeau_tete();
-echo '
'. _("Poll creation (1 on 2)") .'
'."\n";
+echo '
'. _("Poll creation (1 on 2)") .'
'."\n";
sous_bandeau();
// premier sondage ? test l'existence des schémas SQL avant d'aller plus loin
@@ -167,56 +172,69 @@ if(!check_table_sondage()) {
}
//debut du formulaire
-echo '
'."\n";
+echo '
'."\n";
-echo '
'."\n";
-echo ' '. _("You are in the poll creation section. Required fields cannot be left blank") .'
'."\n";
+echo '
'."\n";
+echo '
'. _("You are in the poll creation section. Required fields cannot be left blank") .'
'."\n";
//Affichage des différents champs textes a remplir
-echo '
'."\n";
+echo '
'."\n";
-echo '
'. _("Poll title *: ") .'
'."\n";
+echo '
" . _("Enter a title") . "
"."\n";
+ // fermeture de la ligne du dessus avec attribut aria-describeby pour avoir les infos concernant l'erreur
+ // pas très propre mais bon...
+ echo 'aria-describeby="#poll_title_error">'."\n";
+ echo '
" . _("The address is not correct! (You should enter a valid email address in order to receive the link to your poll)") . "
"."\n";
+ print "
" . _("The address is not correct! (You should enter a valid email address in order to receive the link to your poll)") . "
"."\n";
}
echo '
'."\n";
@@ -238,13 +256,13 @@ if ($_SESSION["studsplus"]=="+") {
$cocheplus="checked";
}
-echo ' '."\n";
+echo ''."\n";
if ($_SESSION["mailsonde"]) {
$cochemail="checked";
}
-echo ' '."\n";
+echo ''."\n";
//affichage des boutons pour choisir sondage date ou autre
if ($_GET['choix_sondage'] == 'date') {
@@ -253,7 +271,7 @@ if ($_GET['choix_sondage'] == 'date') {
$choix = "creation_sondage_autre";
}
echo '';
-echo ' ';
+echo '';
echo '';
diff --git a/locale/de_DE/LC_MESSAGES/Studs.mo b/locale/de_DE/LC_MESSAGES/Studs.mo
index 87e4b0a..caf6a9f 100644
Binary files a/locale/de_DE/LC_MESSAGES/Studs.mo and b/locale/de_DE/LC_MESSAGES/Studs.mo differ
diff --git a/locale/de_DE/LC_MESSAGES/Studs.po b/locale/de_DE/LC_MESSAGES/Studs.po
index fe3da6b..ae12615 100644
--- a/locale/de_DE/LC_MESSAGES/Studs.po
+++ b/locale/de_DE/LC_MESSAGES/Studs.po
@@ -400,8 +400,8 @@ msgid "Comments"
msgstr "Kommentar"
#: studs.php:261
-msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you (without paying attention to the choices of the other voters) and validate with the plus button at the end of the line."
-msgstr "Um an dieser Umfrage Teilzunehmen tragen sie bitte ihren Namen, wählen sie die ihnen passenden Wehrte (ohne die dispo der anderen Teilnehmer zu beachten) und bestätigen sie ihre Wahl mit dem Knopf am ende der Ligne."
+msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
+msgstr "Um an dieser Umfrage Teilzunehmen tragen sie bitte ihren Namen, wählen sie die ihnen passenden Wehrte und bestätigen sie ihre Wahl mit dem Knopf am ende der Ligne."
#: studs.php:445
#: adminstuds.php:806
diff --git a/locale/en_GB/LC_MESSAGES/Studs.mo b/locale/en_GB/LC_MESSAGES/Studs.mo
index ec3d9c4..43e14ec 100644
Binary files a/locale/en_GB/LC_MESSAGES/Studs.mo and b/locale/en_GB/LC_MESSAGES/Studs.mo differ
diff --git a/locale/en_GB/LC_MESSAGES/Studs.po b/locale/en_GB/LC_MESSAGES/Studs.po
index a191040..ce98e9a 100644
--- a/locale/en_GB/LC_MESSAGES/Studs.po
+++ b/locale/en_GB/LC_MESSAGES/Studs.po
@@ -388,8 +388,8 @@ msgid "Comments"
msgstr "Comments"
#: studs.php:310
-msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you (without paying attention to the choices of the other voters) and validate with the plus button at the end of the line."
-msgstr "If you want to vote in this poll, you have to give your name, choose the values that fit best for you (without paying attention to the choices of the other voters) and validate with the plus button at the end of the line."
+msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
+msgstr "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
#: studs.php:517
#: adminstuds.php:886
diff --git a/locale/es_ES/LC_MESSAGES/Studs.mo b/locale/es_ES/LC_MESSAGES/Studs.mo
index ab0a92d..b6d9de1 100644
Binary files a/locale/es_ES/LC_MESSAGES/Studs.mo and b/locale/es_ES/LC_MESSAGES/Studs.mo differ
diff --git a/locale/es_ES/LC_MESSAGES/Studs.po b/locale/es_ES/LC_MESSAGES/Studs.po
index 3084fce..6685449 100644
--- a/locale/es_ES/LC_MESSAGES/Studs.po
+++ b/locale/es_ES/LC_MESSAGES/Studs.po
@@ -400,8 +400,8 @@ msgid "Comments"
msgstr "Comentarios"
#: studs.php:261
-msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you (without paying attention to the choices of the other voters) and validate with the plus button at the end of the line."
-msgstr "Para participar a esta encuesta, introduzca su nombre, elige todas las valores que son apriopriadas (sin tener en cuenta los otros encuestados) y validar su seleccion con el botón verde a la fin de línea."
+msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
+msgstr "Para participar a esta encuesta, introduzca su nombre, elige todas las valores que son apriopriadas y validar su seleccion con el botón verde a la fin de línea."
#: studs.php:445
#: adminstuds.php:806
diff --git a/locale/fr_FR/LC_MESSAGES/Studs.mo b/locale/fr_FR/LC_MESSAGES/Studs.mo
index b4a2568..bbe822c 100644
Binary files a/locale/fr_FR/LC_MESSAGES/Studs.mo and b/locale/fr_FR/LC_MESSAGES/Studs.mo differ
diff --git a/locale/fr_FR/LC_MESSAGES/Studs.po b/locale/fr_FR/LC_MESSAGES/Studs.po
index 99d1a23..c508df9 100644
--- a/locale/fr_FR/LC_MESSAGES/Studs.po
+++ b/locale/fr_FR/LC_MESSAGES/Studs.po
@@ -374,8 +374,8 @@ msgid "Comments"
msgstr "Commentaire de l'auteur"
#: studs.php:238
-msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you (without paying attention to the choices of the other voters) and validate with the plus button at the end of the line."
-msgstr "Pour participer à ce sondage, veuillez entrer votre nom, choisir toutes les valeurs qui vous conviennent et valider votre choix avec le bouton en bout de ligne."
+msgid "If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line."
+msgstr "Pour participer à ce sondage, veuillez entrer votre nom, choisir toutes les valeurs qui vous conviennent et valider votre choix avec le bouton en bout de ligne."
#: studs.php:456
msgid "Participate"
@@ -395,7 +395,7 @@ msgstr "Meilleur choix"
#: adminstuds.php:924
#: adminstuds.php:926
msgid "for"
-msgstr "à"
+msgstr "à"
#: studs.php:534
#: adminstuds.php:947
diff --git a/maintenance.php b/maintenance.php
index 576c9a8..ea3f8d2 100644
--- a/maintenance.php
+++ b/maintenance.php
@@ -39,12 +39,12 @@
include_once('bandeaux.php');
-echo ''."\n";
-echo ''."\n";
+echo ''."\n";
+echo ''."\n";
echo ''."\n";
echo ''."\n";
echo 'Maintenance '.NOMAPPLICATION.' '."\n";
-echo ''."\n";
+echo ''."\n";
echo ''."\n";
echo ''."\n";
logo();
@@ -60,4 +60,4 @@ echo ''."\n";
sur_bandeau_pied();
bandeau_pied();
echo ''."\n";
-echo ''."\n";
\ No newline at end of file
+echo ''."\n";
diff --git a/sources/sources.php b/sources/sources.php
index 04d9fc9..a086386 100644
--- a/sources/sources.php
+++ b/sources/sources.php
@@ -40,7 +40,7 @@
include '../bandeaux.php';
echo ''."\n";
-echo ''."\n";
+echo ''."\n";
echo ''."\n";
echo ''."\n";
echo 'Sources '.NOMAPPLICATION.''."\n";
@@ -61,4 +61,4 @@ echo ''."\n";
// Affichage du bandeau de pied
bandeau_pied();
echo ''."\n";
-echo ''."\n";
\ No newline at end of file
+echo ''."\n";
diff --git a/studs.php b/studs.php
index a0c774f..16cd29e 100644
--- a/studs.php
+++ b/studs.php
@@ -183,8 +183,11 @@ if (!is_error(NO_POLL) && (isset($_POST["boutonp"]) || isset($_POST["boutonp_x"]
$err |= NAME_EMPTY;
}
}
-
-print_header(true, $dsondage->titre);
+if($err != 0) {
+ print_header(true, _("Error!").' - '.$dsondage->titre);
+} else {
+ print_header(true, $dsondage->titre);
+}
echo ''."\n";
framanav();
logo();
@@ -219,9 +222,8 @@ if($err != 0) {
if(is_error(NO_POLL_ID) || is_error(NO_POLL)) {
echo '
'."\n";
-echo _("If you want to vote in this poll, you have to give your name, choose the values that fit best for you (without paying attention to the choices of the other voters) and validate with the plus button at the end of the line.") ."\n";
+echo _("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.") ."\n";
echo '
'."\n";
// Debut de l'affichage des resultats du sondage
@@ -416,12 +416,12 @@ if ($dsondage->format=="D"||$dsondage->format=="D+") {
//affichage des sujets du sondage
echo '
'."\n";
- echo '
'."\n";
+ echo '
'."\n";
for ($i=0; isset($toutsujet[$i]); $i++) {
- echo '
'.stripslashes($toutsujet[$i]).'
'."\n";
+ echo '
'.stripslashes($toutsujet[$i]).'
'."\n";
}
-
+ echo '
'."\n";
echo '
'."\n";
}
@@ -442,7 +442,7 @@ while ($data = $user_studs->FetchNextObject(false)) {
$nombase=str_replace("°","'",$data->nom);
echo stripslashes($nombase).''."\n";
- // Les réponses qu'il a choisit
+ // Les réponses qu'il a choisies
$ensemblereponses = $data->reponses;
// ligne d'un usager pré-authentifié
@@ -453,7 +453,7 @@ while ($data = $user_studs->FetchNextObject(false)) {
for ($k=0; $k < $nbcolonnes; $k++) {
// on remplace les choix de l'utilisateur par une ligne de checkbox pour recuperer de nouvelles valeurs
if ($compteur == $ligneamodifier) {
- echo '
FetchNextObject(false)) {
//a la fin de chaque ligne se trouve les boutons modifier
if ($compteur != $ligneamodifier && ($dsondage->format=="A+"||$dsondage->format=="D+") && $mod_ok) {
- echo '
'."\n";
+ echo '
'."\n";
}
//demande de confirmation pour modification de ligne
for ($i=0;$i<$nblignes;$i++) {
if (isset($_POST["modifierligne$i"]) || isset($_POST['modifierligne'.$i.'_x'])) {
if ($compteur == $i) {
- echo '
'."\n";
+ echo '
'."\n";
}
}
}
@@ -500,13 +500,13 @@ if (! ( USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) ) || !$user_mod) {
} else {
$nom = 'Votre nom';
}
- echo ''."\n";
+ echo ''."\n";
echo ''."\n";
// affichage des cases de formulaire checkbox pour un nouveau choix
for ($i=0;$i<$nbcolonnes;$i++) {
- echo '
'."\n";
+ echo '
'."\n";
echo ''."\n";
}
@@ -537,10 +537,10 @@ echo ''."\n".''."\n";
// Affichage des différentes sommes des colonnes existantes
echo '
'."\n";
-echo '
';
+echo '
';
// si on a plus de 8 colonnes, on affiche un second bouton "valider mes choix"
echo ($nbcolonnes>8) ?'' : "";
-echo _("Addition") .''."\n";
+echo _("Addition") .'
'."\n";
for ($i=0; $i < $nbcolonnes; $i++) {
if (isset($somme[$i]) === true) {
@@ -555,19 +555,19 @@ for ($i=0; $i < $nbcolonnes; $i++) {
echo '
'.$affichesomme.'
'."\n";
}
-
+echo '
'."\n";
echo '
'."\n";
echo '
'."\n";
echo '
'."\n";
for ($i=0; $i < $nbcolonnes; $i++) {
if (isset($somme[$i]) && isset($meilleurecolonne) && $somme[$i] == $meilleurecolonne) {
- echo '
'."\n";
+ echo '
'."\n";
} else {
echo '
'."\n";
}
}
-
+echo '
'."\n";
echo '
'."\n";
echo ''."\n";
echo '
'."\n";
@@ -620,9 +620,9 @@ echo '
'."\n";
// Affichage du meilleur choix
if ($compteursujet == "1" && isset($meilleurecolonne)) {
- print ' ' . _('The best choice at this time is:') . "".stripslashes($meilleursujet)." " . _('with') . " $meilleurecolonne " . $vote_str . ".\n";
+ print ' ' . _('The best choice at this time is:') . "".stripslashes($meilleursujet)." " . _('with') . " $meilleurecolonne " . $vote_str . ".\n";
} elseif (isset($meilleurecolonne)) {
- print ' ' . _('The bests choices at this time are:') . " ".stripslashes($meilleursujet)." " . _('with') . " $meilleurecolonne " . $vote_str . ".\n";
+ print ' ' . _('The bests choices at this time are:') . " ".stripslashes($meilleursujet)." " . _('with') . " $meilleurecolonne " . $vote_str . ".\n";
}
echo '
';
@@ -640,33 +640,33 @@ if ($comment_user->RecordCount() != 0) {
}
//affichage de la case permettant de rajouter un commentaire par les utilisateurs
-print '
' .'
' ._("Add a comment in the poll:") . '
' . "\n";
+print '
' .'
'."\n";
// Focus javascript sur la case de texte du formulaire
echo ''."\n";
echo '
' ._("Add a comment in the poll:") . '
' . "\n"; +print '