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->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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 "<HTML><HEAD>";
|
||||
// print "<HTML><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 "\n";
|
||||
print '<title>Dolibarr</title>';
|
||||
if (defined("MAIN_TITLE")){
|
||||
print "<title>".MAIN_TITLE."</title>";
|
||||
}else{
|
||||
print '<title>Dolibarr</title>';
|
||||
}
|
||||
print "\n";
|
||||
|
||||
|
||||
print "</HEAD>\n";
|
||||
|
||||
print '<BODY TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">';
|
||||
|
||||
|
||||
/*
|
||||
* Barre superieure
|
||||
*
|
||||
|
||||
@ -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 ;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user