2
0
forked from Wavyzz/dolibarr

NEW Add fa_icon on load_fiche_titre

This commit is contained in:
Alexandre SPANGARO
2019-09-28 06:02:25 +02:00
parent 4b73e09c60
commit 7f93f046e9
12 changed files with 20 additions and 24 deletions

View File

@@ -50,7 +50,7 @@ $hookmanager->initHooks(array('accountancyindex'));
llxHeader('', $langs->trans("AccountancyArea"));
print load_fiche_titre($langs->trans("AccountancyArea"), '', 'title_accountancy');
print load_fiche_titre($langs->trans("AccountancyArea"), '', 'accountancy');
//dol_fiche_head();
$step = 0;

View File

@@ -52,7 +52,7 @@ $staticmember=new Adherent($db);
$statictype=new AdherentType($db);
$subscriptionstatic=new Subscription($db);
print load_fiche_titre($langs->trans("MembersArea"), '', 'title_members.png');
print load_fiche_titre($langs->trans("MembersArea"), '', 'members');
$Adherents=array();
$AdherentsAValider=array();

View File

@@ -79,7 +79,7 @@ if (! empty($conf->fournisseur->enabled)) $supplierorderstatic=new CommandeFourn
llxHeader("", $langs->trans("CommercialArea"));
print load_fiche_titre($langs->trans("CommercialArea"), '', 'title_commercial.png');
print load_fiche_titre($langs->trans("CommercialArea"), '', 'commercial');
print '<div class="fichecenter"><div class="fichethirdleft">';

View File

@@ -87,7 +87,7 @@ $thirdpartystatic = new Societe($db);
llxHeader("", $langs->trans("AccountancyTreasuryArea"));
print load_fiche_titre($langs->trans("AccountancyTreasuryArea"), '', 'title_invoicing.png');
print load_fiche_titre($langs->trans("AccountancyTreasuryArea"), '', 'invoicing');
print '<div class="fichecenter"><div class="fichethirdleft">';

View File

@@ -3030,37 +3030,33 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
$fakey = 'fa-cog';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'home') {
$fakey = 'fa-home';
$fasize = '2.4em';
}
elseif ($pictowithoutext == 'companies') {
$fakey = 'fa-building';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'products') {
$fakey = 'fa-box-open';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'commercial') {
$fakey = 'fa-user-tie';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'invoicing') {
$fakey = 'fa-file-invoice';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'accountancy') {
$fakey = 'fa-coins';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'project') {
$fakey = 'fa-project-diagram';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'hrm') {
$fakey = 'fa-umbrella-beach';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'members') {
$fakey = 'fa-user-friends';
@@ -3068,11 +3064,11 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
}
elseif ($pictowithoutext == 'ticket') {
$fakey = 'fa-sticky-note';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'generic') {
$fakey = 'fa-folder-open';
$fasize = '2.4em';
$fasize = '1.4em';
}
elseif ($pictowithoutext == 'switch_off') {
$fakey = 'fa-toggle-off';

View File

@@ -43,7 +43,7 @@ llxHeader("", $langs->trans("Tools"), "");
$text=$langs->trans("Tools");
print load_fiche_titre($text);
print load_fiche_titre($text, '', 'generic');
// Show description of content
print '<div class="justify">'.$langs->trans("ToolsDesc").'</div><br><br>';

View File

@@ -77,7 +77,7 @@ $childids[]=$user->id;
llxHeader('', $langs->trans('HRMArea'));
print load_fiche_titre($langs->trans("HRMArea"), '', 'title_hrm.png');
print load_fiche_titre($langs->trans("HRMArea"), '', 'hrm');
if (! empty($setupcompanynotcomplete))

View File

@@ -80,7 +80,7 @@ llxHeader('', $title);
$resultboxes=FormOther::getBoxesArea($user, "0"); // Load $resultboxes (selectboxlist + boxactivated + boxlista + boxlistb)
print load_fiche_titre($langs->trans("HomeArea"), $resultboxes['selectboxlist'], 'title_home');
print load_fiche_titre($langs->trans("HomeArea"), $resultboxes['selectboxlist'], 'home');
if (! empty($conf->global->MAIN_MOTD))
{

View File

@@ -77,7 +77,7 @@ if ((isset($_GET["type"]) && $_GET["type"] == 1) || empty($conf->product->enable
llxHeader("", $langs->trans("ProductsAndServices"), $helpurl);
$linkback="";
print load_fiche_titre($transAreaType, $linkback, 'title_products.png');
print load_fiche_titre($transAreaType, $linkback, 'products');
print '<div class="fichecenter"><div class="fichethirdleft">';

View File

@@ -88,7 +88,7 @@ $morehtml.='</SELECT>';
$morehtml.='<input type="submit" class="button" name="refresh" value="'.$langs->trans("Refresh").'">';
$morehtml.='</form>';
print_barre_liste($title, 0, $_SERVER["PHP_SELF"], '', '', '', '', 0, -1, 'title_project.png', 0, $morehtml);
print_barre_liste($title, 0, $_SERVER["PHP_SELF"], '', '', '', '', 0, -1, 'project', 0, $morehtml);
// Show description of content
print '<div class="opacitymedium">';

View File

@@ -55,7 +55,7 @@ $helpurl='EN:Module_Third_Parties|FR:Module_Tiers|ES:M&oacute;dulo_Terceros';
llxHeader("", $langs->trans("ThirdParties"), $helpurl);
$linkback='';
print load_fiche_titre($transAreaType, $linkback, 'title_companies.png');
print load_fiche_titre($transAreaType, $linkback, 'companies');
//print '<table border="0" width="100%" class="notopnoleftnoright">';

View File

@@ -77,7 +77,7 @@ $tickesupstatic = new Ticket($db);
llxHeader('', $langs->trans('TicketsIndex'), '');
$linkback='';
print load_fiche_titre($langs->trans('TicketsIndex'), $linkback, 'title_ticket.png');
print load_fiche_titre($langs->trans('TicketsIndex'), $linkback, 'ticket');
$dir = '';