From 5d9b33d6ab71f8db9074106cc550817c812e2bbf Mon Sep 17 00:00:00 2001 From: FramaJosephK Date: Wed, 22 Oct 2014 15:42:35 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20#9,=20#10,=20bug=20r=C3=A9cap=20liste=20d?= =?UTF-8?q?es=20choix,=20=C2=AB=20email=20adress=20=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminstuds.php | 4 ++-- choix_autre.php | 4 ++-- js/core.js | 2 ++ locale/fr_FR/LC_MESSAGES/Studs.mo | Bin 18570 -> 18573 bytes locale/fr_FR/LC_MESSAGES/Studs.po | 4 ++-- studs.php | 33 ++++++++++++++---------------- 6 files changed, 23 insertions(+), 24 deletions(-) diff --git a/adminstuds.php b/adminstuds.php index af2cbaf..9904f78 100644 --- a/adminstuds.php +++ b/adminstuds.php @@ -742,8 +742,8 @@ echo '
- - + +
diff --git a/choix_autre.php b/choix_autre.php index 66e8498..f854120 100644 --- a/choix_autre.php +++ b/choix_autre.php @@ -119,7 +119,7 @@ if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmp } else { // text only - $li_subject_text = stripslashes($toutsujet[$i]); + $li_subject_text = stripslashes($_SESSION['choices'][$i]); $li_subject_html = $li_subject_text; } @@ -188,7 +188,7 @@ if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmp
-   +  
'."\n"; } diff --git a/js/core.js b/js/core.js index 0472981..5a01e8f 100644 --- a/js/core.js +++ b/js/core.js @@ -284,6 +284,7 @@ $(document).ready(function() { $(document).on('click', '.md-a-img', function() { $('#md-a-imgModal').modal('show'); $('#md-a-imgModal .btn-primary').attr('value',$(this).prev().attr('id')); + $('#md-a-imgModalLabel').text($(this).attr('title')); }); $('#md-a-imgModal .btn-primary').on('click', function() { if($('#md-img').val()!='' && $('#md-a').val()!='') { @@ -297,6 +298,7 @@ $(document).ready(function() { } $('#md-a-imgModal').modal('hide'); $('#md-img').val(''); $('#md-a').val('');$('#md-text').val(''); + SubmitChoicesAvalaible(); }); diff --git a/locale/fr_FR/LC_MESSAGES/Studs.mo b/locale/fr_FR/LC_MESSAGES/Studs.mo index 680e114fca5f185b4b3c1d8f3b822000ec09941d..b7274c3770d1faa475eab51b675cb0908c4bc7df 100644 GIT binary patch delta 3145 zcmY+_dr*}{7{~EFax>&Acmag~xq3OGsfdVRYI#A1)Vz#Ep)iW!rOeXNJc_0zn&?T* zMrESO$}}^SQkl%kOHGdHG$fg$)=Wv3q!^~oVBeqb_D9Z{^VwbBclX(6_c^TD;99rA zRe96X#TZi+VN47j#tztEZNf16ev!t|G#xP%yJH#-!elH)f2=^wvk}|kN9czKQSTkW zC_If_u`$wk?l=5dHJ*WPsDMVGUMNC7=2^aca5W}i1-8QvQO_SjJztN$_$#u8xr%&< z+?Wu7+DMY^XLj^B5sqXai2uk(O*j>U@kQigUgk?X+=k)!HtPQmpmzKvmf~eB!!ezV zc@RHEy>||m;zgW^g`J%ZpYYJo!j0AzRKz~yNjr(cr!f|_fCsCv5tZUsqn+nBB5RxX zurD4#W#k41U>kO&`2tay3AKGsA`PV^4VBVt)Qh9+15>aK{X$%ZMRxpW)WpA`-fuz$ z;KRYHAB}RI1BR8C{I2Sb-$Z>_=_zEGl!?63M?BF7mB2jzk|!Kt3j!uilu4 znYaXpVl8Uoe{cfE6XhU$0hQ`~sChrb2k;DP;qy2SZ(#+nhg)oaJKl8}Q;mlh-{E2P6*Q*w zFowC!1ymXO^>lU;j+!tQ1F*L>!;a^m0w_R^*%YHvzX~Z3vl*3%8dM<1F%G{)&FlG- z##1y}(H{%BiTVL5K?SlHRZgp|Rj7qNLEV`KRA5(;V>QjlshG}gr#}R_*Je6u!E)4l zUc6ub@6b?c4`Lr|LPZ+S!E2%v)ESON1vm*cQ6Va@xu}I#V;b&8WwIXiek*Fh#B^t4 z15ihkhi=vXV>GnWWvDYb3#H>0iM}yn_#8D7Df7$DuMc6P3c}QI~5G zs#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0#{pQf4y~mHHawf*2c>iT$WRj$#Ua ziJI5COk)O(4(x=}IEgy#vrvI7MO~*_*EdiL9Ymd(v#7vYk!qOhNHtA-j$;vWu1y8r zTM+f$2E2FwchOL4Kg0*{H&mp_6kZdiqiQ$~6<`@^qG_nWs!SLjg^nP<&gL8{<+qRvVIqiH3-m`HmY{ZA zikk0f)b*=#`wgghPht$~n`Rn%@gj0C%`M!7Jq8=I9S@)m=fqqm1M_en{e`$3Q}dji z?mz{03{}GKQHS*!szgzw`5o+zi?Io8SfJ;z2oq&|t%*Nrk4Yh&uI2Z4rZbe0j^Mkhrb!)634W*_9Rok$K zsTW4$L~O=gm_C#r6Fh;Mc-k<28*niym2IeN`#Y*Mcd;COMDrq6;z+!JwV1)d^0U6# zLqpfC5jD|q?1QIJJG<^0F@iGCPeuhi8+BV=LuIfLm62~zx9Jjw;%($7#r)ygk0>6a zUyf6B|KFrh&A?rphk;Sfe-39*6Z#%?u2pZ;Db7U&Sb~#q1{PotIoReZPR9(Q)rM+N zwSN^ua1&0(E!dZ`m}@jrF@B7*Pys5%<57of4u;_is1#dn{}p?Scb_N89_u^pTgCW) z|LhF^2v09N;9u`C_MiU4o|o-IQA0f|?e?h6p54K^=%mn?nUxEx7A;Dtnm;p8ol;d9 zc;4RLEi?FYw}dX<|NqIpnKUR^nEZ8=JuoNJ_U5DoC+B#4_UfWuc6rf|U_;R*@4qW( BY_$LY diff --git a/locale/fr_FR/LC_MESSAGES/Studs.po b/locale/fr_FR/LC_MESSAGES/Studs.po index 234a3bc..c7eb8de 100644 --- a/locale/fr_FR/LC_MESSAGES/Studs.po +++ b/locale/fr_FR/LC_MESSAGES/Studs.po @@ -196,10 +196,10 @@ msgstr "Adresse email" msgid "Edit the email adress" msgstr "Modifier l'adresse email" -msgid "Save the adress email" +msgid "Save the email address " msgstr "Enregistrer l'adresse email" -msgid "Cancel the adress email edit" +msgid "Cancel the email address edit" msgstr "Annuler le changement d'adresse email" msgid "Edit the description" diff --git a/studs.php b/studs.php index f4aa4da..c1d3459 100644 --- a/studs.php +++ b/studs.php @@ -47,13 +47,21 @@ if(Utils::issetAndNoEmpty('sondage') === true) { $numsondage = $_SESSION["numsondage"]; } -if ($numsondage !== false) { - $dsondage = Utils::get_sondage_from_id($numsondage); - if($dsondage === false) { - $err |= NO_POLL; - } -} else { - $err |= NO_POLL_ID; +$dsondage = ($numsondage != false) ? Utils::get_sondage_from_id($numsondage) : false; +if (!$dsondage || $dsondage->id_sondage == ''){ + Utils::print_header( _("Error!")); + + bandeau_titre(_("Error!")); + + echo ' +
+

' . _("This poll doesn't exist !") . '

+

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

+
'."\n"; + + bandeau_pied(); + + die(); } //output a CSV and die() @@ -199,17 +207,6 @@ if($err != 0) { echo ''; - if(Utils::is_error(NO_POLL_ID) || Utils::is_error(NO_POLL)) { - echo ' -
-

' . _("This poll doesn't exist !") . '

-

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

-
'."\n"; - - bandeau_pied(); - - die(); - } } else { Utils::print_header(_('Poll').' - '.$dsondage->titre); bandeau_titre(_("Make your polls"));