New: Add picto on tab titles

This commit is contained in:
Laurent Destailleur 2009-08-05 17:19:55 +00:00
parent bd749f6748
commit 0baf06d2d1
25 changed files with 473 additions and 584 deletions

View File

@ -141,7 +141,7 @@ if ($_GET["socid"])
*/ */
$head = societe_prepare_head($soc); $head = societe_prepare_head($soc);
dol_fiche_head($head, 'category', $langs->trans("ThirdParty")); dol_fiche_head($head, 'category', $langs->trans("ThirdParty"),0,'company');
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';

View File

@ -102,7 +102,7 @@ if ($_GET["action"] == 'delete')
/* /*
* Affiche onglet * View
*/ */
llxHeader(); llxHeader();
@ -144,7 +144,7 @@ if ($objectid > 0)
$head[$h][1] = $langs->trans('Info'); $head[$h][1] = $langs->trans('Info');
$h++; $h++;
dol_fiche_head($head, $hselected, $langs->trans("Action")); dol_fiche_head($head, $hselected, $langs->trans("Action"),0,'task');
// Affichage fiche action en mode visu // Affichage fiche action en mode visu
print '<table class="border" width="100%"'; print '<table class="border" width="100%"';

View File

@ -585,7 +585,6 @@ if ($_GET["action"] == 'create')
/* /*
* Affichage action en mode edition ou visu * Affichage action en mode edition ou visu
*
*/ */
if ($_GET["id"]) if ($_GET["id"])
{ {
@ -640,7 +639,7 @@ if ($_GET["id"])
$head[$h][1] = $langs->trans('Info'); $head[$h][1] = $langs->trans('Info');
$h++; $h++;
dol_fiche_head($head, $hselected, $langs->trans("Action")); dol_fiche_head($head, $hselected, $langs->trans("Action"),0,'task');
$now=gmmktime(); $now=gmmktime();
$delay_warning=$conf->global->MAIN_DELAY_ACTIONS_TODO*24*60*60; $delay_warning=$conf->global->MAIN_DELAY_ACTIONS_TODO*24*60*60;

View File

@ -1,6 +1,6 @@
<?php <?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2009 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,10 +18,10 @@
*/ */
/** /**
\file htdocs/comm/action/info.php * \file htdocs/comm/action/info.php
\ingroup agenda * \ingroup agenda
\brief Page des informations d'une action * \brief Page des informations d'une action
\version $Id$ * \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@ -40,9 +40,9 @@ if ($user->societe_id > 0)
} }
/* /*
* Visualisation de la fiche * View
*
*/ */
llxHeader(); llxHeader();
@ -67,7 +67,7 @@ $head[$h][1] = $langs->trans('Info');
$hselected=$h; $hselected=$h;
$h++; $h++;
dol_fiche_head($head, $hselected, $langs->trans("Action")); dol_fiche_head($head, $hselected, $langs->trans("Action"),0,'task');
print '<table width="100%"><tr><td>'; print '<table width="100%"><tr><td>';

View File

@ -124,7 +124,6 @@ if ($mode == 'search')
} }
} }
llxHeader('',$langs->trans('CustomerCard')); llxHeader('',$langs->trans('CustomerCard'));
$userstatic=new User($db); $userstatic=new User($db);
@ -149,7 +148,7 @@ if ($socid > 0)
$head = societe_prepare_head($objsoc); $head = societe_prepare_head($objsoc);
dol_fiche_head($head, 'customer', $langs->trans("ThirdParty")); dol_fiche_head($head, 'customer', $langs->trans("ThirdParty"),0,'company');
/* /*

View File

@ -89,7 +89,7 @@ if ($_socid > 0)
*/ */
$head = societe_prepare_head($objsoc); $head = societe_prepare_head($objsoc);
dol_fiche_head($head, 'relativediscount', $langs->trans("ThirdParty")); dol_fiche_head($head, 'relativediscount', $langs->trans("ThirdParty"),0,'company');
/* /*

View File

@ -123,7 +123,7 @@ if ($_socid > 0)
*/ */
$head = societe_prepare_head($objsoc); $head = societe_prepare_head($objsoc);
dol_fiche_head($head, 'absolutediscount', $langs->trans("ThirdParty")); dol_fiche_head($head, 'absolutediscount', $langs->trans("ThirdParty"),0,'company');
print '<form method="POST" action="remx.php?id='.$objsoc->id.'">'; print '<form method="POST" action="remx.php?id='.$objsoc->id.'">';

View File

@ -94,7 +94,7 @@ if ($socid > 0)
*/ */
$head = societe_prepare_head($societe); $head = societe_prepare_head($societe);
dol_fiche_head($head, 'compta', $langs->trans("ThirdParty")); dol_fiche_head($head, 'compta', $langs->trans("ThirdParty"),0,'company');
print '<table width="100%" class="notopnoleftnoright">'; print '<table width="100%" class="notopnoleftnoright">';

View File

