Added option THEME_ELDY_USE_HOVER to enable mouse hover, because when
using software a lot, it becomes annoying. So we let user choose (choice possible only with eldy theme for the moment).
This commit is contained in:
parent
2c2d17b101
commit
e0624abb2c
@ -26,8 +26,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class ModeleExports
|
* Parent class for export modules
|
||||||
* \brief Parent class for export modules
|
|
||||||
*/
|
*/
|
||||||
class ModeleExports extends CommonDocGenerator // This class can't be abstract as there is instance propreties loaded by liste_modeles
|
class ModeleExports extends CommonDocGenerator // This class can't be abstract as there is instance propreties loaded by liste_modeles
|
||||||
{
|
{
|
||||||
@ -41,7 +40,7 @@ class ModeleExports extends CommonDocGenerator // This class can't be abstrac
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Charge en memoire et renvoie la liste des modeles actifs
|
* Load into memory list of available export format
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
* @param string $maxfilenamelength Max length of value to show
|
* @param string $maxfilenamelength Max length of value to show
|
||||||
@ -87,6 +86,9 @@ class ModeleExports extends CommonDocGenerator // This class can't be abstrac
|
|||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
asort($this->driverlabel);
|
||||||
|
|
||||||
return $this->driverlabel;
|
return $this->driverlabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005-2012 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
|
||||||
@ -18,7 +18,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/exports/index.php
|
* \file htdocs/exports/index.php
|
||||||
* \ingroup export
|
* \ingroup export
|
||||||
* \brief Home page of export tools
|
* \brief Home page of export wizard
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once '../main.inc.php';
|
require_once '../main.inc.php';
|
||||||
@ -51,42 +51,10 @@ print '<br>';
|
|||||||
|
|
||||||
print '<table class="notopnoleftnoright" width="100%">';
|
print '<table class="notopnoleftnoright" width="100%">';
|
||||||
|
|
||||||
print '<tr><td valign="top" width="40%" class="notopnoleft">';
|
print '<tr><td valign="top" width="70%" class="notopnoleft">';
|
||||||
|
|
||||||
|
|
||||||
// List of available export format
|
// List export set
|
||||||
$var=true;
|
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td colspan="2">'.$langs->trans("AvailableFormats").'</td>';
|
|
||||||
print '<td>'.$langs->trans("LibraryShort").'</td>';
|
|
||||||
print '<td align="right">'.$langs->trans("LibraryVersion").'</td>';
|
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/modules/export/modules_export.php';
|
|
||||||
$model=new ModeleExports();
|
|
||||||
$liste=$model->liste_modeles($db); // This is not a static method for exports because method load non static properties
|
|
||||||
|
|
||||||
$var=true;
|
|
||||||
foreach($liste as $key => $val)
|
|
||||||
{
|
|
||||||
$var=!$var;
|
|
||||||
print '<tr '.$bc[$var].'>';
|
|
||||||
print '<td width="16">'.img_picto_common($model->getDriverLabel($key),$model->getPicto($key)).'</td>';
|
|
||||||
$text=$model->getDriverDesc($key);
|
|
||||||
print '<td>'.$form->textwithpicto($model->getDriverLabel($key),$text).'</td>';
|
|
||||||
print '<td>'.$model->getLibLabel($key).'</td>';
|
|
||||||
print '<td nowrap="nowrap" align="right">'.$model->getLibVersion($key).'</td>';
|
|
||||||
print '</tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
|
|
||||||
print '</td><td valign="top" width="60%" class="notopnoleftnoright">';
|
|
||||||
|
|
||||||
|
|
||||||
// Affiche les modules d'exports
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Module").'</td>';
|
print '<td>'.$langs->trans("Module").'</td>';
|
||||||
@ -140,11 +108,44 @@ if (count($export->array_export_code))
|
|||||||
}
|
}
|
||||||
print '</center>';
|
print '</center>';
|
||||||
|
|
||||||
|
|
||||||
|
print '</td><td valign="top" width="30%" class="notopnoleftnoright">';
|
||||||
|
|
||||||
|
|
||||||
|
// List of available export format
|
||||||
|
$var=true;
|
||||||
|
print '<table class="noborder" width="100%">';
|
||||||
|
print '<tr class="liste_titre">';
|
||||||
|
print '<td colspan="2">'.$langs->trans("AvailableFormats").'</td>';
|
||||||
|
print '<td>'.$langs->trans("LibraryShort").'</td>';
|
||||||
|
print '<td align="right">'.$langs->trans("LibraryVersion").'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
|
include_once DOL_DOCUMENT_ROOT.'/core/modules/export/modules_export.php';
|
||||||
|
$model=new ModeleExports();
|
||||||
|
$liste=$model->liste_modeles($db); // This is not a static method for exports because method load non static properties
|
||||||
|
|
||||||
|
$var=true;
|
||||||
|
foreach($liste as $key => $val)
|
||||||
|
{
|
||||||
|
$var=!$var;
|
||||||
|
print '<tr '.$bc[$var].'>';
|
||||||
|
print '<td width="16">'.img_picto_common($model->getDriverLabel($key),$model->getPicto($key)).'</td>';
|
||||||
|
$text=$model->getDriverDesc($key);
|
||||||
|
print '<td>'.$form->textwithpicto($model->getDriverLabel($key),$text).'</td>';
|
||||||
|
print '<td>'.$model->getLibLabel($key).'</td>';
|
||||||
|
print '<td nowrap="nowrap" align="right">'.$model->getLibVersion($key).'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
$db->close();
|
|
||||||
|
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
|
$db->close();
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005-2012 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
|
||||||
@ -18,7 +18,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/imports/index.php
|
* \file htdocs/imports/index.php
|
||||||
* \ingroup import
|
* \ingroup import
|
||||||
* \brief Page accueil de la zone import
|
* \brief Home page of import wizard
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once '../main.inc.php';
|
require_once '../main.inc.php';
|
||||||
@ -49,41 +49,10 @@ print '<br>';
|
|||||||
|
|
||||||
print '<table class="notopnoleftnoright" width="100%">';
|
print '<table class="notopnoleftnoright" width="100%">';
|
||||||
|
|
||||||
print '<tr><td valign="top" width="40%" class="notopnoleft">';
|
print '<tr><td valign="top" width="70%" class="notopnoleft">';
|
||||||
|
|
||||||
|
|
||||||
// Liste des formats d'imports disponibles
|
// List of import set
|
||||||
$var=true;
|
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td colspan="2">'.$langs->trans("AvailableFormats").'</td>';
|
|
||||||
print '<td>'.$langs->trans("LibraryShort").'</td>';
|
|
||||||
print '<td align="right">'.$langs->trans("LibraryVersion").'</td>';
|
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/modules/import/modules_import.php';
|
|
||||||
$model=new ModeleImports();
|
|
||||||
$liste=$model->liste_modeles($db);
|
|
||||||
|
|
||||||
foreach($liste as $key)
|
|
||||||
{
|
|
||||||
$var=!$var;
|
|
||||||
print '<tr '.$bc[$var].'>';
|
|
||||||
print '<td width="16">'.img_picto_common($model->getDriverLabel($key),$model->getPicto($key)).'</td>';
|
|
||||||
$text=$model->getDriverDesc($key);
|
|
||||||
print '<td>'.$form->textwithpicto($model->getDriverLabel($key),$text).'</td>';
|
|
||||||
print '<td>'.$model->getLibLabel($key).'</td>';
|
|
||||||
print '<td nowrap="nowrap" align="right">'.$model->getLibVersion($key).'</td>';
|
|
||||||
print '</tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
|
|
||||||
print '</td><td valign="top" width="60%" class="notopnoleftnoright">';
|
|
||||||
|
|
||||||
|
|
||||||
// Affiche les modules d'imports
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Module").'</td>';
|
print '<td>'.$langs->trans("Module").'</td>';
|
||||||
@ -131,6 +100,38 @@ if (count($import->array_import_code))
|
|||||||
}
|
}
|
||||||
print '</center>';
|
print '</center>';
|
||||||
|
|
||||||
|
|
||||||
|
print '</td><td valign="top" width="30%" class="notopnoleftnoright">';
|
||||||
|
|
||||||
|
|
||||||
|
// List of available import format
|
||||||
|
$var=true;
|
||||||
|
print '<table class="noborder" width="100%">';
|
||||||
|
print '<tr class="liste_titre">';
|
||||||
|
print '<td colspan="2">'.$langs->trans("AvailableFormats").'</td>';
|
||||||
|
print '<td>'.$langs->trans("LibraryShort").'</td>';
|
||||||
|
print '<td align="right">'.$langs->trans("LibraryVersion").'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
|
include_once DOL_DOCUMENT_ROOT.'/core/modules/import/modules_import.php';
|
||||||
|
$model=new ModeleImports();
|
||||||
|
$liste=$model->liste_modeles($db);
|
||||||
|
|
||||||
|
foreach($liste as $key)
|
||||||
|
{
|
||||||
|
$var=!$var;
|
||||||
|
print '<tr '.$bc[$var].'>';
|
||||||
|
print '<td width="16">'.img_picto_common($model->getDriverLabel($key),$model->getPicto($key)).'</td>';
|
||||||
|
$text=$model->getDriverDesc($key);
|
||||||
|
print '<td>'.$form->textwithpicto($model->getDriverLabel($key),$text).'</td>';
|
||||||
|
print '<td>'.$model->getLibLabel($key).'</td>';
|
||||||
|
print '<td nowrap="nowrap" align="right">'.$model->getLibVersion($key).'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
|||||||
@ -65,6 +65,22 @@ $img_liste_titre=dol_buildpath($path.'/theme/auguria/img/menus/trtitle.png',1);
|
|||||||
$img_head=dol_buildpath($path.'/theme/auguria/img/headbg2.jpg',1);
|
$img_head=dol_buildpath($path.'/theme/auguria/img/headbg2.jpg',1);
|
||||||
$img_button=dol_buildpath($path.'/theme/auguria/img/button_bg.png',1);
|
$img_button=dol_buildpath($path.'/theme/auguria/img/button_bg.png',1);
|
||||||
|
|
||||||
|
$colorbacklineimpairhover='210,214,217';
|
||||||
|
$colorbacklinepairhover='210,214,217';
|
||||||
|
|
||||||
|
// No hover by default, we keep only if we set var THEME_ELDY_USE_HOVER
|
||||||
|
if ((! empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($user->conf->THEME_ELDY_USE_HOVER))
|
||||||
|
|| (empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($conf->global->THEME_ELDY_USE_HOVER)))
|
||||||
|
{
|
||||||
|
$colorbacklineimpairhover='';
|
||||||
|
$colorbacklinepairhover='';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '/*'."\n";
|
||||||
|
print 'colorbacklineimpairhover='.$colorbacklineimpairhover."\n";
|
||||||
|
print 'colorbacklinepairhover='.$colorbacklinepairhover."\n";
|
||||||
|
print '*/'."\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
@ -1316,12 +1332,13 @@ white-space: nowrap;
|
|||||||
|
|
||||||
|
|
||||||
.impair:hover {
|
.impair:hover {
|
||||||
background: #c0c4c7;
|
<?php if ($colorbacklineimpairhover) { ?>
|
||||||
|
background: rgb(<?php print $colorbacklineimpairhover; ?>);
|
||||||
|
<?php } ?>
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impair, table.nohover .impair:hover {
|
.impair, .nohover .impair:hover, tr.impair td.nohover {
|
||||||
/* background: #d0d4d7; */
|
|
||||||
background: #F5F6F7;
|
background: #F5F6F7;
|
||||||
font-family: <?php print $fontlist ?>;
|
font-family: <?php print $fontlist ?>;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
@ -1329,12 +1346,13 @@ border: 0px;
|
|||||||
|
|
||||||
|
|
||||||
.pair:hover {
|
.pair:hover {
|
||||||
background: #c0c4c7;
|
<?php if ($colorbacklinepairhover) { ?>
|
||||||
|
background: rgb(<?php print $colorbacklinepairhover; ?>);
|
||||||
|
<?php } ?>
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pair, table.nohover .pair:hover {
|
.pair, .nohover .pair:hover, tr.pair td.nohover {
|
||||||
/* background: #e6ebed; */
|
|
||||||
background: #FBFCFC;
|
background: #FBFCFC;
|
||||||
font-family: <?php print $fontlist ?>;
|
font-family: <?php print $fontlist ?>;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
|
|||||||
@ -94,8 +94,10 @@ $colorbacktabcard2=($colred-15).','.($colgreen-15).','.($colblue-15);
|
|||||||
$colorbacktabactive=($colred-15).','.($colgreen-15).','.($colblue-15);
|
$colorbacktabactive=($colred-15).','.($colgreen-15).','.($colblue-15);
|
||||||
$colorbacklineimpair1=(244+round($isred/3)).','.(244+round($isgreen/3)).','.(244+round($isblue/3)); // line impair
|
$colorbacklineimpair1=(244+round($isred/3)).','.(244+round($isgreen/3)).','.(244+round($isblue/3)); // line impair
|
||||||
$colorbacklineimpair2=(250+round($isred/3)).','.(250+round($isgreen/3)).','.(250+round($isblue/3)); // line impair
|
$colorbacklineimpair2=(250+round($isred/3)).','.(250+round($isgreen/3)).','.(250+round($isblue/3)); // line impair
|
||||||
|
$colorbacklineimpairhover=(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)); // line impair
|
||||||
$colorbacklinepair1='255,255,255'; // line pair
|
$colorbacklinepair1='255,255,255'; // line pair
|
||||||
$colorbacklinepair2='255,255,255'; // line pair
|
$colorbacklinepair2='255,255,255'; // line pair
|
||||||
|
$colorbacklinepairhover=(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9)).','.(230+round(($isred+$isgreen+$isblue)/9));
|
||||||
$colorbackbody='#ffffff url('.$img_head.') 0 0 no-repeat;';
|
$colorbackbody='#ffffff url('.$img_head.') 0 0 no-repeat;';
|
||||||
$colortext='40,40,40';
|
$colortext='40,40,40';
|
||||||
$fontsize=empty($conf->browser->phone)?'12':'14';
|
$fontsize=empty($conf->browser->phone)?'12':'14';
|
||||||
@ -117,8 +119,10 @@ if (empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED))
|
|||||||
$conf->global->THEME_ELDY_BACKBODY='#ffffff url('.$img_head.') 0 0 no-repeat;';
|
$conf->global->THEME_ELDY_BACKBODY='#ffffff url('.$img_head.') 0 0 no-repeat;';
|
||||||
$conf->global->THEME_ELDY_LINEIMPAIR1='242,242,242';
|
$conf->global->THEME_ELDY_LINEIMPAIR1='242,242,242';
|
||||||
$conf->global->THEME_ELDY_LINEIMPAIR2='248,248,248';
|
$conf->global->THEME_ELDY_LINEIMPAIR2='248,248,248';
|
||||||
|
$conf->global->THEME_ELDY_LINEIMPAIRHOVER='238,246,252';
|
||||||
$conf->global->THEME_ELDY_LINEPAIR1='255,255,255';
|
$conf->global->THEME_ELDY_LINEPAIR1='255,255,255';
|
||||||
$conf->global->THEME_ELDY_LINEPAIR2='255,255,255';
|
$conf->global->THEME_ELDY_LINEPAIR2='255,255,255';
|
||||||
|
$conf->global->THEME_ELDY_LINEPAIRHOVER='238,246,252';
|
||||||
$conf->global->THEME_ELDY_BACKBODY='#ffffff url('.$img_head.') 0 0 no-repeat;';
|
$conf->global->THEME_ELDY_BACKBODY='#ffffff url('.$img_head.') 0 0 no-repeat;';
|
||||||
$conf->global->THEME_ELDY_TEXT='48,102,102';
|
$conf->global->THEME_ELDY_TEXT='48,102,102';
|
||||||
}
|
}
|
||||||
@ -135,12 +139,21 @@ $colorbacktabcard2 =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty(
|
|||||||
$colorbacktabactive =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_BACKTABACTIVE)?$colorbacktabactive:$conf->global->THEME_ELDY_BACKTABACTIVE):(empty($user->conf->THEME_ELDY_BACKTABACTIVE)?$colorbacktabactive:$user->conf->THEME_ELDY_BACKTABACTIVE);
|
$colorbacktabactive =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_BACKTABACTIVE)?$colorbacktabactive:$conf->global->THEME_ELDY_BACKTABACTIVE):(empty($user->conf->THEME_ELDY_BACKTABACTIVE)?$colorbacktabactive:$user->conf->THEME_ELDY_BACKTABACTIVE);
|
||||||
$colorbacklineimpair1=empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEIMPAIR1) ?$colorbacklineimpair1:$conf->global->THEME_ELDY_LINEIMPAIR1):(empty($user->conf->THEME_ELDY_LINEIMPAIR1)?$colorbacklineimpair1:$user->conf->THEME_ELDY_LINEIMPAIR1);
|
$colorbacklineimpair1=empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEIMPAIR1) ?$colorbacklineimpair1:$conf->global->THEME_ELDY_LINEIMPAIR1):(empty($user->conf->THEME_ELDY_LINEIMPAIR1)?$colorbacklineimpair1:$user->conf->THEME_ELDY_LINEIMPAIR1);
|
||||||
$colorbacklineimpair2=empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEIMPAIR2) ?$colorbacklineimpair2:$conf->global->THEME_ELDY_LINEIMPAIR2):(empty($user->conf->THEME_ELDY_LINEIMPAIR2)?$colorbacklineimpair2:$user->conf->THEME_ELDY_LINEIMPAIR2);
|
$colorbacklineimpair2=empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEIMPAIR2) ?$colorbacklineimpair2:$conf->global->THEME_ELDY_LINEIMPAIR2):(empty($user->conf->THEME_ELDY_LINEIMPAIR2)?$colorbacklineimpair2:$user->conf->THEME_ELDY_LINEIMPAIR2);
|
||||||
|
$colorbacklineimpairhover=empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEIMPAIRHOVER) ?$colorbacklineimpairhover:$conf->global->THEME_ELDY_LINEIMPAIRHOVER):(empty($user->conf->THEME_ELDY_LINEIMPAIRHOVER)?$colorbacklineimpairhover:$user->conf->THEME_ELDY_LINEIMPAIRHOVER);
|
||||||
$colorbacklinepair1 =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEPAIR1) ?$colorbacklinepair1:$conf->global->THEME_ELDY_LINEPAIR1) :(empty($user->conf->THEME_ELDY_LINEPAIR1)?$colorbacklinepair1:$user->conf->THEME_ELDY_LINEPAIR1);
|
$colorbacklinepair1 =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEPAIR1) ?$colorbacklinepair1:$conf->global->THEME_ELDY_LINEPAIR1) :(empty($user->conf->THEME_ELDY_LINEPAIR1)?$colorbacklinepair1:$user->conf->THEME_ELDY_LINEPAIR1);
|
||||||
$colorbacklinepair2 =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEPAIR2) ?$colorbacklinepair2:$conf->global->THEME_ELDY_LINEPAIR2) :(empty($user->conf->THEME_ELDY_LINEPAIR2)?$colorbacklinepair2:$user->conf->THEME_ELDY_LINEPAIR2);
|
$colorbacklinepair2 =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEPAIR2) ?$colorbacklinepair2:$conf->global->THEME_ELDY_LINEPAIR2) :(empty($user->conf->THEME_ELDY_LINEPAIR2)?$colorbacklinepair2:$user->conf->THEME_ELDY_LINEPAIR2);
|
||||||
|
$colorbacklinepairhover =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_LINEPAIRHOVER) ?$colorbacklinepairhover:$conf->global->THEME_ELDY_LINEPAIRHOVER) :(empty($user->conf->THEME_ELDY_LINEPAIRHOVER)?$colorbacklinepairhover:$user->conf->THEME_ELDY_LINEPAIRHOVER);
|
||||||
$colorbackbody =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_BACKBODY) ?$colorbackbody:$conf->global->THEME_ELDY_BACKBODY) :(empty($user->conf->THEME_ELDY_BACKBODY)?$colorbackbody:$user->conf->THEME_ELDY_BACKBODY);
|
$colorbackbody =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_BACKBODY) ?$colorbackbody:$conf->global->THEME_ELDY_BACKBODY) :(empty($user->conf->THEME_ELDY_BACKBODY)?$colorbackbody:$user->conf->THEME_ELDY_BACKBODY);
|
||||||
$colortext =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_TEXT) ?$colortext:$conf->global->THEME_ELDY_TEXT) :(empty($user->conf->THEME_ELDY_TEXT)?$colortext:$user->conf->THEME_ELDY_TEXT);
|
$colortext =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_TEXT) ?$colortext:$conf->global->THEME_ELDY_TEXT) :(empty($user->conf->THEME_ELDY_TEXT)?$colortext:$user->conf->THEME_ELDY_TEXT);
|
||||||
$fontsize =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_FONT_SIZE1) ?$fontsize:$conf->global->THEME_ELDY_FONT_SIZE1) :(empty($user->conf->THEME_ELDY_FONT_SIZE1)?$fontsize:$user->conf->THEME_ELDY_FONT_SIZE1);
|
$fontsize =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_FONT_SIZE1) ?$fontsize:$conf->global->THEME_ELDY_FONT_SIZE1) :(empty($user->conf->THEME_ELDY_FONT_SIZE1)?$fontsize:$user->conf->THEME_ELDY_FONT_SIZE1);
|
||||||
$fontsizesmaller =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_FONT_SIZE2) ?$fontsize:$conf->global->THEME_ELDY_FONT_SIZE2) :(empty($user->conf->THEME_ELDY_FONT_SIZE2)?$fontsize:$user->conf->THEME_ELDY_FONT_SIZE2);
|
$fontsizesmaller =empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)?(empty($conf->global->THEME_ELDY_FONT_SIZE2) ?$fontsize:$conf->global->THEME_ELDY_FONT_SIZE2) :(empty($user->conf->THEME_ELDY_FONT_SIZE2)?$fontsize:$user->conf->THEME_ELDY_FONT_SIZE2);
|
||||||
|
// No hover by default, we keep only if we set var THEME_ELDY_USE_HOVER
|
||||||
|
if ((! empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($user->conf->THEME_ELDY_USE_HOVER))
|
||||||
|
|| (empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) && empty($conf->global->THEME_ELDY_USE_HOVER)))
|
||||||
|
{
|
||||||
|
$colorbacklineimpairhover='';
|
||||||
|
$colorbacklinepairhover='';
|
||||||
|
}
|
||||||
|
|
||||||
// Set text color to black or white
|
// Set text color to black or white
|
||||||
$tmppart=explode(',',$colorback1);
|
$tmppart=explode(',',$colorback1);
|
||||||
@ -161,8 +174,10 @@ print 'colred='.$colred.' colgreen='.$colgreen.' colblue='.$colblue."\n";
|
|||||||
print 'isred='.$isred.' isgreen='.$isgreen.' isblue='.$isblue."\n";
|
print 'isred='.$isred.' isgreen='.$isgreen.' isblue='.$isblue."\n";
|
||||||
print 'colorbacklineimpair1='.$colorbacklineimpair1."\n";
|
print 'colorbacklineimpair1='.$colorbacklineimpair1."\n";
|
||||||
print 'colorbacklineimpair2='.$colorbacklineimpair2."\n";
|
print 'colorbacklineimpair2='.$colorbacklineimpair2."\n";
|
||||||
|
print 'colorbacklineimpairhover='.$colorbacklineimpairhover."\n";
|
||||||
print 'colorbacklinepair1='.$colorbacklinepair1."\n";
|
print 'colorbacklinepair1='.$colorbacklinepair1."\n";
|
||||||
print 'colorbacklinepair2='.$colorbacklinepair2."\n";
|
print 'colorbacklinepair2='.$colorbacklinepair2."\n";
|
||||||
|
print 'colorbacklinepairhover='.$colorbacklinepairhover."\n";
|
||||||
print 'usecss3='.$usecss3."\n";
|
print 'usecss3='.$usecss3."\n";
|
||||||
print '*/'."\n";
|
print '*/'."\n";
|
||||||
|
|
||||||
@ -1598,11 +1613,15 @@ tr.liste_total td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.impair:hover {
|
.impair:hover {
|
||||||
background: #c0c4c7;
|
<?php if ($colorbacklineimpairhover) { if ($usecss3) { ?>
|
||||||
|
background: rgb(<?php echo $colorbacklineimpairhover; ?>);
|
||||||
|
<?php } else { ?>
|
||||||
|
background: #fafafa;
|
||||||
|
<?php } } ?>
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.impair, table.nohover .impair:hover {
|
.impair, .nohover .impair:hover, tr.impair td.nohover {
|
||||||
<?php if ($usecss3) { ?>
|
<?php if ($usecss3) { ?>
|
||||||
background: linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
|
background: linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
|
||||||
background: -o-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
|
background: -o-linear-gradient(bottom, rgb(<?php echo $colorbacklineimpair1; ?>) 85%, rgb(<?php echo $colorbacklineimpair2; ?>) 100%);
|
||||||
@ -1619,11 +1638,15 @@ tr.liste_total td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.pair:hover {
|
.pair:hover {
|
||||||
background: #c0c4c7;
|
<?php if ($colorbacklinepairhover) { if ($usecss3) { ?>
|
||||||
|
background: rgb(<?php echo $colorbacklinepairhover; ?>);
|
||||||
|
<?php } else { ?>
|
||||||
|
background: #fafafa;
|
||||||
|
<?php } }?>
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pair, table.nohover .pair:hover {
|
.pair, .nohover .pair:hover, tr.pair td.nohover {
|
||||||
<?php if ($usecss3) { ?>
|
<?php if ($usecss3) { ?>
|
||||||
background: linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
|
background: linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
|
||||||
background: -o-linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
|
background: -o-linear-gradient(bottom, rgb(<?php echo $colorbacklinepair1; ?>) 85%, rgb(<?php echo $colorbacklinepair2; ?>) 100%);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user