Look: Uniformize pages look

This commit is contained in:
Laurent Destailleur 2009-03-02 19:07:12 +00:00
parent 61e2282cb1
commit 3dadf24d10
15 changed files with 180 additions and 178 deletions

View File

@ -710,7 +710,7 @@ if ($action == 'create')
$htmls = new Form($db); $htmls = new Form($db);
$adht = new AdherentType($db); $adht = new AdherentType($db);
print_titre($langs->trans("NewMember")); print_fiche_titre($langs->trans("NewMember"));
print '<form name="add" action="fiche.php" method="post" enctype="multipart/form-data">'; print '<form name="add" action="fiche.php" method="post" enctype="multipart/form-data">';
print '<input type="hidden" name="action" value="add">'; print '<input type="hidden" name="action" value="add">';

View File

@ -95,8 +95,8 @@ if ($_POST["action"] == 'update' && $user->rights->categorie->creer)
llxHeader("","",$langs->trans("Categories")); llxHeader("","",$langs->trans("Categories"));
print_titre($langs->trans("ModifCat")); print_fiche_titre($langs->trans("ModifCat"));
print "<br>";
if ($mesg) if ($mesg)
{ {

View File

@ -814,7 +814,7 @@ $formorder = new FormOrder($db);
*********************************************************************/ *********************************************************************/
if ($_GET['action'] == 'create' && $user->rights->commande->creer) if ($_GET['action'] == 'create' && $user->rights->commande->creer)
{ {
print_titre($langs->trans('CreateOrder')); print_fiche_titre($langs->trans('CreateOrder'));
if ($mesg) print $mesg.'<br>'; if ($mesg) print $mesg.'<br>';

View File

@ -21,24 +21,22 @@
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
/* // Security check
* Sécurité accés
*/
if (!$user->admin && $user->societe_id > 0) if (!$user->admin && $user->societe_id > 0)
accessforbidden(); accessforbidden();
/*
* View
*/
llxHeader(); llxHeader();
print_titre("Paiements"); print_fiche_titre("Payments");
/*
*
*
*/
$db->close(); $db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>"); llxFooter('$Date$ - $Revision$');
?> ?>

View File

@ -365,7 +365,7 @@ llxHeader('','','');
// Mode creation // Mode creation
if ($_GET['action'] == 'create') if ($_GET['action'] == 'create')
{ {
print_titre($langs->trans('NewBill')); print_fiche_titre($langs->trans('NewBill'));
if ($mesg) { print $mesg.'<br>'; } if ($mesg) { print $mesg.'<br>'; }
@ -471,7 +471,7 @@ else
if ($_GET['action'] == 'edit') if ($_GET['action'] == 'edit')
{ {
print_titre($langs->trans('SupplierInvoice')); print_fiche_titre($langs->trans('SupplierInvoice'));
print '<form name="update" action="fiche.php?facid='.$fac->id.'" method="post">'; print '<form name="update" action="fiche.php?facid='.$fac->id.'" method="post">';
print '<input type="hidden" name="action" value="update">'; print '<input type="hidden" name="action" value="update">';

View File

@ -39,7 +39,7 @@ if (!$user->rights->produit->lire) accessforbidden();
llxHeader("","",$langs->trans("ProductsAndServices")); llxHeader("","",$langs->trans("ProductsAndServices"));
print_titre($langs->trans("ProductsAndServicesArea")); print_fiche_titre($langs->trans("ProductsAndServicesArea"));
print '<table border="0" width="100%">'; print '<table border="0" width="100%">';

View File

@ -175,7 +175,7 @@ $formfile = new FormFile($db);
if ($_GET["action"] == 'create') if ($_GET["action"] == 'create')
{ {
print_titre($langs->trans("CreateADeliveryOrder")); print_fiche_titre($langs->trans("CreateADeliveryOrder"));
if ($mesg) if ($mesg)
{ {

View File

@ -345,7 +345,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
$soc->pays=$obj->libelle; $soc->pays=$obj->libelle;
} }
print_titre($langs->trans("NewCompany")); print_fiche_titre($langs->trans("NewCompany"));
if ($conf->use_javascript_ajax) if ($conf->use_javascript_ajax)
{ {

View File

@ -401,7 +401,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
print_titre($langs->trans("NewUser")); print_fiche_titre($langs->trans("NewUser"));
print "<br>"; print "<br>";
print $langs->trans("CreateInternalUserDesc"); print $langs->trans("CreateInternalUserDesc");

View File

@ -162,7 +162,7 @@ llxHeader('',$langs->trans("GroupCard"));
if ($action == 'create') if ($action == 'create')
{ {
print_titre($langs->trans("NewGroup")); print_fiche_titre($langs->trans("NewGroup"));
print "<br>"; print "<br>";
if ($message) { print $message."<br>"; } if ($message) { print $message."<br>"; }

View File

@ -46,9 +46,13 @@ if (! $sortfield) $sortfield="g.nom";
if (! $sortorder) $sortorder="ASC"; if (! $sortorder) $sortorder="ASC";
/*
* View
*/
llxHeader(); llxHeader();
print_titre($langs->trans("ListOfGroups")); print_fiche_titre($langs->trans("ListOfGroups"));
$sql = "SELECT g.rowid, g.nom, ".$db->pdate("g.datec")." as datec"; $sql = "SELECT g.rowid, g.nom, ".$db->pdate("g.datec")." as datec";
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g"; $sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g";

View File

@ -52,7 +52,7 @@ $userstatic=new User($db);
llxHeader(); llxHeader();
print_titre($langs->trans("ListOfUsers")); print_fiche_titre($langs->trans("ListOfUsers"));
$sql = "SELECT u.rowid, u.name, u.firstname, u.admin, u.fk_societe, u.login,"; $sql = "SELECT u.rowid, u.name, u.firstname, u.admin, u.fk_societe, u.login,";
$sql.= " ".$db->pdate("u.datec")." as datec,"; $sql.= " ".$db->pdate("u.datec")." as datec,";