Fix style and align when no permission on widget
This commit is contained in:
parent
884c6c674d
commit
58a407d9f1
@ -182,29 +182,29 @@ $formadmin = new FormAdmin($db);
|
|||||||
$wikihelp='EN:Setup|FR:Paramétrage|ES:Configuración';
|
$wikihelp='EN:Setup|FR:Paramétrage|ES:Configuración';
|
||||||
llxHeader('',$langs->trans("Setup"),$wikihelp);
|
llxHeader('',$langs->trans("Setup"),$wikihelp);
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("DefaultValues"),'','title_setup');
|
$param='&mode='.$mode;
|
||||||
|
|
||||||
print $langs->trans("DefaultValuesDesc")."<br>\n";
|
$enabledisablehtml.= $langs->trans("EnableDefaultValues").' ';
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print $langs->trans("EnableDefaultValues").' ';
|
|
||||||
if (empty($conf->global->MAIN_ENABLE_DEFAULT_VALUES))
|
if (empty($conf->global->MAIN_ENABLE_DEFAULT_VALUES))
|
||||||
{
|
{
|
||||||
// Button off, click to enable
|
// Button off, click to enable
|
||||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_DEFAULT_VALUES&value=1">';
|
$enabledisablehtml.= '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_DEFAULT_VALUES&value=1'.$param.'">';
|
||||||
print img_picto($langs->trans("Disabled"),'switch_off');
|
$enabledisablehtml.= img_picto($langs->trans("Disabled"),'switch_off');
|
||||||
print '</a>';
|
$enabledisablehtml.= '</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Button on, click to disable
|
// Button on, click to disable
|
||||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_DEFAULT_VALUES&value=0">';
|
$enabledisablehtml.= '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_DEFAULT_VALUES&value=0'.$param.'">';
|
||||||
print img_picto($langs->trans("Activated"),'switch_on');
|
$enabledisablehtml.= img_picto($langs->trans("Activated"),'switch_on');
|
||||||
print '</a>';
|
$enabledisablehtml.= '</a>';
|
||||||
}
|
}
|
||||||
print "<br><br>\n";
|
|
||||||
|
|
||||||
$param='&mode='.$mode;
|
print load_fiche_titre($langs->trans("DefaultValues"), $enabledisablehtml, 'title_setup');
|
||||||
|
|
||||||
|
print $langs->trans("DefaultValuesDesc")."<br>\n";
|
||||||
|
print "<br>\n";
|
||||||
|
|
||||||
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
|
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
||||||
if ($optioncss != '') $param.='&optioncss='.$optioncss;
|
if ($optioncss != '') $param.='&optioncss='.$optioncss;
|
||||||
|
|||||||
@ -100,7 +100,7 @@ $form=new Form($db);
|
|||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?action=setvalue">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?action=setvalue">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
|
||||||
dol_fiche_head($head, 'ldap', $langs->trans("LDAPSetup"));
|
dol_fiche_head($head, 'ldap', $langs->trans("LDAPSetup"), -1);
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
|
|||||||
@ -107,7 +107,7 @@ if (! function_exists("ldap_connect"))
|
|||||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_fiche_head($head, 'contacts', $langs->trans("LDAPSetup"));
|
dol_fiche_head($head, 'contacts', $langs->trans("LDAPSetup"), -1);
|
||||||
|
|
||||||
|
|
||||||
print $langs->trans("LDAPDescContact").'<br>';
|
print $langs->trans("LDAPDescContact").'<br>';
|
||||||
|
|||||||
@ -96,7 +96,7 @@ if (! function_exists("ldap_connect"))
|
|||||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_fiche_head($head, 'groups', $langs->trans("LDAPSetup"));
|
dol_fiche_head($head, 'groups', $langs->trans("LDAPSetup"), -1);
|
||||||
|
|
||||||
|
|
||||||
print $langs->trans("LDAPDescGroups").'<br>';
|
print $langs->trans("LDAPDescGroups").'<br>';
|
||||||
|
|||||||
@ -126,7 +126,7 @@ if (! function_exists("ldap_connect"))
|
|||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?action=setvalue">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?action=setvalue">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
|
||||||
dol_fiche_head($head, 'members', $langs->trans("LDAPSetup"));
|
dol_fiche_head($head, 'members', $langs->trans("LDAPSetup"), -1);
|
||||||
|
|
||||||
|
|
||||||
print $langs->trans("LDAPDescMembers").'<br>';
|
print $langs->trans("LDAPDescMembers").'<br>';
|
||||||
|
|||||||
@ -113,7 +113,7 @@ print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?action=setvalue">';
|
|||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
|
||||||
|
|
||||||
dol_fiche_head($head, 'users', $langs->trans("LDAPSetup"));
|
dol_fiche_head($head, 'users', $langs->trans("LDAPSetup"), -1);
|
||||||
|
|
||||||
print $langs->trans("LDAPDescUsers").'<br>';
|
print $langs->trans("LDAPDescUsers").'<br>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|||||||
@ -187,7 +187,7 @@ if ($result)
|
|||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td>'
|
print '<td>';
|
||||||
print img_object('',$picto,'class="pictoobjectwidth"').' '.$objMod->getName();
|
print img_object('',$picto,'class="pictoobjectwidth"').' '.$objMod->getName();
|
||||||
print '<a name="'.$objMod->getName().'"> </a>';
|
print '<a name="'.$objMod->getName().'"> </a>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
@ -164,7 +164,25 @@ $formadmin = new FormAdmin($db);
|
|||||||
$wikihelp='EN:Setup|FR:Paramétrage|ES:Configuración';
|
$wikihelp='EN:Setup|FR:Paramétrage|ES:Configuración';
|
||||||
llxHeader('',$langs->trans("Setup"),$wikihelp);
|
llxHeader('',$langs->trans("Setup"),$wikihelp);
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("Translation"),'','title_setup');
|
$param='&mode='.$mode;
|
||||||
|
|
||||||
|
$enabledisablehtml = $langs->trans("EnableOverwriteTranslation").' ';
|
||||||
|
if (empty($conf->global->MAIN_ENABLE_OVERWRITE_TRANSLATION))
|
||||||
|
{
|
||||||
|
// Button off, click to enable
|
||||||
|
$enabledisablehtml.='<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_OVERWRITE_TRANSLATION&value=1'.$param.'">';
|
||||||
|
$enabledisablehtml.=img_picto($langs->trans("Disabled"),'switch_off');
|
||||||
|
$enabledisablehtml.='</a>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Button on, click to disable
|
||||||
|
$enabledisablehtml.='<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_OVERWRITE_TRANSLATION&value=0'.$param.'">';
|
||||||
|
$enabledisablehtml.=img_picto($langs->trans("Activated"),'switch_on');
|
||||||
|
$enabledisablehtml.='</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
print load_fiche_titre($langs->trans("Translation"), $enabledisablehtml, 'title_setup');
|
||||||
|
|
||||||
print $langs->trans("TranslationDesc")."<br>\n";
|
print $langs->trans("TranslationDesc")."<br>\n";
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
@ -175,25 +193,6 @@ print $langs->trans("CurrentUserLanguage").': <strong>'.$s.' '.$current_language
|
|||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print $langs->trans("EnableOverwriteTranslation").' ';
|
|
||||||
if (empty($conf->global->MAIN_ENABLE_OVERWRITE_TRANSLATION))
|
|
||||||
{
|
|
||||||
// Button off, click to enable
|
|
||||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_OVERWRITE_TRANSLATION&value=1">';
|
|
||||||
print img_picto($langs->trans("Disabled"),'switch_off');
|
|
||||||
print '</a>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Button on, click to disable
|
|
||||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setMAIN_ENABLE_OVERWRITE_TRANSLATION&value=0">';
|
|
||||||
print img_picto($langs->trans("Activated"),'switch_on');
|
|
||||||
print '</a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
print '<br><br>';
|
|
||||||
|
|
||||||
$param='&mode='.$mode;
|
|
||||||
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
|
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
||||||
if ($optioncss != '') $param.='&optioncss='.$optioncss;
|
if ($optioncss != '') $param.='&optioncss='.$optioncss;
|
||||||
|
|||||||
@ -156,8 +156,8 @@ class box_actions extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'align' => 'left',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -124,8 +124,8 @@ class box_bookmarks extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'align' => 'left',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,8 +146,10 @@ class box_clients extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('align' => 'left',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -165,8 +165,8 @@ class box_commandes extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'align' => 'left',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -158,8 +158,8 @@ class box_comptes extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -151,8 +151,8 @@ class box_contacts extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'align' => 'left',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -134,7 +134,7 @@ class box_contracts extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'align="center opacitymedium"',
|
||||||
'text'=>$langs->trans("NoRecordedContracts"),
|
'text'=>$langs->trans("NoRecordedContracts"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -148,8 +148,8 @@ class box_contracts extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -169,8 +169,8 @@ class box_factures extends ModeleBoxes
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -178,8 +178,8 @@ class box_factures_fourn extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->transnoentities("ReadPermissionNotAllowed"),
|
'text' => $langs->transnoentities("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -168,8 +168,8 @@ class box_factures_fourn_imp extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -172,8 +172,8 @@ class box_factures_imp extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -134,8 +134,10 @@ class box_ficheinter extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -127,8 +127,8 @@ class box_fournisseurs extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -148,8 +148,10 @@ class box_goodcustomers extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('align' => 'left',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -255,8 +255,10 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -254,8 +254,10 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -253,8 +253,10 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -252,8 +252,10 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -99,6 +99,10 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
$nowarray=dol_getdate(dol_now(),true);
|
$nowarray=dol_getdate(dol_now(),true);
|
||||||
if (empty($year)) $year=$nowarray['year'];
|
if (empty($year)) $year=$nowarray['year'];
|
||||||
|
|
||||||
|
$nbofgraph=0;
|
||||||
|
if ($showinvoicenb) $nbofgraph++;
|
||||||
|
if ($showpropalnb) $nbofgraph++;
|
||||||
|
if ($showordernb) $nbofgraph++;
|
||||||
|
|
||||||
$text = $langs->trans("BoxProductDistribution",$max).' - '.$langs->trans("Year").': '.$year;
|
$text = $langs->trans("BoxProductDistribution",$max).' - '.$langs->trans("Year").': '.$year;
|
||||||
$this->info_box_head = array(
|
$this->info_box_head = array(
|
||||||
@ -113,11 +117,6 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$nbofgraph=0;
|
|
||||||
if ($showinvoicenb) $nbofgraph++;
|
|
||||||
if ($showpropalnb) $nbofgraph++;
|
|
||||||
if ($showordernb) $nbofgraph++;
|
|
||||||
|
|
||||||
$paramtitle=$langs->transnoentitiesnoconv("Products").'/'.$langs->transnoentitiesnoconv("Services");
|
$paramtitle=$langs->transnoentitiesnoconv("Products").'/'.$langs->transnoentitiesnoconv("Services");
|
||||||
if (empty($conf->produit->enabled)) $paramtitle=$langs->transnoentitiesnoconv("Services");
|
if (empty($conf->produit->enabled)) $paramtitle=$langs->transnoentitiesnoconv("Services");
|
||||||
if (empty($conf->service->enabled)) $paramtitle=$langs->transnoentitiesnoconv("Products");
|
if (empty($conf->service->enabled)) $paramtitle=$langs->transnoentitiesnoconv("Products");
|
||||||
@ -309,6 +308,11 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($nbofgraph))
|
||||||
|
{
|
||||||
|
$langs->load("errors");
|
||||||
|
$mesg=$langs->trans("ReadPermissionNotAllowed");
|
||||||
|
}
|
||||||
if (empty($conf->use_javascript_ajax))
|
if (empty($conf->use_javascript_ajax))
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
@ -380,9 +384,11 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array( 'td' => 'align="left" class="nohover"',
|
$this->info_box_contents[0][0] = array(
|
||||||
'maxlength'=>500,
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $mesg);
|
'maxlength'=>500,
|
||||||
|
'text' => $mesg
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -254,8 +254,10 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -157,8 +157,8 @@ class box_members extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'align' => 'left',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -188,8 +188,8 @@ class box_produits extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -195,8 +195,8 @@ class box_produits_alerte_stock extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -155,8 +155,8 @@ class box_propales extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -156,8 +156,8 @@ class box_prospect extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -161,8 +161,10 @@ class box_services_contracts extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -140,8 +140,10 @@ class box_services_expired extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array('td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -160,8 +160,8 @@ class box_supplier_orders extends ModeleBoxes
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => '',
|
'td' => 'align="left" class="nohover opacitymedium"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -191,7 +191,7 @@ FeatureAvailableOnlyOnStable=Feature only available on official stable versions
|
|||||||
Rights=Permissions
|
Rights=Permissions
|
||||||
BoxesDesc=Widgets are components showing some information that you can add to personalize some pages. You can choose between showing the widget or not by selecting target page and clicking 'Activate', or by clicking the dustbin to disable it.
|
BoxesDesc=Widgets are components showing some information that you can add to personalize some pages. You can choose between showing the widget or not by selecting target page and clicking 'Activate', or by clicking the dustbin to disable it.
|
||||||
OnlyActiveElementsAreShown=Only elements from <a href="%s">enabled modules</a> are shown.
|
OnlyActiveElementsAreShown=Only elements from <a href="%s">enabled modules</a> are shown.
|
||||||
ModulesDesc=Dolibarr modules define which functionality is enabled in software. Some modules require permissions you must grant to users, after enabling module. Click on button on/off to enable a module/feature.
|
ModulesDesc=Dolibarr modules define which application/feature is enabled in software. Some application/modules require permissions you must grant to users, after enabling module. Click on button on/off to enable an application/module.
|
||||||
ModulesMarketPlaceDesc=You can find more modules to download on external websites on the Internet...
|
ModulesMarketPlaceDesc=You can find more modules to download on external websites on the Internet...
|
||||||
ModulesDeployDesc=If permissions on your file system allows it, you can use this tool to deploy an external module. The module wil then be visible on the tab <strong>%s</strong>.
|
ModulesDeployDesc=If permissions on your file system allows it, you can use this tool to deploy an external module. The module wil then be visible on the tab <strong>%s</strong>.
|
||||||
ModulesMarketPlaces=Find external modules...
|
ModulesMarketPlaces=Find external modules...
|
||||||
@ -1107,7 +1107,7 @@ WarningAtLeastKeyOrTranslationRequired=A search criteria is required at least fo
|
|||||||
NewTranslationStringToShow=New translation string to show
|
NewTranslationStringToShow=New translation string to show
|
||||||
OriginalValueWas=The original translation is overwritten. Original value was:<br><br>%s
|
OriginalValueWas=The original translation is overwritten. Original value was:<br><br>%s
|
||||||
TransKeyWithoutOriginalValue=You forced a new translation for the translation key '<strong>%s</strong>' that does not exists in any language files
|
TransKeyWithoutOriginalValue=You forced a new translation for the translation key '<strong>%s</strong>' that does not exists in any language files
|
||||||
TotalNumberOfActivatedModules=Activated feature/modules: <b>%s</b> / <b>%s</b>
|
TotalNumberOfActivatedModules=Activated application/modules: <b>%s</b> / <b>%s</b>
|
||||||
YouMustEnableOneModule=You must at least enable 1 module
|
YouMustEnableOneModule=You must at least enable 1 module
|
||||||
ClassNotFoundIntoPathWarning=Class %s not found into PHP path
|
ClassNotFoundIntoPathWarning=Class %s not found into PHP path
|
||||||
YesInSummer=Yes in summer
|
YesInSummer=Yes in summer
|
||||||
|
|||||||
@ -2245,7 +2245,8 @@ div.tabBar div.border .table-border-row, div.tabBar div.border .table-key-border
|
|||||||
}
|
}
|
||||||
div .tdtop {
|
div .tdtop {
|
||||||
vertical-align: top !important;
|
vertical-align: top !important;
|
||||||
padding-top: 5px !important;
|
padding-top: 8px !important;
|
||||||
|
padding-bottom: 2px !important;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2820,7 +2820,7 @@ div.tabBar .noborder {
|
|||||||
div .tdtop {
|
div .tdtop {
|
||||||
vertical-align: top !important;
|
vertical-align: top !important;
|
||||||
padding-top: 5px !important;
|
padding-top: 5px !important;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tablelines tr.liste_titre td, .paymenttable tr.liste_titre td, .margintable tr.liste_titre td, .tableforservicepart1 tr.liste_titre td {
|
#tablelines tr.liste_titre td, .paymenttable tr.liste_titre td, .margintable tr.liste_titre td, .tableforservicepart1 tr.liste_titre td {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user