forked from Wavyzz/dolibarr
Debug v20
This commit is contained in:
@@ -111,6 +111,7 @@ $arrayoftype = array(
|
|||||||
'cotisation' => array('label' => 'Subscriptions', 'picto'=>'member', 'ObjectClassName' => 'Subscription', 'enabled' => isModEnabled('adherent'), 'ClassPath' => "/adherents/class/subscription.class.php", 'langs'=>'members'),
|
'cotisation' => array('label' => 'Subscriptions', 'picto'=>'member', 'ObjectClassName' => 'Subscription', 'enabled' => isModEnabled('adherent'), 'ClassPath' => "/adherents/class/subscription.class.php", 'langs'=>'members'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Complete $arrayoftype by external modules
|
// Complete $arrayoftype by external modules
|
||||||
$parameters = array('objecttype'=>$objecttype, 'tabfamily'=>$tabfamily);
|
$parameters = array('objecttype'=>$objecttype, 'tabfamily'=>$tabfamily);
|
||||||
$reshook = $hookmanager->executeHooks('loadDataForCustomReports', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('loadDataForCustomReports', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
@@ -302,7 +303,11 @@ $formother = new FormOther($db);
|
|||||||
if (!defined('USE_CUSTOM_REPORT_AS_INCLUDE')) {
|
if (!defined('USE_CUSTOM_REPORT_AS_INCLUDE')) {
|
||||||
llxHeader('', $langs->transnoentitiesnoconv('CustomReports'), '');
|
llxHeader('', $langs->transnoentitiesnoconv('CustomReports'), '');
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'customreports', $title, -1, $picto);
|
if (empty($head)) {
|
||||||
|
print dol_get_fiche_head($head, 'customreports', $title, -2, $picto);
|
||||||
|
} else {
|
||||||
|
print dol_get_fiche_head($head, 'customreports', $title, -1, $picto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$newarrayoftype = array();
|
$newarrayoftype = array();
|
||||||
|
|||||||
@@ -2164,7 +2164,7 @@ function dol_fiche_head($links = array(), $active = '0', $title = '', $notab = 0
|
|||||||
* @param array $links Array of tabs (0=>url, 1=>label, 2=>code, 3=>not used, 4=>text after link, 5=>morecssonlink). Currently initialized by calling a function xxx_admin_prepare_head. Note that label into $links[$i][1] must be already HTML escaped.
|
* @param array $links Array of tabs (0=>url, 1=>label, 2=>code, 3=>not used, 4=>text after link, 5=>morecssonlink). Currently initialized by calling a function xxx_admin_prepare_head. Note that label into $links[$i][1] must be already HTML escaped.
|
||||||
* @param string $active Active tab name
|
* @param string $active Active tab name
|
||||||
* @param string $title Title
|
* @param string $title Title
|
||||||
* @param int $notab -1 or 0=Add tab header, 1=no tab header (if you set this to 1, using print dol_get_fiche_end() to close tab is not required), -2=Add tab header with no seaparation under tab (to start a tab just after), -3=-2+'noborderbottom'
|
* @param int $notab -1 or 0=Add tab header, 1=no tab header (if you set this to 1, using print dol_get_fiche_end() to close tab is not required), -2=Add tab header with no separation under tab (to start a tab just after), -3=-2+'noborderbottom'
|
||||||
* @param string $picto Add a picto on tab title
|
* @param string $picto Add a picto on tab title
|
||||||
* @param int $pictoisfullpath If 1, image path is a full path. If you set this to 1, you can use url returned by dol_buildpath('/mymodyle/img/myimg.png',1) for $picto.
|
* @param int $pictoisfullpath If 1, image path is a full path. If you set this to 1, you can use url returned by dol_buildpath('/mymodyle/img/myimg.png',1) for $picto.
|
||||||
* @param string $morehtmlright Add more html content on right of tabs title
|
* @param string $morehtmlright Add more html content on right of tabs title
|
||||||
@@ -2340,7 +2340,8 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$notab || $notab == -1 || $notab == -2 || $notab == -3) {
|
if (!$notab || $notab == -1 || $notab == -2 || $notab == -3) {
|
||||||
$out .= "\n".'<div id="dragDropAreaTabBar" class="tabBar'.($notab == -1 ? '' : ($notab == -2 ? ' tabBarNoTop' : (($notab == -3 ? ' noborderbottom' : '').' tabBarWithBottom'))).'">'."\n";
|
$out .= "\n".'<div id="dragDropAreaTabBar" class="tabBar'.($notab == -1 ? '' : ($notab == -2 ? ' tabBarNoTop' : (($notab == -3 ? ' noborderbottom' : '').' tabBarWithBottom')));
|
||||||
|
$out .= '">'."\n";
|
||||||
}
|
}
|
||||||
if (!empty($dragdropfile)) {
|
if (!empty($dragdropfile)) {
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user