439
edits
No edit summary |
|||
| Line 25: | Line 25: | ||
* 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member) | * 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member) | ||
* 'member_stats', 'order_stats', 'supplier_order_stats', 'invoice_stats', 'supplier_invoice_stats', 'trip_stats', 'propal_stats' to add a tab in statistic view of elements. | * 'member_stats', 'order_stats', 'supplier_order_stats', 'invoice_stats', 'supplier_invoice_stats', 'trip_stats', 'propal_stats' to add a tab in statistic view of elements. | ||
* 'member_admin', 'company_admin', 'product_admin' pour les pages d'administration | |||
2) Pour ajouter votre propre onglet, créer un module et son fichier descripteur. Voir la page [[Développement module]] pour cela. | 2) Pour ajouter votre propre onglet, créer un module et son fichier descripteur. Voir la page [[Développement module]] pour cela. | ||
| Line 37: | Line 38: | ||
<source lang="php"> | <source lang="php"> | ||
$this->tabs = array( | $this->tabs = array( | ||
' | 'product:+tabname1:Title1:@mymodule:$user->rights->mymodule->read:/mymodule/mynewtab1.php?id=__ID__', // Pour ajouter un onglet sur les objects de type product (produits/services), onglet identifié par l'id tabname1 | ||
' | 'product:+tabname2:Title2:@mymodule:$user->rights->othermodule->read:/mymodule/mynewtab2.php?id=__ID__', // Pour ajouter un onglet sur les objects de type product (produits/services), onglet identifié par l'id tabname2 | ||
); | ); | ||
</source> | </source> | ||
edits