Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
086582a7a0
@ -216,8 +216,8 @@ DateEcheance=Due date limit
|
|||||||
DateInvoice=Invoice date
|
DateInvoice=Invoice date
|
||||||
NoInvoice=No invoice
|
NoInvoice=No invoice
|
||||||
ClassifyBill=Classify invoice
|
ClassifyBill=Classify invoice
|
||||||
SupplierBillsToPay=Suppliers invoices to pay
|
SupplierBillsToPay=Unpaid supplier invoices
|
||||||
CustomerBillsUnpaid=Unpaid customers invoices
|
CustomerBillsUnpaid=Unpaid customer invoices
|
||||||
NonPercuRecuperable=Non-recoverable
|
NonPercuRecuperable=Non-recoverable
|
||||||
SetConditions=Set payment terms
|
SetConditions=Set payment terms
|
||||||
SetMode=Set payment mode
|
SetMode=Set payment mode
|
||||||
|
|||||||
@ -1485,14 +1485,10 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
// Add login user link
|
// Add login user link
|
||||||
$toprightmenu.='<div class="login_block_user">';
|
$toprightmenu.='<div class="login_block_user">';
|
||||||
|
|
||||||
// User photo
|
// Login name with photo and tooltip
|
||||||
$toprightmenu.='<div class="inline-block nowrap"><div class="inline-block login_block_elem" style="padding: 0px;">';
|
$mode=-1;
|
||||||
$toprightmenu.=$user->getPhotoUrl(0,0,'loginphoto');
|
$toprightmenu.='<div class="inline-block nowrap"><div class="inline-block login_block_elem login_block_elem_name" style="padding: 0px;">';
|
||||||
$toprightmenu.='</div></div>';
|
$toprightmenu.=$user->getNomurl($mode, '', true, 0, 11, 0, ($user->firstname ? 'firstname' : -1),'atoplogin');
|
||||||
|
|
||||||
// Login name with tooltip
|
|
||||||
$toprightmenu.='<div class="inline-block nowrap"><div class="inline-block login_block_elem login_block_elem_name" style="padding: 0px;">';
|
|
||||||
$toprightmenu.=$user->getNomurl(0, '', true, 0, 11, 0, ($user->firstname ? 'firstname' : -1),'atoplogin');
|
|
||||||
$toprightmenu.='</div></div>';
|
$toprightmenu.='</div></div>';
|
||||||
|
|
||||||
$toprightmenu.='</div>';
|
$toprightmenu.='</div>';
|
||||||
|
|||||||
@ -699,7 +699,7 @@ div#tmenu_tooltip {
|
|||||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
display:none;
|
display:none;
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
padding-<?php echo $right; ?>: <? echo ($maxwidthloginblock - 10); ?>px;
|
padding-<?php echo $right; ?>: <?php echo ($maxwidthloginblock - 10); ?>px;
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -888,7 +888,6 @@ div.mainmenu.members {
|
|||||||
|
|
||||||
div.mainmenu.products {
|
div.mainmenu.products {
|
||||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/products.png',1) ?>);
|
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/products.png',1) ?>);
|
||||||
margin-left: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.mainmenu.project {
|
div.mainmenu.project {
|
||||||
@ -3877,7 +3876,22 @@ border-top-right-radius: 6px;
|
|||||||
}
|
}
|
||||||
@media only screen and (max-width: 570px)
|
@media only screen and (max-width: 570px)
|
||||||
{
|
{
|
||||||
div.mainmenu {
|
/* Reduce login top right info */
|
||||||
|
.usertextatoplogin {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div#tmenu_tooltip {
|
||||||
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
|
display:none;
|
||||||
|
<?php } else { ?>
|
||||||
|
padding-<?php echo $right; ?>: 78px;
|
||||||
|
<?php } ?>
|
||||||
|
}
|
||||||
|
div.login_block {
|
||||||
|
top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.mainmenu {
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
}
|
}
|
||||||
.topmenuimage {
|
.topmenuimage {
|
||||||
@ -3890,6 +3904,5 @@ border-top-right-radius: 6px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (is_object($db)) $db->close();
|
if (is_object($db)) $db->close();
|
||||||
|
|||||||
@ -499,7 +499,7 @@ div.confirmmessage {
|
|||||||
.maxwidth100 { max-width: 100px; }
|
.maxwidth100 { max-width: 100px; }
|
||||||
.maxwidth200 { max-width: 200px; }
|
.maxwidth200 { max-width: 200px; }
|
||||||
.maxwidth300 { max-width: 300px; }
|
.maxwidth300 { max-width: 300px; }
|
||||||
.titlefield { width: 25%; }
|
.titlefield { width: 30%; }
|
||||||
<?php if (! empty($dol_optimize_smallscreen)) { ?>
|
<?php if (! empty($dol_optimize_smallscreen)) { ?>
|
||||||
.hideonsmartphone { display: none; }
|
.hideonsmartphone { display: none; }
|
||||||
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
.noenlargeonsmartphone { width : 50px !important; display: inline !important; }
|
||||||
@ -731,7 +731,7 @@ div#tmenu_tooltip {
|
|||||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
display:none;
|
display:none;
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
/* padding-<?php echo $right; ?>: <? echo ($maxwidthloginblock - 10); ?>px; */
|
/* padding-<?php echo $right; ?>: <?php echo ($maxwidthloginblock - 10); ?>px; */
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -913,7 +913,6 @@ div.mainmenu.members {
|
|||||||
|
|
||||||
div.mainmenu.products {
|
div.mainmenu.products {
|
||||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/products.png',1) ?>);
|
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/products.png',1) ?>);
|
||||||
margin-left: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.mainmenu.project {
|
div.mainmenu.project {
|
||||||
@ -3715,7 +3714,22 @@ border-top-right-radius: 6px;
|
|||||||
}
|
}
|
||||||
@media only screen and (max-width: 570px)
|
@media only screen and (max-width: 570px)
|
||||||
{
|
{
|
||||||
div.mainmenu {
|
/* Reduce login top right info */
|
||||||
|
.usertextatoplogin {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div#tmenu_tooltip {
|
||||||
|
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||||
|
display:none;
|
||||||
|
<?php } else { ?>
|
||||||
|
/* padding-<?php echo $right; ?>: 78px; */
|
||||||
|
<?php } ?>
|
||||||
|
}
|
||||||
|
div.login_block {
|
||||||
|
top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.mainmenu {
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
}
|
}
|
||||||
.topmenuimage {
|
.topmenuimage {
|
||||||
|
|||||||
@ -1842,22 +1842,23 @@ class User extends CommonObject
|
|||||||
* Return a link to the user card (with optionaly the picto)
|
* Return a link to the user card (with optionaly the picto)
|
||||||
* Use this->id,this->lastname, this->firstname
|
* Use this->id,this->lastname, this->firstname
|
||||||
*
|
*
|
||||||
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
|
* @param int $withpictoimg Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto, -1=Include photo into link, -2=Only picto photo)
|
||||||
* @param string $option On what the link point to
|
* @param string $option On what the link point to
|
||||||
* @param integer $infologin Add connection info to the tooltip
|
* @param integer $infologin Add connection info to the tooltip
|
||||||
* @param integer $notooltip 1=Disable tooltip
|
* @param integer $notooltip 1=Disable tooltip on picto and name
|
||||||
* @param int $maxlen Max length of visible user name
|
* @param int $maxlen Max length of visible user name
|
||||||
* @param int $hidethirdpartylogo Hide logo of thirdparty if user is external user
|
* @param int $hidethirdpartylogo Hide logo of thirdparty if user is external user
|
||||||
* @param string $mode 'firstname'=Show only firstname
|
* @param string $mode 'firstname'=Show only firstname
|
||||||
* @param string $morecss Add more css on link
|
* @param string $morecss Add more css on link
|
||||||
* @return string String with URL
|
* @return string String with URL
|
||||||
*/
|
*/
|
||||||
function getNomUrl($withpicto=0, $option='', $infologin=0, $notooltip=0, $maxlen=24, $hidethirdpartylogo=0, $mode='',$morecss='')
|
function getNomUrl($withpictoimg=0, $option='', $infologin=0, $notooltip=0, $maxlen=24, $hidethirdpartylogo=0, $mode='',$morecss='')
|
||||||
{
|
{
|
||||||
global $langs, $conf, $db;
|
global $langs, $conf, $db;
|
||||||
global $dolibarr_main_authentication, $dolibarr_main_demo;
|
global $dolibarr_main_authentication, $dolibarr_main_demo;
|
||||||
global $menumanager;
|
global $menumanager;
|
||||||
|
|
||||||
|
if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) && $withpictoimg) $withpictoimg=0;
|
||||||
|
|
||||||
$result = '';
|
$result = '';
|
||||||
$companylink = '';
|
$companylink = '';
|
||||||
@ -1908,18 +1909,28 @@ class User extends CommonObject
|
|||||||
if (! empty($_SESSION["disablemodules"])) $label.= '<br><b>'.$langs->trans("DisabledModules").':</b> <br>'.join(', ',explode(',',$_SESSION["disablemodules"]));
|
if (! empty($_SESSION["disablemodules"])) $label.= '<br><b>'.$langs->trans("DisabledModules").':</b> <br>'.join(', ',explode(',',$_SESSION["disablemodules"]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$link.= '<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$this->id.'"';
|
||||||
$link = '<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$this->id.'"';
|
|
||||||
$link.= ($notooltip?'':' title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip'.($morecss?' '.$morecss:'').'"');
|
$link.= ($notooltip?'':' title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip'.($morecss?' '.$morecss:'').'"');
|
||||||
$link.= '>';
|
$link.= '>';
|
||||||
$linkend='</a>';
|
$linkend='</a>';
|
||||||
|
|
||||||
if ($withpicto)
|
if (abs($withpictoimg) == 1) $result.='<div class="nowrap">';
|
||||||
|
$result.=$link;
|
||||||
|
if ($withpictoimg)
|
||||||
{
|
{
|
||||||
$result.=($link.img_object(($notooltip?'':$label), 'user', ($notooltip?'':'class="classfortooltip"')).$linkend);
|
$paddafterimage='';
|
||||||
if ($withpicto != 2) $result.=' ';
|
if (abs($withpictoimg) == 1) $paddafterimage='style="padding-right: 3px;"';
|
||||||
|
if ($withpictoimg > 0) $picto='<div class="inline-block valignmiddle'.($morecss?' userimg'.$morecss:'').'">'.img_object('', 'user', $paddafterimage.' '.($notooltip?'':'class="classfortooltip"')).'</div>';
|
||||||
|
else $picto='<div class="inline-block valignmiddle'.($morecss?' userimg'.$morecss:'').'"'.($paddafterimage?' '.$paddafterimage:'').'>'.Form::showphoto('userphoto', $this, 0, 0, 0, 'loginphoto').'</div>';
|
||||||
|
$result.=$picto;
|
||||||
}
|
}
|
||||||
$result.= $link . $this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen) . $linkend . $companylink;
|
if (abs($withpictoimg) != 2)
|
||||||
|
{
|
||||||
|
$result.='<div class="inline-block valignmiddle'.($morecss?' usertext'.$morecss:'').'">'.$this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen).'</div>';
|
||||||
|
}
|
||||||
|
$result.=$linkend;
|
||||||
|
if (abs($withpictoimg) == 1) $result.='</div>';
|
||||||
|
$result.=$companylink;
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user