New: Add picto on tab titles
This commit is contained in:
parent
63fa194ff6
commit
8761c985b7
@ -219,7 +219,8 @@ else if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'category', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'category', $titre,0,$picto);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -123,7 +123,8 @@ if ($product->id)
|
|||||||
|
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'documents', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'documents', $titre, 0, $picto);
|
||||||
|
|
||||||
|
|
||||||
// Construit liste des fichiers
|
// Construit liste des fichiers
|
||||||
|
|||||||
@ -812,7 +812,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
{
|
{
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'card', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'card', $titre, 0, $picto);
|
||||||
print "\n<!-- CUT HERE -->\n";
|
print "\n<!-- CUT HERE -->\n";
|
||||||
// Confirmation de la suppression de la facture
|
// Confirmation de la suppression de la facture
|
||||||
if ($_GET["action"] == 'delete')
|
if ($_GET["action"] == 'delete')
|
||||||
|
|||||||
@ -20,11 +20,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/product/fournisseurs.php
|
* \file htdocs/product/fournisseurs.php
|
||||||
\ingroup product
|
* \ingroup product
|
||||||
\brief Page de l'onglet fournisseur de produits
|
* \brief Page de l'onglet fournisseur de produits
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/product.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/product.lib.php");
|
||||||
@ -195,7 +195,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'suppliers', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'suppliers', $titre, 0, $picto);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -20,10 +20,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/product/photos.php
|
* \file htdocs/product/photos.php
|
||||||
\ingroup product
|
* \ingroup product
|
||||||
\brief Onglet photos de la fiche produit
|
* \brief Onglet photos de la fiche produit
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -75,7 +75,7 @@ if ($_GET["action"] == 'addthumb' && $_GET["file"])
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
@ -96,7 +96,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
*/
|
*/
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'photos', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'photos', $titre, 0, $picto);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Confirmation de la suppression de photo
|
* Confirmation de la suppression de photo
|
||||||
|
|||||||
@ -120,7 +120,8 @@ llxHeader("","",$langs->trans("CardProduct".$product->type));
|
|||||||
|
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'price', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'price', $titre, 0, $picto);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -146,7 +146,8 @@ if ($mesg) {
|
|||||||
|
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'subproduct', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'subproduct', $titre, 0, $picto);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fiche produit
|
* Fiche produit
|
||||||
|
|||||||
@ -83,7 +83,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
*/
|
*/
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'referers', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'referers', $titre, 0, $picto);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
\ingroup product, service, commande
|
\ingroup product, service, commande
|
||||||
\brief Page des stats des commandes fournisseurs pour un produit
|
\brief Page des stats des commandes fournisseurs pour un produit
|
||||||
\version $Id$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -82,7 +82,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
*/
|
*/
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'referers', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'referers', $titre, 0, $picto);
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
*/
|
*/
|
||||||
$head=product_prepare_head($product,$user);
|
$head=product_prepare_head($product,$user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'referers', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'referers', $titre, 0, $picto);
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
\ingroup product, service, facture
|
\ingroup product, service, facture
|
||||||
\brief Page des stats des factures clients pour un produit
|
\brief Page des stats des factures clients pour un produit
|
||||||
\version $Id$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -85,7 +85,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
{
|
{
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'referers', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'referers', $titre, 0, $picto);
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
|
|||||||
@ -85,7 +85,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
*/
|
*/
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'referers', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'referers', $titre, 0, $picto);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -67,7 +67,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
{
|
{
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'stats', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'stats', $titre, 0, $picto);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -81,7 +81,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
*/
|
*/
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'referers', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'referers', $titre,0,$picto);
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
@ -125,7 +125,8 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
{
|
{
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'stock', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'stock', $titre, 0, $picto);
|
||||||
|
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
|
|
||||||
|
|||||||
@ -22,10 +22,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/product/traduction.php
|
* \file htdocs/product/traduction.php
|
||||||
\ingroup product
|
* \ingroup product
|
||||||
\brief Page de traduction des produits
|
* \brief Page de traduction des produits
|
||||||
\version $Revision$
|
* \version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -119,12 +119,11 @@ $_POST["cancel"] != $langs->trans("Cancel") &&
|
|||||||
if ( $product->setMultiLangs() > 0 )
|
if ( $product->setMultiLangs() > 0 )
|
||||||
{
|
{
|
||||||
$_GET["action"] = '';
|
$_GET["action"] = '';
|
||||||
$mesg = 'Fiche mise <20> jour';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$_GET["action"] = 'edit';
|
$_GET["action"] = 'edit';
|
||||||
$mesg = 'Fiche non mise <20> jour !' . "<br>" . $product->mesg_error;
|
$mesg = $product->mesg_error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,7 +133,7 @@ if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Affichage
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader("","",$langs->trans("Translation"));
|
llxHeader("","",$langs->trans("Translation"));
|
||||||
@ -143,7 +142,8 @@ $html = new Form($db);
|
|||||||
|
|
||||||
$head=product_prepare_head($product, $user);
|
$head=product_prepare_head($product, $user);
|
||||||
$titre=$langs->trans("CardProduct".$product->type);
|
$titre=$langs->trans("CardProduct".$product->type);
|
||||||
dol_fiche_head($head, 'translation', $titre);
|
$picto=($product->type==1?'service':'product');
|
||||||
|
dol_fiche_head($head, 'translation', $titre, 0, $picto);
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
@ -253,6 +253,7 @@ if ($_GET["action"] == 'add' || ($user->rights->produit->creer || $user->rights-
|
|||||||
$select.= "<option value='$value'>$value</option>";
|
$select.= "<option value='$value'>$value</option>";
|
||||||
$select.='</select>';
|
$select.='</select>';
|
||||||
|
|
||||||
|
print '<br>';
|
||||||
print '<form action="" method="post">';
|
print '<form action="" method="post">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<input type="hidden" name="action" value="vadd">';
|
print '<input type="hidden" name="action" value="vadd">';
|
||||||
@ -264,7 +265,7 @@ if ($_GET["action"] == 'add' || ($user->rights->produit->creer || $user->rights-
|
|||||||
print '<tr><td valign="top" width="15%">'.$langs->trans('Note').'</td><td><textarea name="note" rows="3" cols="80"></textarea></td></tr>';
|
print '<tr><td valign="top" width="15%">'.$langs->trans('Note').'</td><td><textarea name="note" rows="3" cols="80"></textarea></td></tr>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '<br /><table class="noborder" width="100%">';
|
print '<br /><table class="nobordernopadding" width="100%">';
|
||||||
print '<tr><td colspan="3" align="center"><input type="submit" class="button" value="'.$langs->trans("Save").'"> ';
|
print '<tr><td colspan="3" align="center"><input type="submit" class="button" value="'.$langs->trans("Save").'"> ';
|
||||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'"></td></tr>';
|
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'"></td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user