@@ -275,31 +292,32 @@ echo Icon_Action::tips($anc_filter->title);
= _('Utilisez des postes comptables alphanumérique') ?>
= $alpha_num->input('p_alphanum') ?>
-
+
+
'class/acc_other_tax_mtable.class.php',
'acc_other_tax_sql' => 'database/acc_other_tax_sql.class.php',
'jrn_tax_sql' => 'database/jrn_tax_sql.class.php',
- 'additional_tax' => 'class/additional_tax.class.php'
+ 'additional_tax' => 'class/additional_tax.class.php',
+ 'noalyss_appearance' => 'class/noalyss_appearance.class.php',
+ 'icolor'=>'lib/icolor.class.php'
);
if (isset ($aClass[$class])) {
require_once NOALYSS_INCLUDE . "/" . $aClass[$class];
diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index fdd7e1960..3482c8629 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -376,6 +376,12 @@ function html_page_start($p_theme="", $p_script="", $p_script2="")
}
echo load_all_script();
+
+ // Retrieve colors for this folder
+ if ( isset($_REQUEST['gDossier']) ) {
+ $noalyss_appearance=new Noalyss_Appearance();
+ $noalyss_appearance->print_css();
+ }
echo ' ';
echo "";
@@ -442,9 +448,12 @@ function html_min_page_start($p_theme="", $p_script="", $p_script2="")
";
echo "";
include_once NOALYSS_INCLUDE.'/lib/message_javascript.php';
- echo '
- ';
-
+ // Retrieve colors for this folder
+ if ( isset($_REQUEST['gDossier']) ) {
+ $noalyss_appearance=new Noalyss_Appearance();
+ $noalyss_appearance->print_css();
+ }
+ echo '';
echo "";
/* If we are on the user_login page */
if (basename($_SERVER['PHP_SELF']) == 'user_login.php')
diff --git a/include/lib/icolor.class.php b/include/lib/icolor.class.php
new file mode 100644
index 000000000..7e65eb3da
--- /dev/null
+++ b/include/lib/icolor.class.php
@@ -0,0 +1,48 @@
+id=(empty($this->id))?$this->name:$this->id;
+ $ret = sprintf( '',
+ $this->id,$this->name,$this->value);
+ return $ret;
+ }
+ function display()
+ {
+ return "";
+ }
+
+}
\ No newline at end of file
diff --git a/include/sql/patch/upgrade174.sql b/include/sql/patch/upgrade174.sql
new file mode 100644
index 000000000..afb99009b
--- /dev/null
+++ b/include/sql/patch/upgrade174.sql
@@ -0,0 +1,21 @@
+begin;
+create table parm_appearance (a_code text primary key , a_value text not null);
+
+insert into parm_appearance values ('H2' , '#9fbcd6')
+ ,('MENU1','#000074')
+ ,('BODY','#ffffff')
+ ,('MENU2','#3d3d87')
+ ,('MENU1-SELECTED','#3d3d87')
+ ,('FONT-MENU1','#ffffff')
+ ,('FONT-MENU2','#ffffff')
+ ,('FONT-TABLE','#222bd0')
+ ,('FONT-DEFAULT','#000074')
+ ,('FONT-TABLE-HEADER','#0C106D')
+ ,('FOLDER','#ffffff')
+ ,('FONT-FOLDER','#000074')
+ ,('TR-ODD','#DCE7F5')
+ ,('TR-EVEN','#e4e7ed')
+ ,('INNER-BOX','#DCE1EF')
+ ;
+insert into version (val,v_description) values (175,'Folder Appearance');
+commit;
\ No newline at end of file