178function supplier_order_admin_prepare_head()
180 global $langs,
$conf, $user, $extrafields;
182 $extrafields->fetch_name_optionals_label(
'commande_fournisseur');
183 $extrafields->fetch_name_optionals_label(
'commande_fournisseurdet');
188 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
"/supplier_order/admin/supplier_order.php");
189 $head[$h][1] = $langs->trans(
"SupplierOrder");
190 $head[$h][2] =
'order';
195 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/supplier_order/admin/supplierorder_extrafields.php');
196 $head[$h][1] = $langs->trans(
"ExtraFieldsSupplierOrders");
197 $nbExtrafields = $extrafields->attributes[
'commande_fournisseur'][
'count'];
198 if ($nbExtrafields > 0) {
199 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
201 $head[$h][2] =
'supplierorder';
204 $head[$h][0] =
dolBuildUrl(DOL_URL_ROOT.
'/supplier_order/admin/supplierorderdet_extrafields.php');
205 $head[$h][1] = $langs->trans(
"ExtraFieldsSupplierOrdersLines");
206 $nbExtrafields = $extrafields->attributes[
'commande_fournisseurdet'][
'count'];
207 if ($nbExtrafields > 0) {
208 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
210 $head[$h][2] =
'supplierorderdet';
dolBuildUrl($url, $params=[], $addtoken=false, $anchor='')
Return path of url.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).