Skip to content

Commit

Permalink
NEW Forms are using the tab look, even in creation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aspangaro committed May 20, 2015
1 parent f0cfa34 commit e23459d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
7 changes: 6 additions & 1 deletion htdocs/comm/action/card.php
Expand Up @@ -6,6 +6,7 @@
* Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2014 Cedric GROSS <c.gross@kreiz-it.fr>
* Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -609,6 +610,8 @@ function setdatefields()
if (GETPOST("actioncode") == 'AC_RDV') print_fiche_titre($langs->trans("AddActionRendezVous"));
else print_fiche_titre($langs->trans("AddAnAction"));

dol_fiche_head();

print '<table class="border" width="100%">';

// Type of event
Expand Down Expand Up @@ -784,7 +787,9 @@ function setdatefields()

print '</table>';

print '<br><div class="center">';
dol_fiche_end();

print '<div class="center">';
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
print '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
Expand Down
11 changes: 8 additions & 3 deletions htdocs/compta/paiement/cheque/card.php
Expand Up @@ -4,6 +4,7 @@
* Copyright (C) 2009-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -347,7 +348,9 @@

print '<form class="nocellnopadd" action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="action" value="new">';
//print '<fieldset><legend>aaa</legend>';

dol_fiche_head();

print '<table class="border" width="100%">';
//print '<tr><td width="30%">'.$langs->trans('Date').'</td><td width="70%">'.dol_print_date($now,'day').'</td></tr>';
// Filter
Expand All @@ -358,6 +361,9 @@
$form->select_comptes($filteraccountid,'accountid',0,'courant <> 2',1);
print '</td></tr>';
print '</table>';

dol_fiche_end();

print '<div class="center">';
print '<input type="submit" class="button" name="filter" value="'.dol_escape_htmltag($langs->trans("ToFilter")).'">';
if ($filterdate || $filteraccountid > 0)
Expand All @@ -366,8 +372,7 @@
print '<input type="submit" class="button" name="removefilter" value="'.dol_escape_htmltag($langs->trans("RemoveFilter")).'">';
}
print '</div>';
//print '</fieldset>';
print '</form>';
print '</form>';
print '<br>';

$sql = "SELECT ba.rowid as bid, b.datec as datec, b.dateo as date, b.rowid as chqid, ";
Expand Down
6 changes: 5 additions & 1 deletion htdocs/ecm/docdir.php
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2008-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2008-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -20,7 +21,6 @@
* \file htdocs/ecm/docdir.php
* \ingroup ecm
* \brief Main page for ECM section area
* \author Laurent Destailleur
*/

require '../main.inc.php';
Expand Down Expand Up @@ -154,6 +154,8 @@

$title=$langs->trans("ECMNewSection");
print_fiche_titre($title);

dol_fiche_head();

print '<table class="border" width="100%">';

Expand All @@ -174,6 +176,8 @@
print '</td></tr>'."\n";

print '</table><br>';

dol_fiche_end();

print '<div class="center">';
print '<input type="submit" class="button" name="create" value="'.$langs->trans("Create").'">';
Expand Down
5 changes: 5 additions & 0 deletions htdocs/opensurvey/wizard/create_survey.php
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2013-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -135,6 +136,8 @@
//debut du formulaire
print '<form name="formulaire" action="" method="POST">'."\n";

dol_fiche_head();

//Affichage des différents champs textes a remplir
print '<table class="border" width="100%">'."\n";

Expand All @@ -158,6 +161,8 @@
print '</tr>'."\n";
print '</table>'."\n";

dol_fiche_end();

//focus javascript sur le premier champ
print '<script type="text/javascript">'."\n";
print 'document.formulaire.titre.focus();'."\n";
Expand Down

0 comments on commit e23459d

Please sign in to comment.