';
+
dol_fiche_end();
if ($action == 'edit')
diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index b1a37c67b31..99e4a6c0871 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -2414,7 +2414,6 @@ if ($action == 'create')
print '';
}
- print " \n";
//Select mail models is same action as presend
if (GETPOST('modelselected')) $action = 'presend';
diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php
index c97124ed35b..212fa465266 100644
--- a/htdocs/contrat/note.php
+++ b/htdocs/contrat/note.php
@@ -164,7 +164,7 @@ if ($id > 0 || ! empty($ref))
print '';
- print ' ';
+ //print ' ';
include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php';
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 0c19d216164..62b2fb274c8 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -780,7 +780,7 @@ function dol_syslog($message, $level = LOG_INFO, $ident = 0, $suffixinfilename='
* @param array $links Array of tabs. Currently initialized by calling a function xxx_admin_prepare_head
* @param string $active Active tab name (document', 'info', 'ldap', ....)
* @param string $title Title
- * @param int $notab 0=Add tab header, 1=no tab header. If you set this to 1, using dol_fiche_end() to close tab is not required.
+ * @param int $notab -1 or 0=Add tab header, 1=no tab header. If you set this to 1, using dol_fiche_end() to close tab is not required.
* @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.
* @return void
@@ -796,7 +796,7 @@ function dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto
* @param array $links Array of tabs
* @param string $active Active tab name
* @param string $title Title
- * @param int $notab 0=Add tab header, 1=no tab header. If you set this to 1, using dol_fiche_end() to close tab is not required.
+ * @param int $notab -1 or 0=Add tab header, 1=no tab header. If you set this to 1, using dol_fiche_end() to close tab is not required.
* @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.
* @return string
@@ -926,7 +926,7 @@ function dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $pi
$out.="\n";
- if (! $notab) $out.="\n".'
'."\n";
+ if (! $notab || $notab == -1) $out.="\n".'
'."\n";
$parameters=array('tabname' => $active, 'out' => $out);
$reshook=$hookmanager->executeHooks('printTabsHead',$parameters); // This hook usage is called just before output the head of tabs. Take also a look at "completeTabsHead"
@@ -941,7 +941,7 @@ function dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $pi
/**
* Show tab footer of a card
*
- * @param int $notab 0=Add tab footer, 1=no tab footer
+ * @param int $notab -1 or 0=Add tab footer, 1=no tab footer
* @return void
*/
function dol_fiche_end($notab=0)
@@ -952,12 +952,12 @@ function dol_fiche_end($notab=0)
/**
* Return tab footer of a card
*
- * @param int $notab 0=Add tab footer, 1=no tab footer
+ * @param int $notab -1 or 0=Add tab footer, 1=no tab footer
* @return string
*/
function dol_get_fiche_end($notab=0)
{
- if (! $notab) return "\n