diff --git a/htdocs/actioncomm.class.php b/htdocs/actioncomm.class.php index 7ee8db98293..92877172431 100644 --- a/htdocs/actioncomm.class.php +++ b/htdocs/actioncomm.class.php @@ -45,8 +45,8 @@ class ActionComm var $datec; // Date creation enregistrement (datec) var $datem; // Date modif enregistrement (tms) - var $author; // User that create action - var $usermod; // User that modified action + var $author; // Object user that create action + var $usermod; // Object user that modified action var $datep; // Date action planifie debut (datep) var $datef; // Date action planifie fin (datep2) @@ -56,8 +56,8 @@ class ActionComm var $durationa = -1; var $priority; - var $usertodo; // User that must do action - var $userdone; // User that did action + var $usertodo; // Object user that must do action + var $userdone; // Object user that did action var $societe; var $contact; @@ -338,6 +338,7 @@ class ActionComm $sql.= ", datea = ".($this->date ? "'".$this->db->idate($this->date)."'" : 'null'); $sql.= ", datea2 = ".($this->dateend ? "'".$this->db->idate($this->dateend)."'" : 'null'); $sql.= ", note = ".($this->note ? "'".addslashes($this->note)."'":"null"); + $sql.= ", fk_soc =". ($this->societe->id > 0 ? "'".$this->societe->id."'":"null"); $sql.= ", fk_contact =". ($this->contact->id > 0 ? "'".$this->contact->id."'":"null"); $sql.= ", priority = '".$this->priority."'"; $sql.= ", fk_user_mod = '".$user->id."'"; @@ -500,20 +501,21 @@ class ActionComm /** * \brief Renvoie nom clicable (avec eventuellement le picto) - * \param withpicto Inclut le picto dans le lien + * \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul * \param maxlength Nombre de caractères max dans libellé + * \param class Force style class on a link * \return string Chaine avec URL * \remarks Utilise $this->id, $this->code et $this->libelle */ - function getNomUrl($withpicto=0,$maxlength) + function getNomUrl($withpicto=0,$maxlength,$class='') { global $langs; $result=''; - $lien = ''; + $lien = ''; $lienfin=''; - if ($langs->trans("Action".$this->code) != "Action".$this->code) + if ($langs->trans("Action".$this->code) != "Action".$this->code || ! $this->libelle) { $libelle=$langs->trans("Action".$this->code); $libelleshort=$langs->trans("Action".$this->code,'','','','',$maxlength); @@ -524,7 +526,8 @@ class ActionComm $libelleshort=dolibarr_trunc($this->libelle,$maxlength); } - if ($withpicto) $result.=($lien.img_object($langs->trans("ShowTask").': '.$libelle,'task').$lienfin.' '); + if ($withpicto) $result.=($lien.img_object($langs->trans("ShowTask").': '.$libelle,'task').$lienfin); + if ($withpicto==1) $result.=' '; $result.=$lien.$libelleshort.$lienfin; return $result; } diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index 976eed1f942..167bd8ac8b2 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2004-2008 Laurent Destailleur * * 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 @@ -15,14 +15,12 @@ * 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$ */ /** \file htdocs/admin/index.php \brief Page d'accueil de l'espace administration/configuration - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -34,7 +32,6 @@ if (!$user->admin) accessforbidden(); - /* * Affichage page */ diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 1da57b7d0c6..a3dd744282c 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -39,7 +39,7 @@ $langs->load("bills"); $langs->load("orders"); $langs->load("agenda"); -// Securite acces client +// Security check if ($user->societe_id > 0) { $action = ''; @@ -324,12 +324,15 @@ if ($_POST["action"] == 'update') $actioncomm->dateend = $datea2; $actioncomm->percentage = $_POST["percentage"]; $actioncomm->priority = $_POST["priority"]; + $actioncomm->societe->id = $_POST["socid"]; $actioncomm->contact->id = $_POST["contactid"]; $actioncomm->note = $_POST["note"]; - if ($actioncomm->type_code == 'AC_RDV' && $actioncomm->percentage == 100 && ! $actioncomm->date) - { - $actioncomm->date = $actioncomm->datep; - } + + if (! $datep2 && $_POST["percentage"] == 100) + { + $error=$langs->trans("ErrorFieldRequired",$langs->trans("DateEnd")); + $_REQUEST["action"] = 'edit'; + } // Users $usertodo=new User($db,$_POST["affectedto"]); @@ -345,7 +348,21 @@ if ($_POST["action"] == 'update') } $actioncomm->userdone = $userdone; - $result=$actioncomm->update($user); + if (! $error) + { + $db->begin(); + + $result=$actioncomm->update($user); + + if ($result > 0) + { + $db->commit(); + } + else + { + $db->rollback(); + } + } } if ($result < 0) @@ -391,234 +408,137 @@ if ($_GET["action"] == 'create') if (! empty($_REQUEST["backtopage"])) print ''; print ''; - /* - * Si action de type Rendez-vous - * - */ - if ($_GET["actioncode"] == 'AC_RDV') + if ($_GET["actioncode"] == 'AC_RDV') print_titre ($langs->trans("AddActionRendezVous")); + else print_titre ($langs->trans("AddAnAction")); + + if ($mesg) print $mesg.'
'; + else print "
"; + + print ''; + + // Type d'action actifs + print ''; + + print ''; + + // Societe, contact + print ''; + + // Si la societe est imposee, on propose ces contacts + if ($_REQUEST["socid"] > 0) + { + print ''; + } + + // Affecte a + print ''; + + // Realise par + print ''; + + if (! empty($_GET["datep"]) && eregi('^([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])$',$_GET["datep"],$reg)) + { + $actioncomm->datep=dolibarr_mktime(0,0,0,$reg[2],$reg[3],$reg[1]); + } + + // Date start + print ''; + // Date end + print ''; + + // Date start done + /* + print ''; + // Date end done + print ''; + */ + + // Avancement + if ($_REQUEST["afaire"] == 1) + { + print ''; + print ''; + print ''; + } + elseif ($_REQUEST["afaire"] == 2) + { + print ''; + print ''; + } else + { + print ''; + } + + add_row_for_calendar_link(); + + // Note + print ''; + + print ''; + + print '
'.$langs->trans("Type").'*'; + if ($_GET["actioncode"]) { - print_titre ($langs->trans("AddActionRendezVous")); - - if ($mesg) print $mesg.'
'; - else print "
"; - - print ''."\n"; - - print ''; - - // Type d'action - print ''; - - // Societe, contact - print ''; - - // Si la societe est imposee, on propose ses contacts - if ($_REQUEST["socid"]) - { - $contactid = $_REQUEST["contactid"]?$_REQUEST["contactid"]:''; - print ''; - } - - // Affecte a - print ''; - - // Realise par - print ''; - - // Date start - print ''; - // Date end - print ''; - - // Duration - print ''; - - add_row_for_calendar_link(); - - // Note - print ''; - - print ''; - print '
'.$langs->trans("ActionOnCompany").''; - if ($_REQUEST["socid"]) - { - $societe = new Societe($db); - $societe->fetch($_REQUEST["socid"]); - print $societe->getNomUrl(1); - print ''; - } - else - { - print $html->select_societes('','socid',1,1); - } - print '
'.$langs->trans("ActionOnContact").''; - $html->select_contacts($_REQUEST["socid"],$contactid,'contactid',1,1); - print '
'.$langs->trans("ActionAffectedTo").''; - $html->select_users($_REQUEST["affectedto"],'affectedto',1); - print '
'.$langs->trans("ActionDoneBy").''; - $html->select_users($_REQUEST["doneby"],'doneby',1); - print '
'.$langs->trans("DateActionStart").''; - if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->datep,'ap',1,1,0,"action"); - else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->datep,'ap',1,1,1,"action"); - else $html->select_date($actioncomm->datep,'ap',1,1,1,"action"); - print '
'.$langs->trans("DateActionEnd").''; - if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); - else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); - else $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); - print '
'.$langs->trans("Duration").''; - $html->select_duree("duree"); - print '
'.$langs->trans("Note").''; - if ($conf->fckeditor->enabled) - { - // Editeur wysiwyg - require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); - $doleditor=new DolEditor('note','',280,'dolibarr_notes','In',true); - $doleditor->Create(); - } - else - { - print ''; - } - print '
'; - print ''; - print '     '; - print ''; - print '
'; + print ''."\n"; + $caction->fetch($_GET["actioncode"]); + print $caction->getNomUrl(); } - - /* - * Si action de type autre que rendez-vous - * - */ else { - print_titre ($langs->trans("AddAnAction")); - - if ($mesg) print $mesg.'
'; - else print "
"; - - print ''; - - // Type d'action actifs - print ''; - - print ''; - - // Societe, contact - print ''; - - // Si la societe est imposee, on propose ces contacts - if ($_REQUEST["socid"] > 0) - { - print ''; - } - - // Affecte a - print ''; - - // Realise par - print ''; - - // Date start - print ''; - // Date end - print ''; - - // Date start done - /* - print ''; - // Date end done - print ''; - */ - - // Avancement - if ($_REQUEST["afaire"] == 1) - { - print ''; - print ''; - print ''; - } - elseif ($_REQUEST["afaire"] == 2) - { - print ''; - print ''; - } else - { - print ''; - } - - add_row_for_calendar_link(); - - // Note - print ''; - - print ''; - - print '
'.$langs->trans("Type").'*'; - if ($_GET["actioncode"]) - { - print ''."\n"; - $caction->fetch($_GET["actioncode"]); - print $caction->getNomUrl(); - } - else - { - $html->select_type_actions($actioncomm->type_code, "actioncode"); - } - print '
'.$langs->trans("Title").'
'.$langs->trans("ActionOnCompany").''; - if ($_REQUEST["socid"] > 0) - { - $societe = new Societe($db); - $societe->fetch($_REQUEST["socid"]); - print $societe->getNomUrl(1); - print ''; - } - else - { - print $html->select_societes('','socid',1,1); - } - print '
'.$langs->trans("ActionOnContact").''; - $html->select_contacts($_REQUEST["socid"],'','contactid',1,1); - print '
'.$langs->trans("ActionAffectedTo").''; - $html->select_users($_REQUEST["affectedto"]?$_REQUEST["affectedto"]:$actioncomm->usertodo,'affectedto',1); - print '
'.$langs->trans("ActionDoneBy").''; - $html->select_users($_REQUEST["doneby"]?$_REQUEST["doneby"]:$actioncomm->userdone,'doneby',1); - print '
'.$langs->trans("DateActionStart").''; - if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->datep,'ap',1,1,0,"action"); - else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->datep,'ap',1,1,1,"action"); - else $html->select_date($actioncomm->datep,'ap',1,1,1,"action"); - print '
'.$langs->trans("DateActionEnd").''; - if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); - else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); - else $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); - print '
'.$langs->trans("DateActionDoneStart").''; - if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->date,'ad',1,1,1,"action"); - else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->date,'ad',1,1,0,"action"); - else $html->select_date($actioncomm->date,'ad',1,1,1,"action"); - print '
'.$langs->trans("DateActionDoneEnd").''; - if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->dateend,'a2',1,1,1,"action"); - else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->dateend,'a2',1,1,0,"action"); - else $html->select_date($actioncomm->dateend,'a2',1,1,1,"action"); - print '
'.$langs->trans("Status").' / '.$langs->trans("Percentage").''.$langs->trans("StatusActionToDo").' / 0%
'.$langs->trans("Status").' / '.$langs->trans("Percentage").''.$langs->trans("StatusActionDone").' / 100%
'.$langs->trans("Status").' / '.$langs->trans("Percentage").'%
'.$langs->trans("Note").''; - if ($conf->fckeditor->enabled) - { - // Editeur wysiwyg - require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); - $doleditor=new DolEditor('note','',280,'dolibarr_notes','In',true); - $doleditor->Create(); - } - else - { - print ''; - } - print '
'; - print ''; - print '     '; - print ''; - print '
'; - - + $html->select_type_actions($actioncomm->type_code, "actioncode"); } + print '
'.$langs->trans("Title").'
'.$langs->trans("ActionOnCompany").''; + if ($_REQUEST["socid"] > 0) + { + $societe = new Societe($db); + $societe->fetch($_REQUEST["socid"]); + print $societe->getNomUrl(1); + print ''; + } + else + { + print $html->select_societes('','socid',1,1); + } + print '
'.$langs->trans("ActionOnContact").''; + $html->select_contacts($_REQUEST["socid"],'','contactid',1,1); + print '
'.$langs->trans("ActionAffectedTo").''; + $html->select_users($_REQUEST["affectedto"]?$_REQUEST["affectedto"]:$actioncomm->usertodo,'affectedto',1); + print '
'.$langs->trans("ActionDoneBy").''; + $html->select_users($_REQUEST["doneby"]?$_REQUEST["doneby"]:$actioncomm->userdone,'doneby',1); + print '
'.$langs->trans("DateActionStart").''; + if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->datep,'ap',1,1,0,"action"); + else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->datep,'ap',1,1,1,"action"); + else $html->select_date($actioncomm->datep,'ap',1,1,1,"action"); + print '
'.$langs->trans("DateActionEnd").''; + if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); + else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); + else $html->select_date($actioncomm->datef,'p2',1,1,1,"action"); + print '
'.$langs->trans("DateActionDoneStart").''; + if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->date,'ad',1,1,1,"action"); + else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->date,'ad',1,1,0,"action"); + else $html->select_date($actioncomm->date,'ad',1,1,1,"action"); + print '
'.$langs->trans("DateActionDoneEnd").''; + if ($_REQUEST["afaire"] == 1) $html->select_date($actioncomm->dateend,'a2',1,1,1,"action"); + else if ($_REQUEST["afaire"] == 2) $html->select_date($actioncomm->dateend,'a2',1,1,0,"action"); + else $html->select_date($actioncomm->dateend,'a2',1,1,1,"action"); + print '
'.$langs->trans("Status").' / '.$langs->trans("Percentage").''.$langs->trans("StatusActionToDo").' / 0%
'.$langs->trans("Status").' / '.$langs->trans("Percentage").''.$langs->trans("StatusActionDone").' / 100%
'.$langs->trans("Status").' / '.$langs->trans("Percentage").'%
'.$langs->trans("Note").''; + if ($conf->fckeditor->enabled) + { + // Editeur wysiwyg + require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); + $doleditor=new DolEditor('note','',280,'dolibarr_notes','In',true); + $doleditor->Create(); + } + else + { + print ''; + } + print '
'; + print ''; + print '     '; + print ''; + print '
'; + print ""; } @@ -677,7 +597,7 @@ if ($_GET["id"]) print '
'; } - if ($_GET["action"] == 'edit') + if ($_REQUEST["action"] == 'edit') { // Fiche action en mode edition print '
'; @@ -690,7 +610,9 @@ if ($_GET["id"]) print ''.$langs->trans("Type").''.$act->type.''; print ''.$langs->trans("Title").''; print ''.$langs->trans("Company").''; - print ''.img_object($langs->trans("ShowCompany"),'company').' '.$act->societe->nom.''; + print ''; + print $html->select_societes($act->societe->id,'socid',1,1); + print ''; print ''.$langs->trans("Contact").''; $html->select_array("contactid", $act->societe->contact_array(), $act->contact->id, 1); @@ -732,7 +654,7 @@ if ($_GET["id"]) print ''; // Status - print ''.$langs->trans("Status").' / '.$langs->trans("Percentage").'%'; + print ''.$langs->trans("Status").' / '.$langs->trans("Percentage").'percentage).'" size="4">%'; // Object linked if ($act->objet_url) @@ -778,7 +700,7 @@ if ($_GET["id"]) print ''.$langs->trans("Title").''.$act->label.''; // Societe - contact - print ''.$langs->trans("Company").''.$act->societe->getNomUrl(1).''; + print ''.$langs->trans("Company").''.($act->societe->id?$act->societe->getNomUrl(1):$langs->trans("None")).''; print ''.$langs->trans("Contact").''; print ''; if ($act->contact->id > 0) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 073165ffd76..51715689575 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -197,7 +197,8 @@ $sql.= ' '.$db->pdate('a.datep').' as datep,'; $sql.= ' '.$db->pdate('a.datep2').' as datep2,'; $sql.= ' '.$db->pdate('a.datea').' as datea,'; $sql.= ' '.$db->pdate('a.datea2').' as datea2,'; -$sql.= ' a.percent,a.fk_user_author,a.fk_user_action,a.fk_user_done'; +$sql.= ' a.percent,'; +$sql.= ' a.fk_user_author,a.fk_user_action,a.fk_user_done'; $sql.= ' FROM '.MAIN_DB_PREFIX.'actioncomm as a'; $sql.= ' WHERE 1=1'; if ($filtera > 0 || $filtert > 0 || $filterd > 0) @@ -229,7 +230,10 @@ if ($resql) //$action->dateend=$obj->datea2; $action->libelle=$obj->label; $action->percentage=$obj->percent; - + $action->author->id=$obj->fk_user_author; + $action->usertodo->id=$obj->fk_user_action; + $action->userdone->id=$obj->fk_user_done; + // Defined date_start_in_calendar and date_end_in_calendar property if ($action->percentage <= 0) { @@ -249,10 +253,21 @@ if ($resql) $action->ponctuel=1; } - // Add an entry in action array for each day + // Add an entry in actionarray for each day // \TODO - $daykey=$action->date_start_in_calendar; - $actionarray[$daykey]=$action; + $daycursor=$action->date_start_in_calendar; + $annee = date('Y',$daycursor); + $mois = date('m',$daycursor); + $jour = date('d',$daycursor); + $daykey=dolibarr_mktime(0,0,0,$mois,$jour,$annee); + $loop=true; + do + { + $actionarray[$daykey][]=$action; + $daykey+=60*60*24; + if ($daykey > $action->date_end_in_calendar) $loop=false; + } + while ($loop); $i++; } } @@ -261,6 +276,14 @@ else dolibarr_print_error($db); } +// Define theme_datacolor array +$color_file = DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/graph-color.php"; +if (is_readable($color_file)) +{ + include_once($color_file); +} +if (! is_array($theme_datacolor)) $theme_datacolor=array(array(120,130,150), array(200,160,180), array(190,190,220)); + echo ''; echo ' '; echo ' \n"; @@ -327,29 +350,83 @@ llxFooter('$Date$ - $Revision$'); */ function show_day_events($db, $day, $month, $year, $style, $actionarray) { + global $user, $conf, $langs; global $filtera, $filtert, $filted; + global $theme_datacolor; $curtime = dolibarr_mktime (0, 0, 0, $month, $day, $year); - print '
'.$langs->trans("Monday")."
'; - print ''; - print '
'.dolibarr_print_date($curtime,'%a %d').'
'; + print ''; + print ''; + print ''; + if (! $i) print ' '; + print ''; print '
'; + print dolibarr_print_date($curtime,'%a %d'); + print ''; + print ''; + print img_picto($langs->trans("NewAction"),'edit_add.png'); + print ''; + print '
'; // Minimum 60px height //$curtime = dolibarr_mktime (0, 0, 0, $month, $day, $year); $i=0; - foreach ($actionarray as $daykey => $action) + foreach ($actionarray as $daykey => $notused) { - $annee = date('Y',$action->date_start_in_calendar); - $mois = date('m',$action->date_start_in_calendar); - $jour = date('d',$action->date_start_in_calendar); + $annee = date('Y',$daykey); + $mois = date('m',$daykey); + $jour = date('d',$daykey); if ($day==$jour && $month==$mois && $year==$annee) { - if ($i) print "
"; - print $action->getNomUrl(1,9).$action->getLibStatut(3); - $i++; + foreach ($actionarray[$daykey] as $index => $action) + { + $ponct=($action->date_start_in_calendar == $action->date_end_in_calendar); + // Show rect of event + $colorindex=0; + if ($action->author->id == $user->id || $action->usertodo->id == $user->id || $action->userdone->id == $user->id) $colorindex=1; + $color=sprintf("%02x%02x%02x",$theme_datacolor[$colorindex][0],$theme_datacolor[$colorindex][1],$theme_datacolor[$colorindex][2]); + //print "x".$color; + print ''; + print ''; + print '
'; + $tmpyearstart = date('Y',$action->date_start_in_calendar); + $tmpmonthstart = date('m',$action->date_start_in_calendar); + $tmpdaystart = date('d',$action->date_start_in_calendar); + $tmpyearend = date('Y',$action->date_end_in_calendar); + $tmpmonthend = date('m',$action->date_end_in_calendar); + $tmpdayend = date('d',$action->date_end_in_calendar); + // Hour start + if ($tmpyearstart == $annee && $tmpmonthstart == $mois && $tmpdaystart == $jour) + { + print dolibarr_print_date($action->date_start_in_calendar,'%H:%M'); + if ($action->date_end_in_calendar && $action->date_start_in_calendar != $action->date_end_in_calendar) + { + if ($tmpyearstart == $tmpyearend && $tmpmonthstart == $tmpmonthend && $tmpdaystart == $tmpdayend) + print '-'; + //else + //print '...'; + } + } + if ($action->date_end_in_calendar && $action->date_start_in_calendar != $action->date_end_in_calendar) + { + if ($tmpyearstart != $tmpyearend || $tmpmonthstart != $tmpmonthend || $tmpdaystart != $tmpdayend) + { + print '...'; + } + } + // Hour end + if ($action->date_end_in_calendar && $action->date_start_in_calendar != $action->date_end_in_calendar) + { + if ($tmpyearend == $annee && $tmpmonthend == $mois && $tmpdayend == $jour) + print dolibarr_print_date($action->date_end_in_calendar,'%H:%M'); + } + print '
'; + print $action->getNomUrl(0,14,'cal_event'); + print '
'.$action->getLibStatut(3); + print '
'; + $i++; + } } } - print ' 
'; } diff --git a/htdocs/lib/menubase.class.php b/htdocs/lib/menubase.class.php index c83682b6d46..0aff7447fd8 100644 --- a/htdocs/lib/menubase.class.php +++ b/htdocs/lib/menubase.class.php @@ -403,7 +403,7 @@ class Menubase $leftmenuConstraint = false; $str = "if(" . $tab[$x][6] . ") \$leftmenuConstraint = true;"; - eval ($str); + dol_eval ($str); if ($leftmenuConstraint == true) { $this->newmenu->add_submenu(DOL_URL_ROOT . $tab[$x][2], $tab[$x][3], $rang -1, $tab[$x][4], $tab[$x][5]); $this->recur($tab, $tab[$x][0], $rang +1); @@ -440,7 +440,7 @@ class Menubase $obj = $this->db->fetch_object($result); $strconstraint = "if(!(" . $obj->action . ")) { \$constraint = false; }"; - eval ($strconstraint); + dol_eval ($strconstraint); $i++; } } @@ -463,7 +463,7 @@ class Menubase $i = 0; while (($i < count($tab_rights)) && ($rights == true)) { $str = "if(!(" . $strRights . ")) { \$rights = false;}"; - eval ($str); + dol_eval ($str); $i++; } } else @@ -537,7 +537,7 @@ class Menubase if ($objm->perms) { $str = "if(!(".$objm->perms.")) \$right = false;"; - eval($str); + dol_eval($str); } // Define $chaine @@ -580,10 +580,17 @@ class Menubase { dolibarr_print_error($this->db); } - + return $tabMenu; - } } + +function dol_eval($s) +{ + // \todo + // Warning. We must add code to exclude test if it contains = (affectation) that is not == (compare) + return eval($s); +} + ?> diff --git a/htdocs/theme/auguria/auguria.css.php b/htdocs/theme/auguria/auguria.css.php index 02e7c55702e..37fdee4c1a5 100644 --- a/htdocs/theme/auguria/auguria.css.php +++ b/htdocs/theme/auguria/auguria.css.php @@ -355,17 +355,17 @@ img.login /* Barre de gauche */ /* ============================================================================== */ -a.vmenu:link { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1em 1em 1em 1em; } -a.vmenu:visited { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1em 1em 1em 1em; } -a.vmenu:active { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1em 1em 1em 1em; } -a.vmenu:hover { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1em 1em 1em 1em; } -font.vmenudisabled { font-size:11px; text-align:left; font-weight: bold; color: #757575; margin: 1em 1em 1em 1em; } +a.vmenu:link { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 1px; } +a.vmenu:visited { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 1px; } +a.vmenu:active { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 1px; } +a.vmenu:hover { font-size:11px; text-align:left; font-weight: bold; color: #FFFFFF; margin: 1px 1px 1px 1px; } +font.vmenudisabled { font-size:11px; text-align:left; font-weight: bold; color: #757575; margin: 1px 1px 1px 1px; } -a.vsmenu:link { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:visited { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:active { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); margin: 1em 1em 1em 1em; } -a.vsmenu:hover { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); margin: 1em 1em 1em 1em; } -font.vsmenudisabled { font-size:11px; text-align:left; font-weight: normal; color: #757575; margin: 1em 1em 1em 1em; } +a.vsmenu:link { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 1px; } +a.vsmenu:visited { font-size:11px; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 1px; } +a.vsmenu:active { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); 1px 1px 1px 1px; } +a.vsmenu:hover { font-size:11px; text-align:left; font-weight: normal; color: RGB(94,148,181); margin: 1px 1px 1px 1px; } +font.vsmenudisabled { font-size:11px; text-align:left; font-weight: normal; color: #757575; margin: 1px 1px 1px 1px; } a.help:link { font-size: 10px; font-weight: bold; background: #FFFFFF; border: 1px solid #8CACBB; color: #68ACCF; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } a.help:visited { font-size: 10px; font-weight: bold; background: #FFFFFF; border: 1px solid #8CACBB; color: #68ACCF; padding: 0em 0.7em; margin: 0em 0.5em; text-decoration: none; white-space: nowrap; } @@ -1206,10 +1206,16 @@ cursor: pointer; /* Module agenda */ /* ============================================================================== */ -.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; } -.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; } -.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; } -.cal_today { background: #DDFFDD; border: solid 1px #ACBCBB; } +.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_today { background: #FFFFFF; border: solid 2px #6C7C7B; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +table.cal_event { border-collapse: collapse; margin-bottom: 1px; } +table.cal_event td { border: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px; padding-bottom: 0px; } */ +.cal_event a:link { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:visited { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:active { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal; !important } diff --git a/htdocs/theme/auguria/img/star.png b/htdocs/theme/auguria/img/star.png index b6bbefb4c2e..4b6b4584675 100644 Binary files a/htdocs/theme/auguria/img/star.png and b/htdocs/theme/auguria/img/star.png differ diff --git a/htdocs/theme/bluelagoon/bluelagoon.css b/htdocs/theme/bluelagoon/bluelagoon.css index 6f8589d673e..43b7d58f400 100644 --- a/htdocs/theme/bluelagoon/bluelagoon.css +++ b/htdocs/theme/bluelagoon/bluelagoon.css @@ -258,13 +258,13 @@ a.vmenu:link { font-size: 12px; font: helvetica, verdana, arial, sans-serif; a.vmenu:visited { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; } a.vmenu:active { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; } a.vmenu:hover { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; text-decoration: underline; } -font.vmenudisabled { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #a3a590; margin: 1em 1em 1em 1em; } +font.vmenudisabled { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #a3a590; margin: 1px 1px 1px 6px; } -a.vsmenu:link { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:visited { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:active { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:hover { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; text-decoration: underline; } -font.vsmenudisabled { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #a3a590; margin: 1em 1em 1em 1em; } +a.vsmenu:link { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:visited { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:active { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:hover { font-size: 12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; text-decoration: underline; } +font.vsmenudisabled { font-size:12px; font: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #a3a590; margin: 1px 1px 1px 6px; } a.help:link { font-size:11px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; } a.help:visited { font-size:11px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; } @@ -759,8 +759,14 @@ cursor: pointer; /* Module agenda */ /* ============================================================================== */ -.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; } -.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; } -.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; } -.cal_today { background: #DDFFDD; border: solid 1px #ACBCBB; } +.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_today { background: #FFFFFF; border: solid 2px #6C7C7B; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +table.cal_event { border-collapse: collapse; margin-bottom: 1px; } +table.cal_event td { border: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px; padding-bottom: 0px; } */ +.cal_event a:link { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:visited { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:active { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal; !important } diff --git a/htdocs/theme/bluelagoon/img/star.png b/htdocs/theme/bluelagoon/img/star.png index 2f3ebc13f01..4b6b4584675 100644 Binary files a/htdocs/theme/bluelagoon/img/star.png and b/htdocs/theme/bluelagoon/img/star.png differ diff --git a/htdocs/theme/eldy/eldy.css.php b/htdocs/theme/eldy/eldy.css.php index 61890f9b9cf..d05fec08613 100644 --- a/htdocs/theme/eldy/eldy.css.php +++ b/htdocs/theme/eldy/eldy.css.php @@ -178,7 +178,7 @@ div.fiche } /* ============================================================================== */ -/* Menu superieur et 1ere ligne tableau */ +/* Menu top et 1ere ligne tableau */ /* ============================================================================== */ div.tmenu @@ -1143,10 +1143,16 @@ td.hidden { /* Module agenda */ /* ============================================================================== */ -.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; } -.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; } -.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; } -.cal_today { background: #DDFFDD; border: solid 1px #ACBCBB; } +.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_today { background: #FFFFFF; border: solid 2px #6C7C7B; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +table.cal_event { border-collapse: collapse; margin-bottom: 1px; } +table.cal_event td { border: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px; padding-bottom: 0px; } +.cal_event a:link { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:visited { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:active { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal; !important } diff --git a/htdocs/theme/eldy/graph-color.php b/htdocs/theme/eldy/graph-color.php index e8a80f43400..f9b813f4ef6 100755 --- a/htdocs/theme/eldy/graph-color.php +++ b/htdocs/theme/eldy/graph-color.php @@ -15,15 +15,13 @@ * 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$ */ /** \file htdocs/theme/eldy/graph-color.php \brief Fichier de déclaration des couleurs pour les graphiques \ingroup core - \version $Revision$ + \version $Id$ */ global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet; diff --git a/htdocs/theme/freelug/freelug.css.php b/htdocs/theme/freelug/freelug.css.php index f3143a28863..8c5e9b6fa73 100644 --- a/htdocs/theme/freelug/freelug.css.php +++ b/htdocs/theme/freelug/freelug.css.php @@ -371,11 +371,11 @@ a.vmenu:active { font-family: helvetica, verdana, arial, sans-serif; text-align a.vmenu:hover { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; } font.vmenudisabled { font-size:12px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #a3a590; } -a.vsmenu:link { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:visited { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:active { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:hover { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -font.vsmenudisabled { font-size:12px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #a3a590; margin: 1em 1em 1em 1em; } +a.vsmenu:link { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:visited { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:active { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:hover { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +font.vsmenudisabled { font-size:12px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #a3a590; margin: 1px 1px 1px 6px; } a.help:link { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; } a.help:visited { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; } @@ -970,7 +970,13 @@ td.hidden { /* Module agenda */ /* ============================================================================== */ -.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; } -.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; } -.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; } -.cal_today { background: #DDFFDD; border: solid 1px #ACBCBB; } +.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_today { background: #FFFFFF; border: solid 2px #6C7C7B; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +table.cal_event { border-collapse: collapse; margin-bottom: 1px; } +table.cal_event td { border: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px; padding-bottom: 0px; } */ +.cal_event a:link { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:visited { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:active { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal; !important } diff --git a/htdocs/theme/freelug/img/star.png b/htdocs/theme/freelug/img/star.png index b6bbefb4c2e..4b6b4584675 100755 Binary files a/htdocs/theme/freelug/img/star.png and b/htdocs/theme/freelug/img/star.png differ diff --git a/htdocs/theme/yellow/graph-color.php b/htdocs/theme/yellow/graph-color.php index 45fa9c4a18b..a8d7b8e5b46 100755 --- a/htdocs/theme/yellow/graph-color.php +++ b/htdocs/theme/yellow/graph-color.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur +/* Copyright (C) 2004 Rodolphe Quiedeville + * Copyright (C) 2004-2008 Laurent Destailleur * * 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 @@ -15,21 +15,18 @@ * 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$ */ /** \file htdocs/theme/yellow/graph-color.php \brief Fichier de déclaration des couleurs pour les graphiques \ingroup core - \version $Revision$ + \version $Id$ */ global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet; $theme_bordercolor = array(235,235,224); -$theme_datacolor = array(array(120,130,150), array(160,160,180), array(190,190,220)); +$theme_datacolor = array(array(160,140,120), array(140,160,130), array(190,190,220)); $theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4')); $theme_bgcoloronglet = array(hexdec('DC'),hexdec('DC'),hexdec('D3')); diff --git a/htdocs/theme/yellow/img/star.png b/htdocs/theme/yellow/img/star.png index b6bbefb4c2e..4b6b4584675 100644 Binary files a/htdocs/theme/yellow/img/star.png and b/htdocs/theme/yellow/img/star.png differ diff --git a/htdocs/theme/yellow/yellow.css.php b/htdocs/theme/yellow/yellow.css.php index 22833705079..dd8c28ef512 100644 --- a/htdocs/theme/yellow/yellow.css.php +++ b/htdocs/theme/yellow/yellow.css.php @@ -330,11 +330,11 @@ a.vmenu:active { font-family: helvetica, verdana, arial, sans-serif; text-align a.vmenu:hover { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: bold; } font.vmenudisabled { font-size:12px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #aaa593; margin: 0em 0em 0em 0em; } -a.vsmenu:link { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:visited { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:active { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -a.vsmenu:hover { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1em 1em 1em 1em; } -font.vsmenudisabled { font-size:12px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #aaa593; margin: 1em 1em 1em 1em; } +a.vsmenu:link { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:visited { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:active { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +a.vsmenu:hover { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #202020; margin: 1px 1px 1px 6px; } +font.vsmenudisabled { font-size:12px; font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; color: #aaa593; margin: 1px 1px 1px 6px; } a.help:link { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; } a.help:visited { font-family: helvetica, verdana, arial, sans-serif; text-align:left; font-weight: normal; } @@ -343,6 +343,7 @@ a.help:hover { font-family: helvetica, verdana, arial, sans-serif; text-align: div.blockvmenupair { + width:160px; border-right: 1px solid #555555; border-bottom: 1px solid #555555; background: #dcdcb3; @@ -350,12 +351,16 @@ div.blockvmenupair color: #000000; text-align:left; text-decoration: none; - padding: 3px; + padding-left: 3px; + padding-right: 1px; + padding-top: 3px; + padding-bottom: 3px; margin: 1px 0px 0px 0px; } div.blockvmenuimpair { + width:160px; border-right: 1px solid #555555; border-bottom: 1px solid #555555; background: #dcdcb3; @@ -363,12 +368,16 @@ div.blockvmenuimpair color: #000000; text-align:left; text-decoration: none; - padding: 3px; + padding-left: 3px; + padding-right: 1px; + padding-top: 3px; + padding-bottom: 3px; margin: 1px 0px 0px 0px; } div.help { + width:160px; border-right: 1px solid #000000; border-bottom: 1px solid #000000; background: #f0f0f0; @@ -376,7 +385,10 @@ div.help color: #000000; text-align:left; text-decoration: none; - padding: 3px; + padding-left: 3px; + padding-right: 1px; + padding-top: 3px; + padding-bottom: 3px; margin: 1px 0px 0px 0px; } @@ -873,11 +885,16 @@ cursor: pointer; /* Module agenda */ /* ============================================================================== */ -.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; } -.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; } -.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; } -.cal_today { background: #DDFFDD; border: solid 1px #ACBCBB; } - +.cal_other_month { background: #DDDDDD; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_past_month { background: #EEEEEE; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_current_month { background: #FFFFFF; border: solid 1px #ACBCBB; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +.cal_today { background: #FFFFFF; border: solid 2px #6C7C7B; padding-left: 2px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; } +table.cal_event { border-collapse: collapse; margin-bottom: 1px; } +table.cal_event td { border: 0px; padding-left: 0px; padding-right: 2px; padding-top: 0px; padding-bottom: 0px; } */ +.cal_event a:link { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:visited { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:active { color: #111111; font-size: 11px; font-weight: normal; !important } +.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal; !important } /* ============================================================================== */