Add help link to online wiki
This commit is contained in:
parent
c11cef6d47
commit
28e95b5fbd
@ -594,7 +594,17 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader("","",$langs->trans("CardProduct".$product->type));
|
$helpurl='';
|
||||||
|
if (isset($_GET["type"]) && $_GET["type"] == 0)
|
||||||
|
{
|
||||||
|
$helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
|
||||||
|
}
|
||||||
|
if (isset($_GET["type"]) && $_GET["type"] == 1)
|
||||||
|
{
|
||||||
|
$helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
|
||||||
|
}
|
||||||
|
|
||||||
|
llxHeader("",$helpurl,$langs->trans("CardProduct".$product->type));
|
||||||
|
|
||||||
if ($mesg) print $mesg."\n";
|
if ($mesg) print $mesg."\n";
|
||||||
|
|
||||||
|
|||||||
@ -39,11 +39,22 @@ $staticproduct=new Product($db);
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$transAreaType = $langs->trans("ProductsAndServicesArea");
|
|
||||||
if (isset($_GET["type"]) && $_GET["type"] == 0) $transAreaType = $langs->trans("ProductsArea");
|
|
||||||
if (isset($_GET["type"]) && $_GET["type"] == 1) $transAreaType = $langs->trans("ServicesArea");
|
|
||||||
|
|
||||||
llxHeader("","",$langs->trans("ProductsAndServices"));
|
|
||||||
|
$transAreaType = $langs->trans("ProductsAndServicesArea");
|
||||||
|
$helpurl='';
|
||||||
|
if (isset($_GET["type"]) && $_GET["type"] == 0)
|
||||||
|
{
|
||||||
|
$transAreaType = $langs->trans("ProductsArea");
|
||||||
|
$helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
|
||||||
|
}
|
||||||
|
if (isset($_GET["type"]) && $_GET["type"] == 1)
|
||||||
|
{
|
||||||
|
$transAreaType = $langs->trans("ServicesArea");
|
||||||
|
$helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
|
||||||
|
}
|
||||||
|
|
||||||
|
llxHeader("",$helpurl,$langs->trans("ProductsAndServices"));
|
||||||
|
|
||||||
print_fiche_titre($transAreaType);
|
print_fiche_titre($transAreaType);
|
||||||
|
|
||||||
|
|||||||
@ -55,6 +55,7 @@ $page = $_GET["page"];
|
|||||||
$limit = $conf->liste_limit;
|
$limit = $conf->liste_limit;
|
||||||
$offset = $limit * $page ;
|
$offset = $limit * $page ;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -72,9 +73,9 @@ if ($conf->categorie->enabled && isset($_REQUEST['catid']))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Affichage mode liste
|
* View
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($_GET["canvas"] <> '' && file_exists('templates/product.'.$_GET["canvas"].'.class.php') )
|
if ($_GET["canvas"] <> '' && file_exists('templates/product.'.$_GET["canvas"].'.class.php') )
|
||||||
@ -172,7 +173,17 @@ if ($resql)
|
|||||||
$envente = (isset($_GET["envente"])?$_GET["envente"]:$_POST["envente"]);
|
$envente = (isset($_GET["envente"])?$_GET["envente"]:$_POST["envente"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader("","",$texte);
|
$helpurl='';
|
||||||
|
if (isset($_GET["type"]) && $_GET["type"] == 0)
|
||||||
|
{
|
||||||
|
$helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
|
||||||
|
}
|
||||||
|
if (isset($_GET["type"]) && $_GET["type"] == 1)
|
||||||
|
{
|
||||||
|
$helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
|
||||||
|
}
|
||||||
|
|
||||||
|
llxHeader("",$helpurl,$texte);
|
||||||
|
|
||||||
// Displays product removal confirmation
|
// Displays product removal confirmation
|
||||||
if (!empty($_GET['delprod']))
|
if (!empty($_GET['delprod']))
|
||||||
|
|||||||
@ -29,7 +29,7 @@ require("../main.inc.php");
|
|||||||
$langs->load("products");
|
$langs->load("products");
|
||||||
|
|
||||||
|
|
||||||
function llxHeader($head = "", $urlp = "", $title="")
|
function llxHeader($head = "", $help_url = "", $title="")
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs;
|
global $user, $conf, $langs;
|
||||||
|
|
||||||
@ -115,6 +115,6 @@ function llxHeader($head = "", $urlp = "", $title="")
|
|||||||
$menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("ProductsCategoriesShort"));
|
$menu->add(DOL_URL_ROOT."/categories/index.php?type=0", $langs->trans("ProductsCategoriesShort"));
|
||||||
}
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user