ajout d'un bouton de validation si on a plus de 8 colonnes

This commit is contained in:
pyg77 2013-03-14 15:30:28 +01:00
parent 653301ac89
commit 6c58f774d0
2 changed files with 6 additions and 3 deletions

View File

@ -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";

View File

@ -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',