@ -55,14 +55,6 @@ function user_prepare_head($user)
$head[$h][2] = 'guisetup'; $head[$h][2] = 'guisetup';
$h++; $h++;
if ($conf->bookmark4u->enabled)
{
$head[$h][0] = DOL_URL_ROOT.'/user/addon.php?id='.$user->id;
$head[$h][1] = $langs->trans("Other");
$head[$h][2] = 'other';
$h++;
}
if ($conf->clicktodial->enabled) if ($conf->clicktodial->enabled)
{ {
$head[$h][0] = DOL_URL_ROOT.'/user/clicktodial.php?id='.$user->id; $head[$h][0] = DOL_URL_ROOT.'/user/clicktodial.php?id='.$user->id;

View File

@ -954,7 +954,7 @@ else
$head = societe_prepare_head($soc); $head = societe_prepare_head($soc);
dol_fiche_head($head, 'company', $langs->trans("ThirdParty")); dol_fiche_head($head, 'company', $langs->trans("ThirdParty"),0,'company');
// Confirm delete third party // Confirm delete third party

View File

@ -94,10 +94,10 @@ if ($_GET["socid"])
$head=societe_prepare_head2($soc); $head=societe_prepare_head2($soc);
dol_fiche_head($head, 'salesrepresentative', $langs->trans("ThirdParty")); dol_fiche_head($head, 'salesrepresentative', $langs->trans("ThirdParty"),0,'company');
/* /*
* Fiche soci<EFBFBD>t<EFBFBD> en mode visu * Fiche societe en mode visu
*/ */
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';

View File

@ -126,7 +126,7 @@ if ($socid > 0)
$html=new Form($db); $html=new Form($db);
dol_fiche_head($head, 'document', $langs->trans("ThirdParty")); dol_fiche_head($head, 'document', $langs->trans("ThirdParty"),0,'company');
// Construit liste des fichiers // Construit liste des fichiers

View File

@ -53,7 +53,7 @@ $soc->info($socid);
*/ */
$head = societe_prepare_head($soc); $head = societe_prepare_head($soc);
dol_fiche_head($head, 'info', $langs->trans("ThirdParty")); dol_fiche_head($head, 'info', $langs->trans("ThirdParty"),0,'company');

View File

@ -96,10 +96,10 @@ if($_GET["socid"])
$head=societe_prepare_head2($soc); $head=societe_prepare_head2($soc);
dol_fiche_head($head, 'links', $langs->trans("ThirdParty")); dol_fiche_head($head, 'links', $langs->trans("ThirdParty"),0,'company');
/* /*
* Fiche soci<EFBFBD>t<EFBFBD> en mode visu * Fiche societe en mode visu
*/ */
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';

View File

@ -100,7 +100,7 @@ if ( $soc->fetch($soc->id) )
$head = societe_prepare_head($soc); $head = societe_prepare_head($soc);
dol_fiche_head($head, 'notify', $langs->trans("ThirdParty")); dol_fiche_head($head, 'notify', $langs->trans("ThirdParty"),0,'company');
print '<table class="border"width="100%">'; print '<table class="border"width="100%">';

View File

@ -92,7 +92,7 @@ llxHeader();
$head=societe_prepare_head2($soc); $head=societe_prepare_head2($soc);
dol_fiche_head($head, 'rib', $langs->trans("ThirdParty")); dol_fiche_head($head, 'rib', $langs->trans("ThirdParty"),0,'company');
$account = new CompanyBankAccount($db); $account = new CompanyBankAccount($db);
$account->socid=$soc->id; $account->socid=$soc->id;

View File

@ -69,7 +69,7 @@ if ($socid > 0)
*/ */
$head = societe_prepare_head($societe); $head = societe_prepare_head($societe);
dol_fiche_head($head, 'note', $langs->trans("ThirdParty")); dol_fiche_head($head, 'note', $langs->trans("ThirdParty"),0,'company');
print "<form method=\"post\" action=\"".DOL_URL_ROOT."/societe/socnote.php\">"; print "<form method=\"post\" action=\"".DOL_URL_ROOT."/societe/socnote.php\">";

View File

@ -1,105 +0,0 @@
<?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* 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/user/addon.php
\brief Onglet addon de la fiche utilisateur
\version $Revision$
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/usergroups.lib.php");
$langs->load("users");
$form = new Form($db);
llxHeader("","Addon Utilisateur");
/* ************************************************************************** */
/* */
/* */
/* ************************************************************************** */
if ($_GET["id"])
{
$fuser = new User($db, $_GET["id"]);
$fuser->fetch();
/*
* Affichage onglets
*/
$head = user_prepare_head($fuser);
dol_fiche_head($head, 'other', $langs->trans("User"));
/*
* Fiche en mode visu
*/
print '<table class="border" width="100%">';
print '<tr><td width="25%" valign="top">'.$langs->trans("Lastname").'</td>';
print '<td class="valeur">'.$fuser->nom.'</td></tr>';
print '<tr><td width="25%" valign="top">'.$langs->trans("Firstname").'</td>';
print '<td class="valeur">'.$fuser->prenom.'</td>';
print "</tr>\n";
print '<tr><td width="25%" valign="top">'.$langs->trans("Login").'</td>';
print '<td class="valeur">'.$fuser->login.'</td></tr>';
print '<tr><td width="25%" valign="top">'.$langs->trans("EMail").'</td>';
print '<td class="valeur"><a href="mailto:'.$fuser->email.'">'.$fuser->email.'</a></td>';
print "</tr>\n";
//...
print "</table>\n";
print "</div>\n";
/*
* Barre d'actions
*
*/
print '<div class="tabsAction">';
if ($user->admin)
{
// print '<a class="butAction" href="addon.php?id='.$fuser->id.'&amp;action=create_bk4u_login">'.$langs->trans("Créer login Bookmark4u").'</a>';
}
print "</div>\n";
print "<br>\n";
}
$db->close();
llxFooter('$Date$ - $Revision$');
?>

View File

@ -49,6 +49,9 @@ if ($_POST["action"] == 'update' && ! $_POST['cancel'])
/*
* View
*/
llxHeader("","ClickToDial"); llxHeader("","ClickToDial");
@ -65,7 +68,8 @@ if ($_GET["id"])
*/ */
$head = user_prepare_head($fuser); $head = user_prepare_head($fuser);
dol_fiche_head($head, 'clicktodial', $langs->trans("User")); $title = $langs->trans("User");
dol_fiche_head($head, 'clicktodial', $title, 0, 'user');
/* /*
* Fiche en mode visu * Fiche en mode visu

View File

@ -757,7 +757,7 @@ else
$head = user_prepare_head($fuser); $head = user_prepare_head($fuser);
$title = $langs->trans("User"); $title = $langs->trans("User");
dol_fiche_head($head, 'user', $title); dol_fiche_head($head, 'user', $title, 0, 'user');
/* /*

View File

@ -52,7 +52,7 @@ $fuser->info($_GET["id"]);
$head = user_prepare_head($fuser); $head = user_prepare_head($fuser);
$title = $langs->trans("User"); $title = $langs->trans("User");
dol_fiche_head($head, 'info', $title); dol_fiche_head($head, 'info', $title, 0, 'user');
print '<table width="100%"><tr><td>'; print '<table width="100%"><tr><td>';

View File

@ -18,10 +18,10 @@
*/ */
/** /**
\file htdocs/user/ldap.php * \file htdocs/user/ldap.php
\ingroup ldap * \ingroup ldap
\brief Page fiche LDAP utilisateur * \brief Page fiche LDAP utilisateur
\version $Id$ * \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@ -79,7 +79,7 @@ if ($_GET["action"] == 'dolibarr2ldap')
/* /*
* Affichage page * View
*/ */
llxHeader(); llxHeader();
@ -93,7 +93,7 @@ $form = new Form($db);
$head = user_prepare_head($fuser); $head = user_prepare_head($fuser);
$title = $langs->trans("User"); $title = $langs->trans("User");
dol_fiche_head($head, 'ldap', $title); dol_fiche_head($head, 'ldap', $title, 0, 'user');
/* /*
@ -146,7 +146,7 @@ if ($conf->global->LDAP_SERVER_TYPE == "activedirectory")
// LDAP DN // LDAP DN
print '<tr><td>LDAP '.$langs->trans("LDAPUserDn").'</td><td class="valeur">'.$conf->global->LDAP_USER_DN."</td></tr>\n"; print '<tr><td>LDAP '.$langs->trans("LDAPUserDn").'</td><td class="valeur">'.$conf->global->LDAP_USER_DN."</td></tr>\n";
// LDAP Clé // LDAP Cl<EFBFBD>
print '<tr><td>LDAP '.$langs->trans("LDAPNamingAttribute").'</td><td class="valeur">'.$conf->global->LDAP_KEY_USERS."</td></tr>\n"; print '<tr><td>LDAP '.$langs->trans("LDAPNamingAttribute").'</td><td class="valeur">'.$conf->global->LDAP_KEY_USERS."</td></tr>\n";
// LDAP Server // LDAP Server

View File

@ -83,7 +83,7 @@ if ($id)
$head = user_prepare_head($fuser); $head = user_prepare_head($fuser);
$title = $langs->trans("User"); $title = $langs->trans("User");
dol_fiche_head($head, 'note', $title); dol_fiche_head($head, 'note', $title, 0, 'user');
if ($msg) print '<div class="error">'.$msg.'</div>'; if ($msg) print '<div class="error">'.$msg.'</div>';

View File

@ -105,16 +105,16 @@ if ($_POST["action"] == 'update' && ($caneditfield || $user->admin))
/*
* View
*/
llxHeader(); llxHeader();
/*
* Affichage onglets
*/
$head = user_prepare_head($fuser); $head = user_prepare_head($fuser);
$title = $langs->trans("User"); $title = $langs->trans("User");
dol_fiche_head($head, 'guisetup', $title); dol_fiche_head($head, 'guisetup', $title, 0, 'user');
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';

View File

@ -95,7 +95,7 @@ $fuser->getrights();
$head = user_prepare_head($fuser); $head = user_prepare_head($fuser);
$title = $langs->trans("User"); $title = $langs->trans("User");
dol_fiche_head($head, 'rights', $title); dol_fiche_head($head, 'rights', $title, 0, 'user');
$db->begin(); $db->begin();