diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 7f4a1b8d855..a319b193662 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -840,6 +840,50 @@ function dol_get_fiche_end($notab=0)
else return '';
}
+/**
+ * Show tab footer of a card
+ *
+ * @param object $object Object to show
+ * @param string $paramid Name of parameter to use to name the id into the URL link
+ * @param string $morehtml More html content to output just before the nav bar
+ * @param int $shownav Show Condition (navigation is shown if value is 1)
+ * @param string $fieldid Nom du champ en base a utiliser pour select next et previous (we make the select max and min on this field)
+ * @param string $fieldref Nom du champ objet ref (object->ref) a utiliser pour select next et previous
+ * @param string $morehtmlref More html to show after ref
+ * @param string $moreparam More param to add in nav link url.
+ * @param int $nodbprefix Do not include DB prefix to forge table name
+ * @param string $morehtmlleft More html code to show before ref
+ * @param string $morehtmlright More html code to show before navigation arrows
+ * @return void
+ */
+function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlright='')
+{
+ global $conf, $form, $user;
+
+ //$showlogo=$object->logo;
+ $showlogo=1;
+ $showbarcode=empty($conf->barcode->enabled)?0:1;
+ if (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->barcode->lire_advance)) $showbarcode=0;
+
+ print '
';
+ //$morehtmlleft='
'.img_picto('', 'title_companies', '', '').'
';
+ if ($showlogo) $morehtmlleft.='
'.$form->showphoto('societe',$object,0,0,0,'photoref').'
';
+ //if ($showlogo) $morehtmlleft.='
'.$form->showphoto('societe',$object,0,0,0,'photoref').'
';
+ if ($showbarcode) $morehtmlleft.='
'.$form->showbarcode($object).'
';
+ if (! empty($conf->use_javascript_ajax) && $user->rights->societe->creer && ! empty($conf->global->MAIN_DIRECT_STATUS_UPDATE)) {
+ $morehtmlright.=ajax_object_onoff($object, 'status', 'status', 'InActivity', 'ActivityCeased');
+ } else {
+ $morehtmlright.=$object->getLibStatut(2);
+ }
+ if (! empty($object->name_nalias)) $morehtmlref.='
'.$object->name_alias.'
';
+ $morehtmlref.='
';
+ $morehtmlref.=$object->getBannerAddress('refaddress',$object);
+ $morehtmlref.='
';
+ print $form->showrefnav($object, $paramid, $morehtml, $shownav, $fieldid, $fieldref, $morehtmlref, $moreparam, $nodbprefix, $morehtmlleft, $morehtmlright);
+ print '
';
+ print '';
+}
+
/**
* Show a string with the label tag dedicated to the HTML edit field.
*
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index aad1a8aae48..04fe5336d7e 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -1863,29 +1863,9 @@ else
dol_htmloutput_errors($error,$errors);
- //$showlogo=$object->logo;
- $showlogo=1;
- $showbarcode=empty($conf->barcode->enabled)?0:1;
- if (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->barcode->lire_advance)) $showbarcode=0;
-
- print '';
- //$morehtmlleft='
'.img_picto('', 'title_companies', '', '').'
';
- if ($showlogo) $morehtmlleft.='
'.$form->showphoto('societe',$object,0,0,0,'photoref').'
';
- //if ($showlogo) $morehtmlleft.='
'.$form->showphoto('societe',$object,0,0,0,'photoref').'
';
- if ($showbarcode) $morehtmlleft.='
'.$form->showbarcode($object).'
';
- if (! empty($conf->use_javascript_ajax) && $user->rights->societe->creer && ! empty($conf->global->MAIN_DIRECT_STATUS_UPDATE)) {
- $morehtmlright.=ajax_object_onoff($object, 'status', 'status', 'InActivity', 'ActivityCeased');
- } else {
- $morehtmlright.=$object->getLibStatut(2);
- }
- $morehtml='';
- if (! empty($object->ame_nalias)) $morehtml.='
'.$object->name_alias.'
';
- $morehtml.='
';
- $morehtml.=$object->getBannerAddress('refaddress',$object);
- $morehtml.='
';
- print $form->showrefnav($object, 'socid', '', ($user->societe_id?0:1), 'rowid', 'nom', $morehtml, '', 0, $morehtmlleft, $morehtmlright);
- print '
';
- print '';
+
+ dol_banner_tab($object, 'socid', '', ($user->societe_id?0:1), 'rowid', 'nom');
+
print '';
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 98713d0a77a..b1906a344b1 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1528,10 +1528,10 @@ div.tabsElem {
div.tabBar {
color: #;
- padding-top: px;
- padding-left: px;
- padding-right: px;
- padding-bottom: px;
+ padding-top: px;
+ padding-left: px;
+ padding-right: px;
+ padding-bottom: px;
margin: 0px 0px 14px 0px;
-moz-border-radius:4px;
-webkit-border-radius: 4px;
@@ -2064,10 +2064,9 @@ table.listwithfilterbefore {
/* Pagination */
div.refidpadding {
- /* padding-top: dol_use_jmobile)?'8':'12'; ?>px; */
+ padding-top: dol_use_jmobile)?'3':'14'; ?>px;
}
div.refid {
- /* padding-top: dol_use_jmobile)?'5':'12'; ?>px; */
font-weight: bold;
color: #766;
font-size: 160%;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 9fb050b0ef7..f909915d794 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -677,8 +677,8 @@ div.statusref {
margin-bottom: 10px;
}
img.photoref {
- height: 68px;
- width: 68px;
+ height: 80px;
+ width: 80px;
border: 1px solid #CCC;
-moz-box-shadow: 3px 3px 4px #DDD;
-webkit-box-shadow: 3px 3px 4px #DDD;
@@ -1513,10 +1513,10 @@ div.tabsElem { margin-top: 8px; } /* To avoid overlap of tabs when not browser
div.tabBar {
color: #;
- padding-top: 9px;
- padding-left: px;
- padding-right: px;
- padding-bottom: 8px;
+ padding-top: px;
+ padding-left: px;
+ padding-right: px;
+ padding-bottom: px;
margin: 0px 0px 14px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
@@ -1934,10 +1934,9 @@ table.listwithfilterbefore {
/* Pagination */
div.refidpadding {
- /* padding-top: dol_use_jmobile)?'8':'12'; ?>px; */
+ padding-top: dol_use_jmobile)?'3':'14'; ?>px;
}
div.refid {
- /* padding-top: dol_use_jmobile)?'5':'12'; ?>px; */
font-weight: bold;
color: #766;
font-size: 160%;