2
0
forked from Wavyzz/dolibarr

Look: A lot of enhancements in Dolibarr skins

This commit is contained in:
Laurent Destailleur
2008-11-16 00:06:26 +00:00
parent b6a95136cd
commit 1c58b61eba
18 changed files with 197 additions and 158 deletions

View File

@@ -18,10 +18,10 @@
*/ */
/** /**
\file htdocs/comm/prospect/prospects.php * \file htdocs/comm/prospect/prospects.php
\ingroup prospect * \ingroup prospect
\brief Page de la liste des prospects * \brief Page de la liste des prospects
\version $Id$ * \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@@ -354,9 +354,9 @@ if ($resql)
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
print '<td class="liste_titre">'; print '<td class="liste_titre">';
print '<input type="text" class="flat" name="search_nom" value="'.$_GET["search_nom"].'">'; print '<input type="text" class="flat" name="search_nom" size="10" value="'.$_GET["search_nom"].'">';
print '</td><td class="liste_titre">'; print '</td><td class="liste_titre">';
print '<input type="text" class="flat" name="search_ville" size="12" value="'.$_GET["search_ville"].'">'; print '<input type="text" class="flat" name="search_ville" size="8" value="'.$_GET["search_ville"].'">';
print '</td>'; print '</td>';
print '<td class="liste_titre">'; print '<td class="liste_titre">';
print '&nbsp;'; print '&nbsp;';
@@ -399,8 +399,8 @@ if ($resql)
print '</td>'; print '</td>';
// Print the search button // Print the search button
print '<td class="liste_titre" colspan="3" align="right">'; print '<td colspan="3" class="liste_titre" align="right">';
print '<input type="image" class="liste_titre" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" alt="'.$langs->trans("Search").'">'; print '<input class="liste_titre" type="image" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/search.png" alt="'.$langs->trans("Search").'">';
print '</td>'; print '</td>';
print "</tr>\n"; print "</tr>\n";
@@ -432,7 +432,7 @@ if ($resql)
print $prospectstatic->LibLevel($obj->fk_prospectlevel); print $prospectstatic->LibLevel($obj->fk_prospectlevel);
print "</td>"; print "</td>";
// Statut // Statut
print "<td align=\"center\">"; print '<td align="center" nowrap="nowrap">';
print $prospectstatic->LibStatut($obj->fk_stcomm,2); print $prospectstatic->LibStatut($obj->fk_stcomm,2);
print "</td>"; print "</td>";

View File

@@ -158,7 +158,7 @@ if ($conf->fournisseur->enabled)
{ {
$var=!$var; $var=!$var;
$obj = $db->fetch_object($resql); $obj = $db->fetch_object($resql);
print '<tr $bc[$var]><td nowrap="nowrap">'; print '<tr '.$bc[$var].'><td nowrap="nowrap">';
$commandestatic->id=$obj->rowid; $commandestatic->id=$obj->rowid;
$commandestatic->ref=$obj->ref; $commandestatic->ref=$obj->ref;
print $commandestatic->getNomUrl(1,'',16); print $commandestatic->getNomUrl(1,'',16);

View File

@@ -24,8 +24,7 @@
\remarks La construction d'un gestionnaire pour le menu du haut est simple: \remarks La construction d'un gestionnaire pour le menu du haut est simple:
\remarks Toutes les entrees de menu a faire apparaitre dans la barre du haut \remarks Toutes les entrees de menu a faire apparaitre dans la barre du haut
\remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a> \remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a>
\remarks On peut eventuellement ajouter l'attribut id="sel" dans la balise <a> \remarks ou si menu selectionne <a class="tmenusel" href="...?mainmenu=...">...</a>
\remarks quand il s'agit de l'entree du menu qui est selectionnee.
*/ */
@@ -87,10 +86,11 @@ class MenuTop {
else $url.='&'; else $url.='&';
$url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu='; $url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu=';
$url.="&idmenu=".$tabMenu[$i]['rowid']; $url.="&idmenu=".$tabMenu[$i]['rowid'];
if (! empty($_GET["idmenu"]) && $tabMenu[$i]['rowid'] == $_GET["idmenu"]) $class='class="tmenusel"';
else $class='class="tmenu"';
// Define idsel // Define idsel
if (! empty($_GET["idmenu"]) && $tabMenu[$i]['rowid'] == $_GET["idmenu"]) $idsel='id="sel" '; $idsel='';
else $idsel=''; print '<li><a '.$class.' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>'.$tabMenu[$i]['titre'].'</a></li>';
print '<li><a '.$tabMenu[$i]['class'].' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>'.$tabMenu[$i]['titre'].'</a></li>';
} }
else else
{ {

View File

@@ -24,8 +24,7 @@
\remarks La construction d'un gestionnaire pour le menu du haut est simple: \remarks La construction d'un gestionnaire pour le menu du haut est simple:
\remarks Toutes les entrees de menu a faire apparaitre dans la barre du haut \remarks Toutes les entrees de menu a faire apparaitre dans la barre du haut
\remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a> \remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a>
\remarks On peut eventuellement ajouter l'attribut id="sel" dans la balise <a> \remarks ou si menu selectionne <a class="tmenusel" href="...?mainmenu=...">...</a>
\remarks quand il s'agit de l'entree du menu qui est selectionnee.
*/ */
@@ -86,10 +85,11 @@ class MenuTop {
else $url.='&'; else $url.='&';
$url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu='; $url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu=';
$url.="&idmenu=".$tabMenu[$i]['rowid']; $url.="&idmenu=".$tabMenu[$i]['rowid'];
if (! empty($_GET["idmenu"]) && $tabMenu[$i]['rowid'] == $_GET["idmenu"]) $class='class="tmenusel"';
else $class='class="tmenu"';
// Define idsel // Define idsel
if (! empty($_GET["idmenu"]) && $tabMenu[$i]['rowid'] == $_GET["idmenu"]) $idsel='id="sel" '; $idsel='';
else $idsel=''; print '<li><a '.$class.' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$tabMenu[$i]['atarget']":"").'>'.$tabMenu[$i]['titre'].'</a></li>';
print '<li><a '.$tabMenu[$i]['class'].' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$tabMenu[$i]['atarget']":"").'>'.$tabMenu[$i]['titre'].'</a></li>';
} }
else else
{ {

View File

@@ -25,16 +25,14 @@
\remarks La construction d'un gestionnaire pour le menu du haut est simple: \remarks La construction d'un gestionnaire pour le menu du haut est simple:
\remarks Toutes les entrees de menu a faire apparaitre dans la barre du haut \remarks Toutes les entrees de menu a faire apparaitre dans la barre du haut
\remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a> \remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a>
\remarks On peut eventuellement ajouter l'attribut id="sel" dans la balise <a> \remarks ou si menu selectionne <a class="tmenusel" href="...?mainmenu=...">...</a>
\remarks quand il s'agit de l'entree du menu qui est selectionnee.
*/ */
/** /**
\class MenuTop * \class MenuTop
\brief Classe permettant la gestion du menu du haut Eldy * \brief Classe permettant la gestion du menu du haut Eldy
*/ */
class MenuTop { class MenuTop {
var $require_left=array("eldy_backoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier var $require_left=array("eldy_backoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier
@@ -74,7 +72,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -93,7 +91,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "companies") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "companies")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -116,7 +114,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "products") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "products")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -142,7 +140,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -171,7 +169,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "commercial") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "commercial")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -193,7 +191,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "accountancy") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "accountancy")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -215,7 +213,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "project") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "project")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -237,7 +235,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "tools") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "tools")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -258,7 +256,7 @@ class MenuTop {
$class=""; $class="";
if (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"])) if (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"]))
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -275,7 +273,7 @@ class MenuTop {
$class=""; $class="";
if (ereg("^".DOL_URL_ROOT."\/energie\/",$_SERVER["PHP_SELF"])) if (ereg("^".DOL_URL_ROOT."\/energie\/",$_SERVER["PHP_SELF"]))
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -293,7 +291,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "shop") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "shop")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -311,7 +309,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "shop") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "shop")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -329,7 +327,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -360,10 +358,11 @@ class MenuTop {
else $url.='&'; else $url.='&';
$url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu='; $url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu=';
$url.="&idmenu=".$tabMenu[$i]['rowid']; $url.="&idmenu=".$tabMenu[$i]['rowid'];
if (! empty($_SESSION['idmenu']) && $tabMenu[$i]['rowid'] == $_SESSION['idmenu']) $class='class="tmenusel"';
else $class='class="tmenu"';
// Define idsel // Define idsel
if (! empty($_SESSION['idmenu']) && $tabMenu[$i]['rowid'] == $_SESSION['idmenu']) $idsel='id="sel" '; $idsel='';
else $idsel=''; print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>';
print '<td class="tmenu"><a class="tmenu" '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>';
print $tabMenu[$i]['titre']; print $tabMenu[$i]['titre'];
print '</a></td>'; print '</a></td>';
} }

