forked from Wavyzz/dolibarr
Doxygen
This commit is contained in:
@@ -500,9 +500,9 @@ function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $not
|
||||
|
||||
|
||||
/**
|
||||
* Define head array for tabs of security setup pages
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @return array Array of head
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function security_prepare_head()
|
||||
{
|
||||
|
||||
@@ -356,9 +356,9 @@ function show_array_last_actions_done($max=5)
|
||||
|
||||
|
||||
/**
|
||||
* Define head array for tabs of agenda setup pages
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @return Array of head
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function agenda_prepare_head()
|
||||
{
|
||||
@@ -386,28 +386,29 @@ function agenda_prepare_head()
|
||||
}
|
||||
|
||||
/**
|
||||
* Define head array for tabs of agenda setup pages
|
||||
* @param action Object action
|
||||
* @return Array of head
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function actions_prepare_head($action)
|
||||
function actions_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
|
||||
$h = 0;
|
||||
$head = array();
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT.'/comm/action/fiche.php?id='.$action->id;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/comm/action/fiche.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans("CardAction");
|
||||
$head[$h][2] = 'card';
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT.'/comm/action/document.php?id='.$action->id;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/comm/action/document.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans('Documents');
|
||||
$head[$h][2] = 'documents';
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT.'/comm/action/info.php?id='.$action->id;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/comm/action/info.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans('Info');
|
||||
$head[$h][2] = 'info';
|
||||
$h++;
|
||||
|
||||
@@ -22,51 +22,57 @@
|
||||
* \ingroup banque
|
||||
*/
|
||||
|
||||
function bank_prepare_head($obj)
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function bank_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
$h = 0;
|
||||
$head = array();
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT.'/compta/bank/fiche.php?id='.$obj->id;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/compta/bank/fiche.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans("AccountCard");
|
||||
$head[$h][2] = 'bankname';
|
||||
$h++;
|
||||
|
||||
if ($obj->type == 0 || $obj->type == 1)
|
||||
if ($object->type == 0 || $object->type == 1)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT.'/compta/bank/bankid_fr.php?id='.$obj->id;
|
||||
$head[$h][0] = DOL_URL_ROOT.'/compta/bank/bankid_fr.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans("RIB");
|
||||
$head[$h][2] = 'bankid';
|
||||
$h++;
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/account.php?account=".$obj->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/account.php?account=".$object->id;
|
||||
$head[$h][1] = $langs->trans("Transactions");
|
||||
$head[$h][2] = 'journal';
|
||||
$h++;
|
||||
|
||||
// if ($conf->global->MAIN_FEATURES_LEVEL >= 1)
|
||||
// {
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/treso.php?account=".$obj->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/treso.php?account=".$object->id;
|
||||
$head[$h][1] = $langs->trans("PlannedTransactions");
|
||||
$head[$h][2] = 'cash';
|
||||
$h++;
|
||||
// }
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/annuel.php?account=".$obj->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/annuel.php?account=".$object->id;
|
||||
$head[$h][1] = $langs->trans("IOMonthlyReporting");
|
||||
$head[$h][2] = 'annual';
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/graph.php?account=".$obj->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/graph.php?account=".$object->id;
|
||||
$head[$h][1] = $langs->trans("Graph");
|
||||
$head[$h][2] = 'graph';
|
||||
$h++;
|
||||
|
||||
if ($obj->courant != 2)
|
||||
if ($object->courant != 2)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/releve.php?account=".$obj->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/releve.php?account=".$object->id;
|
||||
$head[$h][1] = $langs->trans("AccountStatements");
|
||||
$head[$h][2] = 'statement';
|
||||
$h++;
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
* \ingroup categorie
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function categories_prepare_head($object,$type)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param $object
|
||||
* @return array
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function contact_prepare_head($object)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
* \brief Ensemble de fonctions de base pour le module contrat
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function contract_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf;
|
||||
|
||||
@@ -22,29 +22,29 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param $mil
|
||||
* @return array
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function emailing_prepare_head($mil)
|
||||
function emailing_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf;
|
||||
|
||||
$h = 0;
|
||||
$head = array();
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/fiche.php?id=".$mil->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/fiche.php?id=".$object->id;
|
||||
$head[$h][1] = $langs->trans("MailCard");
|
||||
$head[$h][2] = 'card';
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/cibles.php?id=".$mil->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/cibles.php?id=".$object->id;
|
||||
$head[$h][1] = $langs->trans("MailRecipients");
|
||||
$head[$h][2] = 'targets';
|
||||
$h++;
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/info.php?id=".$mil->id;
|
||||
$head[$h][0] = DOL_URL_ROOT."/comm/mailing/info.php?id=".$object->id;
|
||||
$head[$h][1] = $langs->trans("Info");
|
||||
$head[$h][2] = 'info';
|
||||
$h++;
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
* \ingroup fichinter
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function fichinter_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Initialize the array of tabs for supplier invoice
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Facture $object Invoice object
|
||||
* @return array Array of head tabs
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function facturefourn_prepare_head($object)
|
||||
{
|
||||
@@ -74,6 +74,12 @@ function facturefourn_prepare_head($object)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function ordersupplier_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2006-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
||||
@@ -25,6 +25,12 @@
|
||||
* \ingroup commande
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function commande_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
|
||||
@@ -26,9 +26,10 @@
|
||||
|
||||
|
||||
/**
|
||||
* Prepare head for prelevement screen and return it
|
||||
* @param object Object BonPrelevement
|
||||
* @return array head
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function prelevement_prepare_head($object)
|
||||
{
|
||||
|
||||
@@ -24,6 +24,13 @@
|
||||
* \ingroup product
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @param User $user Object user
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function product_prepare_head($object, $user)
|
||||
{
|
||||
global $langs, $conf;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2006-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
||||
*
|
||||
@@ -26,6 +26,12 @@
|
||||
require_once(DOL_DOCUMENT_ROOT."/projet/class/project.class.php");
|
||||
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function project_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
@@ -94,9 +100,10 @@ function project_prepare_head($object)
|
||||
|
||||
|
||||
/**
|
||||
* \file htdocs/core/lib/project.lib.php
|
||||
* \brief Ensemble de fonctions de base pour le module projet
|
||||
* \ingroup societe
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function task_prepare_head($object)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
* \ingroup propal
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function propal_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/* Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2008-2012 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
|
||||
@@ -24,6 +24,12 @@ require_once(DOL_DOCUMENT_ROOT."/product/class/product.class.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/expedition/class/expedition.class.php");
|
||||
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function shipping_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
@@ -57,6 +63,12 @@ function shipping_prepare_head($object)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function delivery_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
@@ -183,7 +195,9 @@ function show_list_sending_receive($origin='commande',$origin_id,$filter='')
|
||||
$label = (! empty($prod->multilangs[$outputlangs->defaultlang]["libelle"])) ? $prod->multilangs[$outputlangs->defaultlang]["libelle"] : $objp->product;
|
||||
}
|
||||
else
|
||||
{
|
||||
$label = $objp->product;
|
||||
}
|
||||
|
||||
print '<td>';
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array for tabs of warehouses cards
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param $object
|
||||
* @return array
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function stock_prepare_head($object)
|
||||
{
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
|
||||
|
||||
/**
|
||||
* Prepare array for tabs of warehouses cards
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param $object
|
||||
* @return array
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function tax_prepare_head($object)
|
||||
{
|
||||
|
||||
@@ -26,15 +26,15 @@
|
||||
/**
|
||||
* Return if a child id is in descendance of parentid
|
||||
*
|
||||
* @param $fulltree Full tree. Tree must be an array of records that looks like:
|
||||
* @param array $fulltree Full tree. Tree must be an array of records that looks like:
|
||||
* id = id record
|
||||
* id_mere = id record mother
|
||||
* id_children = array of direct child id
|
||||
* label = record label
|
||||
* fullpath = Full path of id
|
||||
* level = Level of record
|
||||
* @param $parentid Parent id
|
||||
* @param $childid Child id
|
||||
* @param int $parentid Parent id
|
||||
* @param int $childid Child id
|
||||
* @return int 1=Yes, 0=No
|
||||
*/
|
||||
function is_in_subtree($fulltree,$parentid,$childid)
|
||||
@@ -73,9 +73,10 @@ function is_in_subtree($fulltree,$parentid,$childid)
|
||||
|
||||
/**
|
||||
* Show picto of a tree view
|
||||
* @param fulltree Array of entries in correct order
|
||||
* @param key Key of value to show picto
|
||||
* @param selected Selected value
|
||||
*
|
||||
* @param array &$fulltree Array of entries in correct order
|
||||
* @param string $key Key of value to show picto
|
||||
* @param int $selected Selected value
|
||||
* @return array (0 or 1 if at least one of this level after, 0 or 1 if at least one of higher level after)
|
||||
*/
|
||||
function tree_showpad(&$fulltree,$key,$selected=0)
|
||||
@@ -141,8 +142,10 @@ function tree_showpad(&$fulltree,$key,$selected=0)
|
||||
|
||||
/**
|
||||
* Show an element with correct offset
|
||||
* @param $tab Array of all elements
|
||||
* @param $rang Level of offset
|
||||
*
|
||||
* @param array $tab Array of all elements
|
||||
* @param int $rang Level of offset
|
||||
* @return void
|
||||
*/
|
||||
function tree_showline($tab,$rang)
|
||||
{
|
||||
@@ -212,9 +215,11 @@ function tree_showline($tab,$rang)
|
||||
|
||||
/**
|
||||
* Recursive function to output menu tree
|
||||
* @param $tab Array of elements
|
||||
* @param $pere Id of parent
|
||||
* @param $rang Level of element
|
||||
*
|
||||
* @param array $tab Array of elements
|
||||
* @param int $pere Id of parent
|
||||
* @param int $rang Level of element
|
||||
* @return void
|
||||
*/
|
||||
function tree_recur($tab,$pere,$rang)
|
||||
{
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param $object
|
||||
* @return array
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function trip_prepare_head($object)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2006-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -22,6 +22,13 @@
|
||||
* \file htdocs/core/lib/usergroups.lib.php
|
||||
* \brief Ensemble de fonctions de base pour la gestion des utilisaterus et groupes
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prepare array with list of tabs
|
||||
*
|
||||
* @param Object $object Object related to tabs
|
||||
* @return array Array of tabs to shoc
|
||||
*/
|
||||
function user_prepare_head($object)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
@@ -146,6 +153,7 @@ function group_prepare_head($object)
|
||||
* @param User $fuser User concerned or '' for global theme
|
||||
* @param int $edit 1 to add edit form
|
||||
* @param boolean $foruserprofile Show for user profile view
|
||||
* @return void
|
||||
*/
|
||||
function show_theme($fuser,$edit=0,$foruserprofile=false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user