diff --git a/adminstuds.php b/adminstuds.php index 1af9393..3c3f017 100644 --- a/adminstuds.php +++ b/adminstuds.php @@ -84,7 +84,7 @@ function send_mail_admin() { global $email_admin; global $poll_title; global $numsondageadmin; - global $smtp_allowed; + global $smtp_allowed; if($smtp_allowed==true){ if(!isset($_SESSION["mail_admin_sent"])) { Utils::sendEmail( $email_admin, @@ -839,11 +839,11 @@ if (substr($dsondage->format, 0, 1)=="D") { // Current date $current = $toutsujet[$i];//format date@hour. ex : 2020292820@10:00 - $horoCur = explode("@",$current); //horoCur[0] = date, horoCur[1] = hour - if (isset($toutsujet[$i+1])){ - $next = $toutsujet[$i+1]; - $horoNext = explode("@",$next); - } + $horoCur = explode("@",$current); //horoCur[0] = date, horoCur[1] = hour + if (isset($toutsujet[$i+1])){ + $next = $toutsujet[$i+1]; + $horoNext = explode("@",$next); + } $border[$i] = false; $radio_title[$i] = strftime($date_format['txt_short'],$horoCur[0]); @@ -1169,6 +1169,7 @@ echo $tr_addition.' if ($compteursujet == 1) { echo ' +

' . _("Best choice") . '

' . _("The best choice at this time is:") . '

' . $meilleursujet . ' @@ -1176,6 +1177,7 @@ if ($compteursujet == 1) {
'."\n"; } elseif ($compteursujet > 1) { echo ' +

' . _("Best choices") . '

' . _("The bests choices at this time are:") . '

' . $meilleursujet . ' diff --git a/css/style.css b/css/style.css index f22af14..f3bb307 100644 --- a/css/style.css +++ b/css/style.css @@ -156,8 +156,13 @@ caption { /* Tableau du sondage */ #tableContainer { + overflow-x:hidden; + margin:5px auto; +} + +#tableContainer:focus, +#tableContainer:hover { overflow-x:auto; - margin:20px auto; } table.results { diff --git a/js/core.js b/js/core.js index f371c6a..dd4a4aa 100644 --- a/js/core.js +++ b/js/core.js @@ -103,7 +103,7 @@ $(document).ready(function() { // HTML code of the new hour var new_hour_html = - '
'+ + '
'+ last_hour.html().replace(re_label, hour_text+' '+(hj+2)) .replace(re_id,'"d'+di+'-h'+(hj+1)+'"') .replace(/value="(.*?)"/g, 'value=""')+ @@ -405,7 +405,7 @@ $(document).ready(function() { // Vote form moving to the top or to the bottom $(window).scroll(function() { var $table_offset = $('.results thead').offset(); - if(($table_offset == undefined || $(window).scrollTop() > $table_offset.top) && ($('table.results').height() > $(window).height())) { + if(($table_offset == undefined || $(window).scrollTop() > $table_offset.top+150) && ($('table.results').height()-150 > $(window).height())) { $('#addition').before($('#vote-form')); $('#tableContainer').after($('.scroll-buttons')); } else { diff --git a/locale/de_DE/LC_MESSAGES/Studs.mo b/locale/de_DE/LC_MESSAGES/Studs.mo index 4311fa7..d225d64 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 ed73b33..2481a7f 100644 --- a/locale/de_DE/LC_MESSAGES/Studs.po +++ b/locale/de_DE/LC_MESSAGES/Studs.po @@ -301,6 +301,12 @@ msgstr "Die Wahl speichern" msgid "Addition" msgstr "Hinzufügen" +msgid "Best choice" +msgstr "Bste Wahl" + +msgid "Best choices" +msgstr "Besten Wahlen" + msgid "The best choice at this time is:" msgstr "Die beste Wahl ist derzeit:" diff --git a/locale/en_GB/LC_MESSAGES/Studs.mo b/locale/en_GB/LC_MESSAGES/Studs.mo index d4623e0..54aba04 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 e01b3ab..4510ab9 100644 --- a/locale/en_GB/LC_MESSAGES/Studs.po +++ b/locale/en_GB/LC_MESSAGES/Studs.po @@ -307,6 +307,12 @@ msgstr "Save the choices" msgid "Addition" msgstr "Addition" +msgid "Best choice" +msgstr "Best choices" + +msgid "Best choices" +msgstr "Best choices" + msgid "The best choice at this time is:" msgstr "The best choice at this time is:" diff --git a/locale/fr_FR/LC_MESSAGES/Studs.mo b/locale/fr_FR/LC_MESSAGES/Studs.mo index 006378a..dd5ee79 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 66aa4fc..62302fe 100644 --- a/locale/fr_FR/LC_MESSAGES/Studs.po +++ b/locale/fr_FR/LC_MESSAGES/Studs.po @@ -307,6 +307,12 @@ msgstr "Enregister les choix" msgid "Addition" msgstr "Somme" +msgid "Best choice" +msgstr "Meilleur choix" + +msgid "Best choices" +msgstr "Meilleurs choix" + msgid "The best choice at this time is:" msgstr "Le meilleur choix pour l'instant est :" diff --git a/studs.php b/studs.php index 9918083..6ec461a 100644 --- a/studs.php +++ b/studs.php @@ -333,11 +333,11 @@ if ($dsondage->format=="D"||$dsondage->format=="D+"||$dsondage->format=="D-") { // Current date $current = $toutsujet[$i]; - $horoCur = explode("@",$current); //horoCur[0] = date, horoCur[1] = hour - if (isset($toutsujet[$i+1])){ - $next = $toutsujet[$i+1]; - $horoNext = explode("@",$next); - } + $horoCur = explode("@",$current); //horoCur[0] = date, horoCur[1] = hour + if (isset($toutsujet[$i+1])){ + $next = $toutsujet[$i+1]; + $horoNext = explode("@",$next); + } $border[$i] = false; $radio_title[$i] = strftime($date_format['txt_short'],$horoCur[0]); @@ -645,6 +645,7 @@ echo $tr_addition.' if ($compteursujet == 1) { echo ' +

' . _("Best choice") . '

' . _("The best choice at this time is:") . '

' . $meilleursujet . ' @@ -652,6 +653,7 @@ if ($compteursujet == 1) {
'."\n"; } elseif ($compteursujet > 1) { echo ' +

' . _("Best choices") . '

' . _("The bests choices at this time are:") . '

' . $meilleursujet . '