View File

@@ -22,18 +22,16 @@
\version $Id$ \version $Id$
\remarks La construction d'un gestionnaire pour le menu du haut est simple: \remarks La construction d'un gestionnaire pour le menu du haut est simple:
\remarks Toutes les ente<EFBFBD>es de menu a faire apparaitre dans la barre du haut \remarks Toutes les entetes de menu a faire apparaitre dans la barre du haut
\remarks doivent etre affice<EFBFBD>es par <a class="tmenu" href="...?mainmenu=...">...</a> \remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a>
\remarks On peut eventuellement ajouter l'attribut id="sel" dans la balise <a> \remarks ou si menu selectionne <a class="tmenusel" href="...?mainmenu=...">...</a>
\remarks quand il s'agit de l'entree du menu qui est selectionnee.
*/ */
/** /**
\class MenuTop * \class MenuTop
\brief Classe permettant la gestion du menu du haut Eldy * \brief Classe permettant la gestion du menu du haut Eldy
*/ */
class MenuTop { class MenuTop {
var $require_left=array("eldy_frontoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier var $require_left=array("eldy_frontoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier
@@ -73,7 +71,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -92,7 +90,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "companies") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "companies")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -114,7 +112,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "products") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "products")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -142,7 +140,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -170,7 +168,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "commercial") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "commercial")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -192,7 +190,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "accountancy") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "accountancy")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -214,7 +212,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "project") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "project")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class = 'class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -238,7 +236,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "tools") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "tools")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class = 'class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -259,7 +257,7 @@ class MenuTop {
$class=""; $class="";
if (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"])) if (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"]))
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -276,7 +274,7 @@ class MenuTop {
$class=""; $class="";
if (ereg("^".DOL_URL_ROOT."\/energie\/",$_SERVER["PHP_SELF"])) if (ereg("^".DOL_URL_ROOT."\/energie\/",$_SERVER["PHP_SELF"]))
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -294,7 +292,7 @@ class MenuTop {
$class=""; $class="";
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members") if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members")
{ {
$class='class="tmenu" id="sel"'; $_SESSION['idmenu']=''; $class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
} }
else else
{ {
@@ -324,9 +322,9 @@ class MenuTop {
else $url.='&'; else $url.='&';
$url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu='; $url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu=';
$url.="&idmenu=".$tabMenu[$i]['rowid']; $url.="&idmenu=".$tabMenu[$i]['rowid'];
// Define idsel
if (! empty($_GET["idmenu"]) && $tabMenu[$i]['rowid'] == $_GET["idmenu"]) $idsel='id="sel" '; if (! empty($_GET["idmenu"]) && $tabMenu[$i]['rowid'] == $_GET["idmenu"]) $idsel='id="sel" ';
else $idsel=''; // Define idsel
$idsel='';
print '<td class="tmenu"><a class="tmenu" '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>'.$tabMenu[$i]['titre'].'</a></td>'; print '<td class="tmenu"><a class="tmenu" '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>'.$tabMenu[$i]['titre'].'</a></td>';
} }
else else

View File

@@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2006-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@@ -14,19 +14,17 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/includes/menus/barre_top/empty.php * \file htdocs/includes/menus/barre_top/empty.php
\brief This is an example of an empty top menu handler * \brief This is an example of an empty top menu handler
\version $Revision$ * \version $Id$
*/ */
/** /**
\class MenuTop * \class MenuTop
\brief Class for top empty menu * \brief Class for top empty menu
*/ */
class MenuTop { class MenuTop {

View File

@@ -19,14 +19,13 @@
/** /**
\file htdocs/includes/menus/barre_top/rodolphe.php \file htdocs/includes/menus/barre_top/rodolphe.php
\brief Gestionnaire par d<>faut du menu du haut \brief Gestionnaire menu haut Rodolphe
\version $Id$ \version $Id$
\remarks La construction d'un gestionnaire pour le menu du haut est simple: \remarks La construction d'un gestionnaire pour le menu du haut est simple:
\remarks Toutes les entrees de menu e faire apparaitre dans la barre du haut \remarks Toutes les entrees de menu e faire apparaitre dans la barre du haut
\remarks Toutes les entetes de menu a faire apparaitre dans la barre du haut
\remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a> \remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a>
\remarks On peut eventuellement ajouter l'attribut id="sel" dans la balise <a>
\remarks quand il s'agit de l'entree du menu qui est selectionnee.
*/ */

View File

@@ -1806,7 +1806,7 @@ function print_liste_field_titre($name, $file, $field, $begin="", $options="", $
global $conf; global $conf;
//print "$name, $file, $field, $begin, $options, $td, $sortfield, $sortorder<br>\n"; //print "$name, $file, $field, $begin, $options, $td, $sortfield, $sortorder<br>\n";
// Le champ de tri est mis en <EFBFBD>vidence. // Le champ de tri est mis en evidence.
// Exemple si (sortfield,field)=("nom","xxx.nom") ou (sortfield,field)=("nom","nom") // Exemple si (sortfield,field)=("nom","xxx.nom") ou (sortfield,field)=("nom","nom")
if ($sortfield == $field || $sortfield == ereg_replace("^[^\.]+\.","",$field)) if ($sortfield == $field || $sortfield == ereg_replace("^[^\.]+\.","",$field))
{ {

View File

@@ -57,7 +57,6 @@ a:active {font-weight: bold; color: #000000; text-decoration: none; }
a:hover {font-weight: bold; color: #000000; text-decoration: none; } a:hover {font-weight: bold; color: #000000; text-decoration: none; }
input input
{ {
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
@@ -65,14 +64,12 @@ input
} }
input.flat input.flat
{ {
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
textarea { textarea {
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
@@ -80,7 +77,6 @@ textarea {
} }
textarea.flat textarea.flat
{ {
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
@@ -88,6 +84,8 @@ textarea.flat
} }
select.flat select.flat
{ {
font-size: 12px;
font-family: helvetica, verdana, arial, sans-serif;
font-weight: normal; font-weight: normal;
border: 1px solid #ACBCBB; border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
@@ -156,7 +154,7 @@ div.tmenu
} }
div.tmenu .tmenudisabled div.tmenu .tmenudisabled
{ {
color: #757575; color: #9FCED9;
font-size: 12px; font-size: 12px;
padding-left: 6px; padding-left: 6px;
padding-right: 6px; padding-right: 6px;
@@ -174,8 +172,8 @@ a.tmenu:link
{ {
color:#FFFFFF; color:#FFFFFF;
text-decoration:none; text-decoration:none;
padding-left:10px; padding-left:5px;
padding-right:10px; padding-right:5px;
padding-top: 2px; padding-top: 2px;
height: 21px; height: 21px;
font-weight: normal; font-weight: normal;
@@ -185,19 +183,19 @@ a.tmenu:visited
{ {
color:#FFFFFF; color:#FFFFFF;
text-decoration:none; text-decoration:none;
padding-left:10px; padding-left:5px;
padding-right:10px; padding-right:5px;
padding-top: 2px; padding-top: 2px;
height: 21px; height: 21px;
font-weight: normal; font-weight: normal;
} }
a.tmenu#sel a.tmenusel
{ {
color:#234046; color:#234046;
text-decoration:none; text-decoration:none;
padding-left:10px; padding-left:5px;
padding-right:10px; padding-right:5px;
padding-top: 2px; padding-top: 2px;
height: 21px; height: 21px;
font-weight: normal; font-weight: normal;
@@ -207,8 +205,8 @@ a.tmenu:hover
{ {
color:#234046; color:#234046;
text-decoration:none; text-decoration:none;
padding-left:10px; padding-left:5px;
padding-right:10px; padding-right:5px;
padding-top: 2px; padding-top: 2px;
height: 21px; height: 21px;
font-weight: normal; font-weight: normal;
@@ -217,10 +215,11 @@ a.tmenu:hover
a.tmenu:active a.tmenu:active
{ {
color:#234046;
background:#4F9EC9; background:#4F9EC9;
text-decoration:none; text-decoration:none;
padding-left:10px; padding-left:5px;
padding-right:10px; padding-right:5px;
padding-top: 2px; padding-top: 2px;
height: 21px; height: 21px;
font-weight: normal; font-weight: normal;
@@ -228,7 +227,7 @@ a.tmenu:active
font.tmenudisabled font.tmenudisabled
{ {
color: #93a5aa; color: #9FCED9;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
cursor: not-allowed; cursor: not-allowed;
@@ -236,6 +235,10 @@ font.tmenudisabled
/* Pour menu TOP auguria uniquement */ /* Pour menu TOP auguria uniquement */
* html div.tmenu li a
{
width:40px;
}
div.tmenu ul { div.tmenu ul {
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@@ -250,7 +253,8 @@ div.tmenu li {
margin:0; margin:0;
padding:0; padding:0;
} }
div.tmenu li a{ div.tmenu li a
{
font-size: 13px; font-size: 13px;
color:#FFFFFF; color:#FFFFFF;
text-decoration:none; text-decoration:none;
@@ -261,18 +265,8 @@ div.tmenu li a{
display: block; display: block;
font-weight: normal; font-weight: normal;
} }
* html div.tmenu li a{
width:40px;
}
div.tmenu li a#sel
{
background:#FFFFFF;
color:#4F9EC9;
font-weight: normal;
}
div.tmenu li a:visited div.tmenu li a:visited
{ {
color:#FFFFFF;
font-weight: normal; font-weight: normal;
} }
div.tmenu li a:hover div.tmenu li a:hover
@@ -290,6 +284,12 @@ div.tmenu li a:link
{ {
font-weight: normal; font-weight: normal;
} }
div.tmenu li a.tmenusel
{
background:#FFFFFF;
color:#4F9EC9;
font-weight: normal;
}
@@ -331,13 +331,13 @@ a.vmenu:link { font-size:11px; text-align:left; font-weight: bold; color:
a.vmenu:visited { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 4px; } a.vmenu:visited { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 4px; }
a.vmenu:active { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 4px; } a.vmenu:active { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 4px; }
a.vmenu:hover { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 4px; } a.vmenu:hover { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 4px; }
font.vmenudisabled { font-size:11px; text-align:left; font-weight: bold; color: #757575; margin: 1px 1px 1px 4px; } font.vmenudisabled { font-size:11px; text-align:left; font-weight: bold; color: #9FCED9; margin: 1px 1px 1px 4px; }
a.vsmenu:link { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 4px; } a.vsmenu:link { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 4px; }
a.vsmenu:visited { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 4px; } a.vsmenu:visited { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 4px; }
a.vsmenu:active { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); margin: 1px 1px 1px 4px; } a.vsmenu:active { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); margin: 1px 1px 1px 4px; }
a.vsmenu:hover { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); margin: 1px 1px 1px 4px; } a.vsmenu:hover { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); margin: 1px 1px 1px 4px; }
font.vsmenudisabled { font-size:11px; text-align:left; font-weight: normal; color: #757575; margin: 1px 1px 1px 4px; } font.vsmenudisabled { font-size:11px; text-align:left; font-weight: normal; color: #9FCED9; margin: 1px 1px 1px 4px; }
a.help:link { font-size: 10px; font-weight: bold; background: #FFFFFF; border: 1px solid #8CACBB; color: #68ACCF; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } a.help:link { font-size: 10px; font-weight: bold; background: #FFFFFF; border: 1px solid #8CACBB; color: #68ACCF; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
a.help:visited { font-size: 10px; font-weight: bold; background: #FFFFFF; border: 1px solid #8CACBB; color: #68ACCF; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } a.help:visited { font-size: 10px; font-weight: bold; background: #FFFFFF; border: 1px solid #8CACBB; color: #68ACCF; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; }
@@ -754,7 +754,7 @@ white-space: nowrap;
td.liste_titre_sel td.liste_titre_sel
{ {
background: #68ACCF; background: #68ACCF;
color: #FFFFFF; color: #556262;
font-size: 12px; font-size: 12px;
font-family: arial, helvetica, verdana, sans-serif; font-family: arial, helvetica, verdana, sans-serif;
font-weight: normal; font-weight: normal;
@@ -764,8 +764,7 @@ white-space: normal;
-moz-border-radius-topright:6px; -moz-border-radius-topright:6px;
} }
input.liste_titre { input.liste_titre {
background: #7699A9; background: #68ACCF;
background-image : url(<?php echo $dolibarr_main_url_root.'/theme/auguria/img/liste_titre.png' ?>);
border: 0px; border: 0px;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1017 B

After

Width:  |  Height:  |  Size: 1017 B

View File

@@ -127,7 +127,7 @@ a.tmenu:visited
font-weight:bold; font-weight:bold;
font-size:12px; font-size:12px;
} }
a.tmenu#sel a.tmenusel
{ {
padding: 0em 1em; padding: 0em 1em;
margin: 0em 0em 1em 0em; margin: 0em 0em 1em 0em;
@@ -152,6 +152,10 @@ font.tmenudisabled
/* Pour menu TOP auguria uniquement */ /* Pour menu TOP auguria uniquement */
* html div.tmenu li a
{
width:40px;
}
div.tmenu ul { div.tmenu ul {
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@@ -178,10 +182,7 @@ div.tmenu li a{
display: block; display: block;
font-weight: normal; font-weight: normal;
} }
* html div.tmenu li a{ div.tmenu li a.tmenusel
width:40px;
}
div.tmenu li a#sel
{ {
background:#FFFFFF; background:#FFFFFF;
color:#000000; color:#000000;

View File

@@ -74,7 +74,7 @@ a.tmenu
font-size:11px; font-size:11px;
} }
a.tmenu#sel a.tmenusel
{ {
border-bottom:4px solid #9d9da1; border-bottom:4px solid #9d9da1;
color: #000000; color: #000000;
@@ -89,6 +89,10 @@ a.tmenu:hover
/* Pour menu TOP auguria uniquement */ /* Pour menu TOP auguria uniquement */
* html div.tmenu li a
{
width:40px;
}
div.tmenu ul { div.tmenu ul {
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@@ -115,10 +119,7 @@ div.tmenu li a{
display: block; display: block;
font-weight: normal; font-weight: normal;
} }
* html div.tmenu li a{ div.tmenu li a.tmenusel
width:40px;
}
div.tmenu li a#sel
{ {
background:#FFFFFF; background:#FFFFFF;
color:#000000; color:#000000;
@@ -247,6 +248,7 @@ font.vsmenudisabled
color: #A0A0A0; color: #A0A0A0;
font-weight:bold; font-weight:bold;
font-size:11px; font-size:11px;
cursor: not-allowed;
} }
@@ -294,7 +296,8 @@ table.liste td
/***** Styles par d<>faut *****/ /***** Styles par d<>faut *****/
input input
{ {
font: 12px helvetica, verdana, arial, sans-serif; font-size: 11px;
font-family: helvetica, verdana, arial, sans-serif;
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #9CACAB; border: 1px solid #9CACAB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
@@ -302,25 +305,37 @@ input
} }
input.flat input.flat
{ {
font: 12px helvetica, verdana, arial, sans-serif; font-size: 11px;
font-family: helvetica, verdana, arial, sans-serif;
background: #FDFDFD; background: #FDFDFD;
border: 1px solid #9CACAB; border: 1px solid #9CACAB;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
textarea { textarea {
font: 12px helvetica, verdana, arial, sans-serif; font-size: 11px;
font-family: helvetica, verdana, arial, sans-serif;
border: 1px solid #8C9C9B; border: 1px solid #8C9C9B;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
textarea.flat textarea.flat
{ {
font: 12px helvetica, verdana, arial, sans-serif; font-size: 11px;
font-family: helvetica, verdana, arial, sans-serif;
border: 1px solid #8C9C9B; border: 1px solid #8C9C9B;
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
select.flat
{
font-size: 11px;
font-family: helvetica, verdana, arial, sans-serif;
font-weight: normal;
border: 1px solid #ACBCBB;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.button { .button {
font-family: arial,verdana,helvetica, sans-serif; font-family: arial,verdana,helvetica, sans-serif;
font-size: 100%; font-size: 100%;

View File

@@ -214,7 +214,7 @@ a.tmenu:visited
font-family: helvetica, verdana, arial, sans-serif; font-family: helvetica, verdana, arial, sans-serif;
font-weight: normal; font-weight: normal;
} }
a.tmenu#sel a.tmenusel
{ {
color: #234046; color: #234046;
padding: 0px 5px 0px 5px; padding: 0px 5px 0px 5px;
@@ -271,6 +271,9 @@ font.tmenudisabled
/* Pour menu TOP auguria uniquement */ /* Pour menu TOP auguria uniquement */
* html div.tmenu li a{
width:40px;
}
div.tmenu ul { div.tmenu ul {
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@@ -280,51 +283,76 @@ div.tmenu ul {
div.tmenu li { div.tmenu li {
float: left; float: left;
border-right: solid 1px #7699A9; border-right: solid 1px #7699A9;
padding-left:5px;
padding-right:5px;
padding-top: 2px;
height: 18px; height: 18px;
position:relative; position:relative;
display: block; display: block;
margin:0; margin:0;
padding:0; padding:0;
font-weight: normal;
} }
div.tmenu li a{ div.tmenu li a
{
font-size: 13px; font-size: 13px;
color:#000000; color:#000000;
text-decoration:none; text-decoration:none;
padding-left:10px; padding-left:5px;
padding-right:10px; padding-right:5px;
padding-top: 2px; padding-top: 2px;
height: 18px; height: 18px;
display: block; display: block;
margin:0;
padding:0;
font-weight: normal; font-weight: normal;
} }
* html div.tmenu li a{ div.tmenu li a.tmenusel
width:40px;
}
div.tmenu li a#sel
{ {
background:#F4F4F4; background:#F4F4F4;
color:#000000; color:#000000;
padding-left:5px;
padding-right:5px;
padding-top: 2px;
height: 18px;
font-weight: normal; font-weight: normal;
} }
div.tmenu li a:visited div.tmenu li a:visited
{ {
color:#000000; color:#000000;
padding-left:5px;
padding-right:5px;
padding-top: 2px;
height: 18px;
font-weight: normal; font-weight: normal;
} }
div.tmenu li a:hover div.tmenu li a:hover
{ {
background:#F4F4F4; background:#F4F4F4;
color:#000000; color:#000000;
padding-left:5px;
padding-right:5px;
padding-top: 2px;
height: 18px;
font-weight: normal; font-weight: normal;
border-bottom: 0px;
} }
div.tmenu li a:active div.tmenu li a:active
{ {
color:#4F9EC9; color:#4F9EC9;
padding-left:5px;
padding-right:5px;
padding-top: 2px;
height: 18px;
font-weight: normal; font-weight: normal;
} }
div.tmenu li a:link div.tmenu li a:link
{ {
color:#000000;
padding-left:5px;
padding-right:5px;
padding-top: 2px;
height: 18px;
font-weight: normal; font-weight: normal;
} }

View File

@@ -216,7 +216,7 @@ a.tmenu:visited
font-weight: bold; font-weight: bold;
font-size:12px; font-size:12px;
} }
a.tmenu#sel a.tmenusel
{ {
color: #202020; color: #202020;
background: #bbbbcc; background: #bbbbcc;
@@ -239,13 +239,18 @@ font.tmenudisabled
color: #93a5aa; color: #93a5aa;
padding: 0px 8px; padding: 0px 8px;
margin: 0px 0px 6px 0px; margin: 0px 0px 6px 0px;
border: 1px solid #b3c5cc; border: 0px;
font-weight:bold; font-weight:bold;
font-size:12px; font-size:12px;
cursor: not-allowed;
} }
/* Pour menu TOP auguria uniquement */ /* Pour menu TOP auguria uniquement */
* html div.tmenu li a
{
width:40px;
}
div.tmenu ul { div.tmenu ul {
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@@ -272,10 +277,7 @@ div.tmenu li a{
display: block; display: block;
font-weight: normal; font-weight: normal;
} }
* html div.tmenu li a{ div.tmenu li a.tmenusel
width:40px;
}
div.tmenu li a#sel
{ {
background:#FFFFFF; background:#FFFFFF;
color:#000000; color:#000000;

View File

@@ -14,11 +14,9 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/ */
/* $Id$ */
/***** Style du fond *****/ /***** Style du fond *****/
body { body {
@@ -153,7 +151,7 @@ a.tmenu:visited
font-weight:bold; font-weight:bold;
font-size:12px; font-size:12px;
} }
a.tmenu#sel a.tmenusel
{ {
color: #ffffff; color: #ffffff;
background: #78746d; background: #78746d;
@@ -211,7 +209,7 @@ div.tmenu li a{
* html div.tmenu li a{ * html div.tmenu li a{
width:40px; width:40px;
} }
div.tmenu li a#sel div.tmenu li a.tmenusel
{ {
background:#FFFFFF; background:#FFFFFF;
color:#000000; color:#000000;

View File

@@ -186,7 +186,7 @@ a.tmenu:visited
font-weight:bold; font-weight:bold;
font-size:12px; font-size:12px;
} }
a.tmenu#sel a.tmenusel
{ {
color: #234046; color: #234046;
background: #eeeecc; background: #eeeecc;
@@ -206,13 +206,18 @@ font.tmenudisabled
{ {
color: #93a5aa; color: #93a5aa;
padding: 0px 5px; padding: 0px 5px;
border: 1px solid #b3c5cc; border: 0px;
font-weight:bold; font-weight:bold;
font-size:12px; font-size:12px;
cursor: not-allowed;
} }
/* Pour menu TOP auguria uniquement */ /* Pour menu TOP auguria uniquement */
* html div.tmenu li a
{
width:40px;
}
div.tmenu ul { div.tmenu ul {
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@@ -237,10 +242,7 @@ div.tmenu li a{
display: block; display: block;
font-weight: normal; font-weight: normal;
} }
* html div.tmenu li a{ div.tmenu li a.tmenusel
width:40px;
}
div.tmenu li a#sel
{ {
background:#FFFFFF; background:#FFFFFF;
color:#000000; color:#000000;