// fix tab display and subtabbing

This commit is contained in:
mMarinetti
2011-09-23 15:45:09 +00:00
parent 178f3c7561
commit c21c00f350
2 changed files with 10 additions and 6 deletions
+9 -5
View File
@@ -452,11 +452,15 @@ if ($adminObj = checkingTab($tab))
$tabs = array_reverse($tabs);
$bread = '';
foreach ($tabs AS $key => $item)
$bread .= ' <img src="../img/admin/separator_breadcrum.png" style="margin-right:5px" alt="&gt;" />
'.((sizeof($tabs) - 1 > $key)
? '<a href="?tab='.$item['class_name'].'&token='.Tools::getAdminToken($item['class_name'].intval($item['id_tab']).(int)Context::getContext()->employee->id).'">'
: '').'
'.$item['name'].((sizeof($tabs) - 1 > $key) ? '</a>' : '');
{
$bread .= ' <img src="../img/admin/separator_breadcrum.png" style="margin-right:5px" alt="&gt;" />';
if (count($tabs) - 1 > $key)
$bread .= '<a href="?tab='.$item['class_name'].'&token='.Tools::getAdminToken($item['class_name'].intval($item['id_tab']).(int)Context::getContext()->employee->id).'">';
$bread .= $item['name'];
if (count($tabs) - 1 > $key)
$bread .= '</a>';
}
// @TODO : a way to desactivate this feature
echo'<script type="text/javascript">