From 6c58f774d07ff078a1a95e92b77cf1ca141e2019 Mon Sep 17 00:00:00 2001 From: pyg77 <pyg@framasoft.net> Date: Thu, 14 Mar 2013 15:30:28 +0100 Subject: [PATCH] ajout d'un bouton de validation si on a plus de 8 colonnes --- studs.php | 7 +++++-- variables.php.template | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/studs.php b/studs.php index deba752b..12aa4e21 100644 --- a/studs.php +++ b/studs.php @@ -535,7 +535,10 @@ echo '</tbody>'."\n".'<tfoot>'."\n"; // Affichage des différentes sommes des colonnes existantes echo '<tr>'."\n"; -echo '<td align="right">'. _("Addition") .'</td>'."\n"; +echo '<td align="right">'; +// si on a plus de 8 colonnes, on affiche un second bouton "valider mes choix" +echo ($nbcolonnes>8) ?'<input type="button" name="boutonp" value="Valider mes choix" class="btn btn-success btn-mini" style="margin-right:50px">' : ""; +echo _("Addition") .'</td>'."\n"; for ($i=0; $i < $nbcolonnes; $i++) { if (isset($somme[$i]) === true) { @@ -646,7 +649,7 @@ echo _("Name") .' : '; echo '<input type="text" name="commentuser" maxlength="64" value="'.$nom.'" /><br>'."\n"; echo '<textarea name="comment" rows="2" cols="40"></textarea>'."\n"; -echo '<input type="image" name="ajoutcomment" value="Ajouter un commentaire" src="images/accept.png" alt="Valider"><br>'."\n"; +echo '<input type="button" name="ajoutcomment" value="Ajouter un commentaire" class="btn btn-success" alt="Valider"><br>'."\n"; echo '</form>'."\n"; // Focus javascript sur la case de texte du formulaire echo '<script type="text/javascript">'."\n" . 'document.formulaire.commentuser.focus();'."\n" . '</script>'."\n"; diff --git a/variables.php.template b/variables.php.template index 136d606c..c48cc475 100644 --- a/variables.php.template +++ b/variables.php.template @@ -89,7 +89,7 @@ if (@file_exists('variables.local.php')) { } // Studs version -const STUDS_VERSION = 0.6.6; +const STUDS_VERSION = 0.7; // Do not edit the following $ALLOWED_LANGUAGES = array('fr_FR' => 'french', -- GitLab