From ae34e28bbbc6d313898a53b234fd742f4fa1685f Mon Sep 17 00:00:00 2001 From: jlb Date: Thu, 27 Feb 2003 17:09:50 +0000 Subject: [PATCH] travail sur les themes et style --- htdocs/conf/conf.class.php3.sample | 3 ++- htdocs/main.inc.php3 | 31 ++++++++++++++++++++++++------ htdocs/theme/freelug/freelug.css | 3 ++- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/htdocs/conf/conf.class.php3.sample b/htdocs/conf/conf.class.php3.sample index 3a6c1675ef6..ee03ea578c4 100644 --- a/htdocs/conf/conf.class.php3.sample +++ b/htdocs/conf/conf.class.php3.sample @@ -28,6 +28,8 @@ class Conf { $this->theme = "dolibarr"; + $this->css = "theme/".$this->theme."/".$this->theme.".css"; + $this->liste_limit = 10; $this->db = new DbConf(); @@ -52,7 +54,6 @@ class Conf { $this->password_encrypted = 1; - $this->css = "theme/".$this->theme."/".$this->theme.".css"; } } diff --git a/htdocs/main.inc.php3 b/htdocs/main.inc.php3 index d86fdd97883..5a4857b7e63 100644 --- a/htdocs/main.inc.php3 +++ b/htdocs/main.inc.php3 @@ -42,7 +42,7 @@ if ($user->limite_liste <> $conf->liste_limit) { $conf->liste_limit = $user->limite_liste; } /* - * + * Definition de toutes les Constantes globales d'envirronement * */ $sql = "SELECT name, value FROM llx_const"; @@ -65,6 +65,22 @@ if ($result) * */ $db->close(); + +// Modification de quelques variable de conf en fonction des Constantes +/* + * SIZE_LISTE_LIMIT : constante de taille maximale des listes + */ +if (defined("SIZE_LISTE_LIMIT")) +{ + $conf->liste_limit=SIZE_LISTE_LIMIT; +} + +if (defined("MAIN_THEME")) +{ + $conf->theme=MAIN_THEME; + $conf->css = "theme/".$conf->theme."/".$conf->theme.".css"; +} + /* */ if(!isset($application_lang)) @@ -91,19 +107,22 @@ function top_menu($head) print $rtplang->lang_header(); - print ""; + // print ""; print $head; - print ''; + // print ''; print ''; print "\n"; - print 'Dolibarr'; + if (defined("MAIN_TITLE")){ + print "".MAIN_TITLE.""; + }else{ + print 'Dolibarr'; + } print "\n"; print "\n"; - print ''; - + /* * Barre superieure * diff --git a/htdocs/theme/freelug/freelug.css b/htdocs/theme/freelug/freelug.css index 2962ff42d51..ad342f6f82b 100644 --- a/htdocs/theme/freelug/freelug.css +++ b/htdocs/theme/freelug/freelug.css @@ -13,6 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * * * $Id$ * $Source$ @@ -20,7 +21,7 @@ body { background: #EEEEEE; - background-image: url("/theme/freelug/img/Image16gray.png") + background-image: url("/theme/freelug/img/background.png"); font-family: Helvetica, Verdana; font-size: 12px; text-decoration: none ; }