From 49824a0e563df78ebd5435ad56b93ef5c67e21fd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Mar 2015 18:17:25 +0100 Subject: [PATCH] Method colorStringToArray can accept the # Method monthArray can return short label of month --- htdocs/core/class/html.formother.class.php | 2 +- htdocs/core/lib/date.lib.php | 25 +++++++++++++++++++--- htdocs/core/lib/functions2.lib.php | 2 +- htdocs/main.inc.php | 4 ++-- htdocs/societe/consumption.php | 2 +- htdocs/user/class/user.class.php | 13 ++++++----- 6 files changed, 33 insertions(+), 15 deletions(-) diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 4ea60dbf2c1..786d2c53a34 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -782,7 +782,7 @@ class FormOther require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; - $montharray = monthArray($langs); // Get array + $montharray = monthArray($langs, 1); // Get array $select_month = ''; print ''; -print ''; // date +print ''; // date print $formother->select_month($month?$month:-1,'month',1); $formother->select_year($year?$year:-1,'year',1, 20, 1); print ''; diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index e8f3487a32c..9ffa762afd1 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -1793,13 +1793,13 @@ class User extends CommonObject $label = '' . $langs->trans("User") . ''; $label.= '
'; - $label .= '' . $langs->trans('Name') . ': ' . $this->getFullName($langs,'',''); + $label.= '' . $langs->trans('Name') . ': ' . $this->getFullName($langs,'',''); if (! empty($this->login)) - $label .= '
' . $langs->trans('Login') . ': ' . $this->login; + $label.= '
' . $langs->trans('Login') . ': ' . $this->login; if (! empty($this->email)) - $label .= '
' . $langs->trans("EMail").': '.$this->email; + $label.= '
' . $langs->trans("EMail").': '.$this->email; if (! empty($this->admin)) - $label .= '
' . $langs->trans("Administrator").': '.yn($this->admin); + $label.= '
' . $langs->trans("Administrator").': '.yn($this->admin); if (! empty($this->societe_id)) { $thirdpartystatic = new Societe($db); $thirdpartystatic->fetch($this->societe_id); @@ -1807,11 +1807,10 @@ class User extends CommonObject $company=' ('.$langs->trans("Company").': '.$thirdpartystatic->name.')'; } $type=($this->societe_id?$langs->trans("External").$company:$langs->trans("Internal")); - $label .= '
' . $langs->trans("Type") . ': ' . $type; + $label.= '
' . $langs->trans("Type") . ': ' . $type; if (! empty($this->photo)) { - $label.= '
'; - //if (! is_object($form)) $form = new Form($db); + $label.= '
'; $label.= Form::showphoto('userphoto', $this, 80); } $label.= '
';