travail sur les themes et style
This commit is contained in:
parent
b1967ffcd2
commit
ae34e28bbb
@ -28,6 +28,8 @@ class Conf {
|
|||||||
|
|
||||||
$this->theme = "dolibarr";
|
$this->theme = "dolibarr";
|
||||||
|
|
||||||
|
$this->css = "theme/".$this->theme."/".$this->theme.".css";
|
||||||
|
|
||||||
$this->liste_limit = 10;
|
$this->liste_limit = 10;
|
||||||
|
|
||||||
$this->db = new DbConf();
|
$this->db = new DbConf();
|
||||||
@ -52,7 +54,6 @@ class Conf {
|
|||||||
|
|
||||||
$this->password_encrypted = 1;
|
$this->password_encrypted = 1;
|
||||||
|
|
||||||
$this->css = "theme/".$this->theme."/".$this->theme.".css";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ if ($user->limite_liste <> $conf->liste_limit) {
|
|||||||
$conf->liste_limit = $user->limite_liste;
|
$conf->liste_limit = $user->limite_liste;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
*
|
* Definition de toutes les Constantes globales d'envirronement
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$sql = "SELECT name, value FROM llx_const";
|
$sql = "SELECT name, value FROM llx_const";
|
||||||
@ -65,6 +65,22 @@ if ($result)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$db->close();
|
$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))
|
if(!isset($application_lang))
|
||||||
@ -91,17 +107,20 @@ function top_menu($head)
|
|||||||
|
|
||||||
print $rtplang->lang_header();
|
print $rtplang->lang_header();
|
||||||
|
|
||||||
print "<HTML><HEAD>";
|
// print "<HTML><HEAD>";
|
||||||
print $head;
|
print $head;
|
||||||
print '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">';
|
// print '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">';
|
||||||
print '<LINK REL="stylesheet" TYPE="text/css" HREF="/'.$conf->css.'">';
|
print '<LINK REL="stylesheet" TYPE="text/css" HREF="/'.$conf->css.'">';
|
||||||
print "\n";
|
print "\n";
|
||||||
|
if (defined("MAIN_TITLE")){
|
||||||
|
print "<title>".MAIN_TITLE."</title>";
|
||||||
|
}else{
|
||||||
print '<title>Dolibarr</title>';
|
print '<title>Dolibarr</title>';
|
||||||
|
}
|
||||||
print "\n";
|
print "\n";
|
||||||
|
|
||||||
|
|
||||||
print "</HEAD>\n";
|
print "</HEAD>\n";
|
||||||
|
|
||||||
print '<BODY TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">';
|
print '<BODY TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -14,13 +14,14 @@
|
|||||||
* 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$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #EEEEEE;
|
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;
|
font-family: Helvetica, Verdana; font-size: 12px;
|
||||||
text-decoration: none ;
|
text-decoration: none ;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user