fix Issue #4: change les boutons post en get sur la page d'accueil pour permettre de faire des liens directs vers les types de sondages
This commit is contained in:
parent
51cefeb7f9
commit
5e7692f19d
@ -58,9 +58,6 @@ echo '<body>'."\n";
|
|||||||
|
|
||||||
framanav();
|
framanav();
|
||||||
|
|
||||||
//debut du formulaire
|
|
||||||
echo '<form name=formulaire action="infos_sondage.php" method="POST">'."\n";
|
|
||||||
|
|
||||||
//bandeaux de tete
|
//bandeaux de tete
|
||||||
logo();
|
logo();
|
||||||
bandeau_tete();
|
bandeau_tete();
|
||||||
@ -80,18 +77,18 @@ echo '<br>'."\n";
|
|||||||
|
|
||||||
echo '<div class="index_date">';
|
echo '<div class="index_date">';
|
||||||
echo '<div><image class="opacity" src="images/date.png" onclick="document.formulaire.date.click()"/></div>';
|
echo '<div><image class="opacity" src="images/date.png" onclick="document.formulaire.date.click()"/></div>';
|
||||||
echo '<button id="date" name="choix_sondage" value="date" type="submit" class="button orange bigrounded"/><img src="images/calendar-32.png" alt="" /><strong> '. _('Schedule an event') . '</strong></button>';
|
echo '<a href="./infos_sondage.php?choix_sondage=date" class="button orange bigrounded"/><strong><img src="images/calendar-32.png" alt="" />'
|
||||||
|
. _('Schedule an event') . '</strong></a>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div class="index_sondage">';
|
echo '<div class="index_sondage">';
|
||||||
echo '<div><image class="opacity" src="images/sondage2.png" onclick="document.formulaire.autre.click()" /></div>';
|
echo '<div><image class="opacity" src="images/sondage2.png" onclick="document.formulaire.autre.click()" /></div>';
|
||||||
echo '<button id="autre" name="choix_sondage" value="autre" type="submit" class="button blue bigrounded" /><img src="images/chart-32.png" alt="" /><strong> '. _('Make a poll') . '</strong></button>';
|
echo '<a href="./infos_sondage.php?choix_sondage=autre" class="button blue bigrounded"><strong><img src="images/chart-32.png" alt="" />'. _('Make a poll') . '</strong></a>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
echo '<div style="clear:both;"></div>'."\n";
|
echo '<div style="clear:both;"></div>'."\n";
|
||||||
echo '</div>'."\n";
|
echo '</div>'."\n";
|
||||||
echo '</form>'."\n";
|
|
||||||
//bandeau de pied
|
//bandeau de pied
|
||||||
//sur_bandeau_pied();
|
//sur_bandeau_pied();
|
||||||
bandeau_pied();
|
bandeau_pied();
|
||||||
|
@ -247,10 +247,10 @@ if ($_SESSION["mailsonde"]) {
|
|||||||
echo '<input type=checkbox name=mailsonde '.$cochemail.' id="mailsonde"><label for="mailsonde">'. _(" To receive an email for each new vote.") .'</label><br>'."\n";
|
echo '<input type=checkbox name=mailsonde '.$cochemail.' id="mailsonde"><label for="mailsonde">'. _(" To receive an email for each new vote.") .'</label><br>'."\n";
|
||||||
|
|
||||||
//affichage des boutons pour choisir sondage date ou autre
|
//affichage des boutons pour choisir sondage date ou autre
|
||||||
if ($_POST['choix_sondage']=='date') {
|
if ($_GET['choix_sondage'] == 'date') {
|
||||||
$choix="creation_sondage_date";
|
$choix = "creation_sondage_date";
|
||||||
} elseif ($_POST['choix_sondage']=='autre') {
|
} elseif ($_GET['choix_sondage'] == 'autre') {
|
||||||
$choix="creation_sondage_autre";
|
$choix = "creation_sondage_autre";
|
||||||
}
|
}
|
||||||
echo '<input type="hidden" name="choix_sondage" value="'. $choix_sondage .'"/>';
|
echo '<input type="hidden" name="choix_sondage" value="'. $choix_sondage .'"/>';
|
||||||
echo '<br><button name="poursuivre" value="'. $choix .'" type="submit" class="button green poursuivre"><strong>'. _('Next') . '</strong> </button>';
|
echo '<br><button name="poursuivre" value="'. $choix .'" type="submit" class="button green poursuivre"><strong>'. _('Next') . '</strong> </button>';
|
||||||
|
Loading…
Reference in New Issue
Block a user