Look: A lot of enhancements in Dolibarr skins

This commit is contained in:
Laurent Destailleur 2008-11-16 18:55:00 +00:00
parent a236ceb594
commit e653822537
18 changed files with 598 additions and 481 deletions

View File

@ -155,7 +155,7 @@ $nav.="<a href=\"?year=".$next_year."&amp;month=".$next_month."&amp;region=".$re
// Must be after the nav definition // Must be after the nav definition
$param.='&year='.$year.'&month='.$month.($day?'&day='.$day:''); $param.='&year='.$year.'&month='.$month.($day?'&day='.$day:'');
print_fiche_titre($title,$nav,""); print_fiche_titre($title,$nav);
// Filters // Filters
if ($canedit) if ($canedit)

View File

@ -19,11 +19,11 @@
*/ */
/** /**
\file htdocs/fourn/liste.php * \file htdocs/fourn/liste.php
\ingroup fournisseur * \ingroup fournisseur
\brief Page accueil de la zone fournisseurs * \brief Page accueil de la zone fournisseurs
\version $Id$ * \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");

View File

@ -22,7 +22,7 @@
\file htdocs/index.php \file htdocs/index.php
\brief Page accueil par defaut \brief Page accueil par defaut
\version $Id$ \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/boxes.php"); require_once(DOL_DOCUMENT_ROOT."/boxes.php");
@ -37,8 +37,8 @@ $infobox=new InfoBox($db);
/* /*
* Affichage page * Affichage page
*/ */
llxHeader(); llxHeader();
@ -295,7 +295,7 @@ if ($conf->agenda->enabled && $user->rights->agenda->myactions->read)
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre commandes clients à traiter // Nbre commandes clients à traiter
@ -319,7 +319,7 @@ if ($conf->commande->enabled && $user->rights->commande->lire)
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre propales ouvertes (expirées) // Nbre propales ouvertes (expirées)
@ -370,7 +370,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre services à activer (en retard) // Nbre services à activer (en retard)
@ -396,7 +396,7 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre services actifs (à renouveler) // Nbre services actifs (à renouveler)
@ -422,7 +422,7 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre factures fournisseurs (à payer) // Nbre factures fournisseurs (à payer)
@ -448,7 +448,7 @@ if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->fac
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre factures clients (à payer) // Nbre factures clients (à payer)
@ -474,7 +474,7 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre ecritures à rapprocher // Nbre ecritures à rapprocher
@ -500,10 +500,10 @@ if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre ecritures à rapprocher // Nbre ecritures à rapprocher
if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id) if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id)
{ {
$langs->load("banks"); $langs->load("banks");
@ -526,7 +526,7 @@ if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
// Nbre adhérent valides (attente cotisation) // Nbre adhérent valides (attente cotisation)
@ -552,7 +552,7 @@ if ($conf->adherent->enabled && $user->rights->adherent->lire && ! $user->societ
else print '&nbsp;'; else print '&nbsp;';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
print "\n"; print "\n";
} }
print '</table>'; print '</table>';
@ -576,7 +576,7 @@ $boxid_right = array();
if (sizeof($boxarray)) if (sizeof($boxarray))
{ {
print '<br>'; print '<br>';
print_fiche_titre($langs->trans("OtherInformationsBoxes")); print_fiche_titre($langs->trans("OtherInformationsBoxes"),'','');
print '<table width="100%" class="notopnoleftnoright">'; print '<table width="100%" class="notopnoleftnoright">';
print '<tr><td class="notopnoleftnoright">'."\n"; print '<tr><td class="notopnoleftnoright">'."\n";

View File

@ -1706,15 +1706,15 @@ function dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite)
/** /**
\brief Show title line of an array * \brief Show title line of an array
\param name libelle champ * \param name libelle champ
\param file url pour clic sur tri * \param file url pour clic sur tri
\param field champ de tri * \param field champ de tri
\param begin ("" par defaut) * \param begin ("" par defaut)
\param options ("" par defaut) * \param options ("" par defaut)
\param td options de l'attribut td ("" par defaut) * \param td options de l'attribut td ("" par defaut)
\param sortfield nom du champ sur lequel est effectu<EFBFBD> le tri du tableau * \param sortfield nom du champ sur lequel est effectu<EFBFBD> le tri du tableau
\param sortorder ordre du tri * \param sortorder ordre du tri
*/ */
function print_liste_field_titre($name, $file, $field, $begin="", $options="", $td="", $sortfield="", $sortorder="") function print_liste_field_titre($name, $file, $field, $begin="", $options="", $td="", $sortfield="", $sortorder="")
{ {
@ -1767,8 +1767,8 @@ function print_liste_field_titre($name, $file, $field, $begin="", $options="", $
} }
/** /**
\brief Affichage d'un titre * \brief Affichage d'un titre
\param titre Le titre a afficher * \param titre Le titre a afficher
*/ */
function print_titre($titre) function print_titre($titre)
{ {
@ -1776,31 +1776,157 @@ function print_titre($titre)
} }
/** /**
\brief Affichage d'un titre d'une fiche, align<EFBFBD> a gauche * \brief Affichage d'un titre d'une fiche, align<EFBFBD> a gauche
\param titre Le titre a afficher * \param titre Le titre a afficher
\param mesg Message supl<EFBFBD>mentaire a afficher a droite * \param mesg Message suplementaire a afficher a droite
\param picto Picto pour ligne de titre * \param picto Icon to use before title (should be a 32x32 transparent png file)
\param pictoisfullpath 1=Picto is a full absolute url of image * \param pictoisfullpath 1=Icon name is a full absolute url of image
*/ */
function print_fiche_titre($titre, $mesg='', $picto='', $pictoisfullpath=0) function print_fiche_titre($titre, $mesg='', $picto='title.gif', $pictoisfullpath=0)
{ {
print "\n"; print "\n";
print '<table width="100%" border="0" class="notopnoleftnoright"><tr>'; print '<table width="100%" border="0" class="notopnoleftnoright" style="margin-bottom: 2px;"><tr>';
if ($picto) print '<td width="24" align="left" valign="middle">'.img_picto('',$picto, '', $pictoisfullpath).'</td>'; if ($picto && $titre) print '<td class="nobordernopadding" width="40" align="left" valign="middle">'.img_picto('',$picto, '', $pictoisfullpath).'</td>';
print '<td class="notopnoleftnoright" valign="middle">'; print '<td class="nobordernopadding" valign="middle">';
print '<div class="titre">'.$titre.'</div>'; print '<div class="titre" valign="middle">'.$titre.'</div>';
print '</td>'; print '</td>';
if (strlen($mesg)) if (strlen($mesg))
{ {
print '<td align="right" valign="middle"><b>'.$mesg.'</b></td>'; print '<td class="nobordernopadding" align="right" valign="middle"><b>'.$mesg.'</b></td>';
} }
print '</tr></table>'."\n"; print '</tr></table>'."\n";
} }
/** /**
\brief Effacement d'un fichier * \brief Print a title with navigation controls for pagination
\param file Fichier a effacer ou masque de fichier a effacer * \param titre Title to show (required)
\param boolean true if file deleted, false if error * \param page Numero of page (required)
* \param file Url of page (required)
* \param options parametres complementaires lien ('' par defaut)
* \param sortfield champ de tri ('' par defaut)
* \param sortorder ordre de tri ('' par defaut)
* \param center chaine du centre ('' par defaut)
* \param num number of records found by select with limit+1
* \param totalnboflines Total number of records/lines for all pages (if known)
* \param picto Icon to use before title (should be a 32x32 transparent png file)
* \param pictoisfullpath 1=Icon name is a full absolute url of image
*/
function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $center='', $num=-1, $totalnboflines=0, $picto='title.gif', $pictoisfullpath=0)
{
global $conf,$langs;
if ($num > $conf->liste_limit or $num == -1)
{
$nextpage = 1;
}
else
{
$nextpage = 0;
}
print '<table width="100%" border="0" class="notopnoleftnoright" style="margin-bottom: 2px;"><tr>';
$pagelist = '';
// Left
if ($page > 0 || $num > $conf->liste_limit)
{
if ($totalnboflines)
{
if ($picto && $titre) print '<td class="nobordernopadding" width="40" align="left" valign="middle">'.img_picto('',$picto, '', $pictoisfullpath).'</td>';
print '<td class="nobordernopadding">';
print '<div class="titre">'.$titre.'</div>';
print '</td>';
$maxnbofpage=10;
$nbpages=ceil($totalnboflines/$conf->liste_limit);
$cpt=($page-$maxnbofpage);
if ($cpt < 0) { $cpt=0; }
$pagelist.=$langs->trans('Page');
if ($cpt>=1)
{
$pagelist.=' <a href="'.$file.'?page=0'.$options.'&amp;sortfield='.$sortfield.'&amp;sortorder='.$sortorder.'">1</a>';
if ($cpt >= 2) $pagelist.=' ...';
}
do
{
if($cpt==$page)
{
$pagelist.= ' <u>'.($page+1).'</u>';
}
else
{
$pagelist.= ' <a href="'.$file.'?page='.$cpt.$options.'&amp;sortfield='.$sortfield.'&amp;sortorder='.$sortorder.'">'.($cpt+1).'</a>';
}
$cpt++;
}
while ($cpt < $nbpages && $cpt<=$page+$maxnbofpage);
if ($cpt<$nbpages)
{
if ($cpt<$nbpages-1) $pagelist.= ' ...';
$pagelist.= ' <a href="'.$file.'?page='.($nbpages-1).$options.'&amp;sortfield='.$sortfield.'&amp;sortorder='.$sortorder.'">'.$nbpages.'</a>';
}
}
else
{
if ($picto && $titre) print '<td class="nobordernopadding" width="40" align="left" valign="middle">'.img_picto('',$picto, '', $pictoisfullpath).'</td>';
print '<td class="nobordernopadding">';
print '<div class="titre">'.$titre.'</div>';
$pagelist.= $langs->trans('Page').' '.($page+1);
print '</td>';
}
}
else
{
if ($picto && $titre) print '<td class="nobordernopadding" width="40" align="left" valign="middle">'.img_picto('',$picto, '', $pictoisfullpath).'</td>';
print '<td class="nobordernopadding"><div class="titre">'.$titre.'</div></td>';
}
// Center
if ($center)
{
print '<td class="nobordernopadding" align="left" valign="middle">'.$center.'</td>';
}
// Right
print '<td class="nobordernopadding" align="right" valign="middle">';
if ($sortfield) $options .= "&amp;sortfield=".$sortfield;
if ($sortorder) $options .= "&amp;sortorder=".$sortorder;
// Affichage des fleches de navigation
print_fleche_navigation($page,$file,$options,$nextpage,$pagelist);
print '</td>';
print '</tr></table>';
}
/**
* \brief Fonction servant a afficher les fleches de navigation dans les pages de listes
* \param page Numero of page
* \param file Lien
* \param options Autres parametres d'url a propager dans les liens ("" par defaut)
* \param nextpage Faut-il une page suivante
* \param betweenarraows HTML Content to show between arrows
*/
function print_fleche_navigation($page,$file,$options='',$nextpage,$betweenarrows='')
{
global $conf, $langs;
if ($page > 0)
{
print '<a href="'.$file.'?page='.($page-1).$options.'">'.img_previous($langs->trans("Previous")).'</a>';
}
if ($betweenarrows) print ($page > 0?' ':'').$betweenarrows.($nextpage>0?' ':'');
if ($nextpage > 0)
{
print '<a href="'.$file.'?page='.($page+1).$options.'">'.img_next($langs->trans("Next")).'</a>';
}
}
/**
* \brief Effacement d'un fichier
* \param file Fichier a effacer ou masque de fichier a effacer
* \param boolean true if file deleted, false if error
*/ */
function dol_delete_file($file) function dol_delete_file($file)
{ {
@ -1884,124 +2010,6 @@ function dol_avscan_file($file)
return $malware; return $malware;
} }
/**
\brief Fonction print_barre_liste
\param titre Titre de la page
\param page numero de la page
\param file lien
\param options parametres complementaires lien ('' par defaut)
\param sortfield champ de tri ('' par defaut)
\param sortorder ordre de tri ('' par defaut)
\param center chaine du centre ('' par defaut)
\param num number of records found by select with limit+1
\param totalnboflines Total number of records/lines for all pages (if known)
*/
function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $center='', $num=-1, $totalnboflines=0)
{
global $conf,$langs;
if ($num > $conf->liste_limit or $num == -1)
{
$nextpage = 1;
}
else
{
$nextpage = 0;
}
print '<table width="100%" border="0" class="notopnoleftnoright">';
$pagelist = '';
if ($page > 0 || $num > $conf->liste_limit)
{
if ($totalnboflines)
{
print '<tr><td class="notopnoleftnoright">';
print '<div class="titre">'.$titre.'</div>';
print '</td>';
$maxnbofpage=10;
$nbpages=ceil($totalnboflines/$conf->liste_limit);
$cpt=($page-$maxnbofpage);
if ($cpt < 0) { $cpt=0; }
$pagelist.=$langs->trans('Page');
if ($cpt>=1)
{
$pagelist.=' <a href="'.$file.'?page=0'.$options.'&amp;sortfield='.$sortfield.'&amp;sortorder='.$sortorder.'">1</a>';
if ($cpt >= 2) $pagelist.=' ...';
}
do
{
if($cpt==$page)
{
$pagelist.= ' <u>'.($page+1).'</u>';
}
else
{
$pagelist.= ' <a href="'.$file.'?page='.$cpt.$options.'&amp;sortfield='.$sortfield.'&amp;sortorder='.$sortorder.'">'.($cpt+1).'</a>';
}
$cpt++;
}
while ($cpt < $nbpages && $cpt<=$page+$maxnbofpage);
if ($cpt<$nbpages)
{
if ($cpt<$nbpages-1) $pagelist.= ' ...';
$pagelist.= ' <a href="'.$file.'?page='.($nbpages-1).$options.'&amp;sortfield='.$sortfield.'&amp;sortorder='.$sortorder.'">'.$nbpages.'</a>';
}
}
else
{
print '<tr><td class="notopnoleftnoright">';
print '<div class="titre">'.$titre.'</div>';
$pagelist.= $langs->trans('Page').' '.($page+1);
print '</td>';
}
}
else
{
print '<tr><td class="notopnoleftnoright"><div class="titre">'.$titre.'</div></td>';
}
if ($center)
{
print '<td align="left">'.$center.'</td>';
}
print '<td align="right">';
if ($sortfield) $options .= "&amp;sortfield=".$sortfield;
if ($sortorder) $options .= "&amp;sortorder=".$sortorder;
// Affichage des fleches de navigation
print_fleche_navigation($page,$file,$options,$nextpage,$pagelist);
print '</td></tr></table>';
}
/**
\brief Fonction servant a afficher les fleches de navigation dans les pages de listes
\param page Num<EFBFBD>ro de la page
\param file Lien
\param options Autres parametres d'url a propager dans les liens ("" par defaut)
\param nextpage Faut-il une page suivante
\param betweenarraows HTML Content to show between arrows
*/
function print_fleche_navigation($page,$file,$options='',$nextpage,$betweenarrows='')
{
global $conf, $langs;
if ($page > 0)
{
print '<a href="'.$file.'?page='.($page-1).$options.'">'.img_previous($langs->trans("Previous")).'</a>';
}
if ($betweenarrows) print ($page > 0?' ':'').$betweenarrows.($nextpage>0?' ':'');
if ($nextpage > 0)
{
print '<a href="'.$file.'?page='.($page+1).$options.'">'.img_next($langs->trans("Next")).'</a>';
}
}
/** /**
* \brief Fonction qui retourne un taux de tva format<EFBFBD> pour visualisation * \brief Fonction qui retourne un taux de tva format<EFBFBD> pour visualisation

View File

@ -18,10 +18,10 @@
*/ */
/** /**
\file htdocs/theme/auguria/auguria.css.php * \file htdocs/theme/auguria/auguria.css.php
\brief Fichier de style CSS du theme Auguria * \brief Fichier de style CSS du theme Auguria
\version $Id$ * \version $Id$
*/ */
require("../../conf/conf.php"); require("../../conf/conf.php");
@ -152,7 +152,7 @@ div.tmenu
background-image : url(<?php echo $dolibarr_main_url_root.'/theme/auguria/img/nav.jpg' ?>) ; background-image : url(<?php echo $dolibarr_main_url_root.'/theme/auguria/img/nav.jpg' ?>) ;
height: 22px; height: 22px;
} }
div.tmenu .tmenudisabled a.tmenudisabled
{ {
color: #9FCED9; color: #9FCED9;
font-size: 12px; font-size: 12px;
@ -162,6 +162,26 @@ div.tmenu .tmenudisabled
cursor: not-allowed; cursor: not-allowed;
font-weight: normal; font-weight: normal;
} }
a.tmenudisabled:link
{
color: #9FCED9;
font-weight: normal;
}
a.tmenudisabled:visited
{
color: #9FCED9;
font-weight: normal;
}
a.tmenudisabled:hover
{
color: #9FCED9;
font-weight: normal;
}
a.tmenudisabled:active
{
color: #9FCED9;
font-weight: normal;
}
table.tmenu table.tmenu
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -39,7 +39,7 @@ body
a a
{ {
text-decoration: none; text-decoration: none;
} }
div.tmenu div.tmenu
{ {
@ -58,6 +58,33 @@ div.tmenu
height: 20px; height: 20px;
} }
a.tmenudisabled
{
color: #757575;
font-weight: normal;
cursor: not-allowed;
}
a.tmenudisabled:link
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:visited
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:hover
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:active
{
color: #757575;
font-weight: normal;
}
table.tmenu table.tmenu
{ {
padding: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -177,7 +177,8 @@ div.tmenu
color: #000000; color: #000000;
text-decoration: none; text-decoration: none;
} }
div.tmenu .tmenudisabled
a.tmenudisabled
{ {
color: #757575; color: #757575;
font-size: 12px; font-size: 12px;
@ -187,6 +188,26 @@ div.tmenu .tmenudisabled
cursor: not-allowed; cursor: not-allowed;
font-weight: normal; font-weight: normal;
} }
a.tmenudisabled:link
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:visited
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:hover
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:active
{
color: #757575;
font-weight: normal;
}
table.tmenu table.tmenu
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -173,7 +173,8 @@ div.tmenu
color: #000000; color: #000000;
text-decoration: none; text-decoration: none;
} }
div.tmenu .tmenudisabled
a.tmenudisabled
{ {
color: #757575; color: #757575;
font-size: 12px; font-size: 12px;
@ -181,6 +182,26 @@ div.tmenu .tmenudisabled
margin: 0px 0px 6px 0px; margin: 0px 0px 6px 0px;
cursor: not-allowed; cursor: not-allowed;
} }
a.tmenudisabled:link
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:visited
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:hover
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:active
{
color: #757575;
font-weight: normal;
}
table.tmenu table.tmenu
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -18,10 +18,10 @@
*/ */
/** /**
\file htdocs/theme/yellow/yellow.css * \file htdocs/theme/yellow/yellow.css
\brief Fichier de style CSS du theme Yellow * \brief Fichier de style CSS du theme Yellow
\version $Id$ * \version $Id$
*/ */
require("../../conf/conf.php"); require("../../conf/conf.php");
@ -160,13 +160,33 @@ div.tmenu
color: #000000; color: #000000;
text-decoration: none; text-decoration: none;
} }
div.tmenu .tmenudisabled a.tmenudisabled
{ {
color: #757575; color: #757575;
font-size: 12px; font-size: 12px;
padding: 0px 5px; padding: 0px 5px;
cursor: not-allowed; cursor: not-allowed;
} }
a.tmenudisabled:link
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:visited
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:hover
{
color: #757575;
font-weight: normal;
}
a.tmenudisabled:active
{
color: #757575;
font-weight: normal;
}
table.tmenu table.tmenu
{ {