Fix: missing banner
This commit is contained in:
parent
f998f64db0
commit
e392610f46
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2018 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -27,7 +27,20 @@ $object=$GLOBALS['object'];
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE -->
|
<!-- BEGIN PHP TEMPLATE -->
|
||||||
<?php echo $langs->trans("Product"); ?>
|
<?php
|
||||||
|
$head=product_prepare_head($object);
|
||||||
|
$titre=$langs->trans("CardProduct".$object->type);
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'card', $titre, -1, 'product');
|
||||||
|
|
||||||
|
$linkback = '<a href="'.DOL_URL_ROOT.'/product/list.php?restore_lastsearch_values=1&type='.$object->type.'">'.$langs->trans("BackToList").'</a>';
|
||||||
|
$object->next_prev_filter=" fk_product_type = ".$object->type;
|
||||||
|
|
||||||
|
$shownav = 1;
|
||||||
|
if ($user->societe_id && ! in_array('product', explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL))) $shownav=0;
|
||||||
|
|
||||||
|
dol_banner_tab($object, 'ref', $linkback, $shownav, 'ref');
|
||||||
|
?>
|
||||||
|
|
||||||
<?php dol_htmloutput_errors($object->error,$object->errors); ?>
|
<?php dol_htmloutput_errors($object->error,$object->errors); ?>
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2018 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -27,7 +27,20 @@ $object=$GLOBALS['object'];
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- BEGIN PHP TEMPLATE VIEW.TPL -->
|
<!-- BEGIN PHP TEMPLATE VIEW.TPL -->
|
||||||
<?php echo $langs->trans("Service"); ?>
|
<?php
|
||||||
|
$head=product_prepare_head($object);
|
||||||
|
$titre=$langs->trans("CardProduct".$object->type);
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'card', $titre, -1, 'service');
|
||||||
|
|
||||||
|
$linkback = '<a href="'.DOL_URL_ROOT.'/product/list.php?restore_lastsearch_values=1&type='.$object->type.'">'.$langs->trans("BackToList").'</a>';
|
||||||
|
$object->next_prev_filter=" fk_product_type = ".$object->type;
|
||||||
|
|
||||||
|
$shownav = 1;
|
||||||
|
if ($user->societe_id && ! in_array('product', explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL))) $shownav=0;
|
||||||
|
|
||||||
|
dol_banner_tab($object, 'ref', $linkback, $shownav, 'ref');
|
||||||
|
?>
|
||||||
|
|
||||||
<?php dol_htmloutput_errors($object->error,$object->errors); ?>
|
<?php dol_htmloutput_errors($object->error,$object->errors); ?>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user