diff --git a/htdocs/compta/bank/transfer.php b/htdocs/compta/bank/transfer.php index d7cc6910de2..5f33afbae7f 100644 --- a/htdocs/compta/bank/transfer.php +++ b/htdocs/compta/bank/transfer.php @@ -200,11 +200,14 @@ if ($action == 'add') { * View */ +$form = new Form($db); + $help_url = 'EN:Module_Banks_and_Cash|FR:Module_Banques_et_Caisses|ES:Módulo_Bancos_y_Cajas'; $title = $langs->trans('MenuBankInternalTransfer'); llxHeader('', $title, $help_url); + print ' '; -$form = new Form($db); print load_fiche_titre($langs->trans("MenuBankInternalTransfer"), '', 'bank_account'); @@ -290,9 +292,13 @@ print '
| '.$langs->trans("TransferFrom").' | '.$langs->trans("TransferTo").' | '.$langs->trans("Type").' | '.$langs->trans("Date").' | '.$langs->trans("Description").' | '; -print ''.$langs->trans("Amount").' | '; -print ''; +print ''.$langs->trans("TransferFrom").' | '; +print ''.$langs->trans("TransferTo").' | '; +print ''.$langs->trans("Type").' | '; +print ''.$langs->trans("Date").' | '; +print ''.$langs->trans("Description").' | '; +print ''.$langs->trans("Amount").' | '; +//print ''.$langs->trans("AmountToOthercurrency").' | '; print '
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| '; + print ' | ||||||||||||
| '; print img_picto('', 'bank_account', 'class="paddingright"'); $form->select_comptes(($errori[$i] ? GETPOST($i.'_account_from', 'int') : ''), $i.'_account_from', 0, '', 1, ($errori[$i] ? 'view=view' : ''), isModEnabled('multicurrency') ? 1 : 0, 'minwidth100'); print ' | '; - print "\n"; + print ' | '; print img_picto('', 'bank_account', 'class="paddingright"'); $form->select_comptes(($errori[$i] ? GETPOST($i.'_account_to', 'int') : ''), $i.'_account_to', 0, '', 1, ($errori[$i] ? 'view=view' : ''), isModEnabled('multicurrency') ? 1 : 0, 'minwidth100'); print " | \n"; // Payment mode - print "\n"; + print ' | '; $idpaymentmodetransfer = dol_getIdFromCode($db, 'VIR', 'c_paiement'); $form->select_types_paiements(($errori[$i] ? GETPOST($i.'_type', 'aZ09') : $idpaymentmodetransfer), $i.'_type', '', 0, 1, 0, 0, 1, 'minwidth100'); print " | \n"; diff --git a/htdocs/core/boxes/box_birthdays.php b/htdocs/core/boxes/box_birthdays.php index 81cb6599ea9..1f5c7e4add7 100644 --- a/htdocs/core/boxes/box_birthdays.php +++ b/htdocs/core/boxes/box_birthdays.php @@ -88,16 +88,16 @@ class box_birthdays extends ModeleBoxes $sql = "SELECT u.rowid, u.firstname, u.lastname, u.birth as datea, date_format(u.birth, '%d') as daya, 'birth' as typea, u.email, u.statut as status"; $sql .= " FROM ".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE u.entity IN (".getEntity('user').")"; - $sql .= " AND u.statut = 1"; + $sql .= " AND u.statut = ".User::STATUS_ENABLED; $sql .= dolSqlDateFilter('u.birth', 0, $tmparray['mon'], 0); $sql .= ' UNION '; $sql .= "SELECT u.rowid, u.firstname, u.lastname, u.dateemployment as datea, date_format(u.dateemployment, '%d') as daya, 'employment' as typea, u.email, u.statut as status"; $sql .= " FROM ".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE u.entity IN (".getEntity('user').")"; - $sql .= " AND u.statut = 1"; + $sql .= " AND u.statut = ".User::STATUS_ENABLED; $sql .= dolSqlDateFilter('u.dateemployment', 0, $tmparray['mon'], 0); - - $sql .= " ORDER BY daya ASC"; + $sql .= " ORDER BY daya ASC"; // We want to have date of the month sorted by the day without taking into consideration the year + $sql .= $this->db->plimit($max, 0); dol_syslog(get_class($this)."::loadBox", LOG_DEBUG); $result = $this->db->query($sql); diff --git a/htdocs/core/boxes/box_birthdays_members.php b/htdocs/core/boxes/box_birthdays_members.php index 64a1f16e624..2a66a533e03 100644 --- a/htdocs/core/boxes/box_birthdays_members.php +++ b/htdocs/core/boxes/box_birthdays_members.php @@ -85,12 +85,12 @@ class box_birthdays_members extends ModeleBoxes if ($user->rights->adherent->lire) { $tmparray = dol_getdate(dol_now(), true); - $sql = "SELECT u.rowid, u.firstname, u.lastname, u.birth"; + $sql = "SELECT u.rowid, u.firstname, u.lastname, u.birth, date_format(u.birth, '%d') as daya, u.email, u.statut as status, u.datefin"; $sql .= " FROM ".MAIN_DB_PREFIX."adherent as u"; $sql .= " WHERE u.entity IN (".getEntity('adherent').")"; $sql .= " AND u.statut = ".Adherent::STATUS_VALIDATED; $sql .= dolSqlDateFilter('u.birth', 0, $tmparray['mon'], 0); - $sql .= " ORDER BY DAY(u.birth) ASC"; + $sql .= " ORDER BY daya ASC"; // We want to have date of the month sorted by the day without taking into consideration the year $sql .= $this->db->plimit($max, 0); dol_syslog(get_class($this)."::loadBox", LOG_DEBUG); @@ -104,9 +104,16 @@ class box_birthdays_members extends ModeleBoxes $memberstatic->id = $objp->rowid; $memberstatic->firstname = $objp->firstname; $memberstatic->lastname = $objp->lastname; + $memberstatic->email = $objp->email; + $memberstatic->status = $objp->status; + $memberstatic->statut = $memberstatic->status; + $memberstatic->datefin = $this->db->jdate($objp->datefin); + //$memberstatic->need_subscription = 1; $dateb = $this->db->jdate($objp->birth); $age = date('Y', dol_now()) - date('Y', $dateb); + $typea = ''; + $this->info_box_contents[$line][] = array( 'td' => '', 'text' => $memberstatic->getNomUrl(1), @@ -118,6 +125,12 @@ class box_birthdays_members extends ModeleBoxes 'text' => dol_print_date($dateb, "day", 'tzserver').' - '.$age.' '.$langs->trans('DurationYears') ); + $this->info_box_contents[$line][] = array( + 'td' => 'class="center nowraponall"', + 'text' => $typea, + 'asis' => 1 + ); + /*$this->info_box_contents[$line][] = array( 'td' => 'class="right" width="18"', 'text' => $memberstatic->LibStatut($objp->status, 3) diff --git a/htdocs/core/class/dolgraph.class.php b/htdocs/core/class/dolgraph.class.php index 38bfbd840d8..8fad21d5e3b 100644 --- a/htdocs/core/class/dolgraph.class.php +++ b/htdocs/core/class/dolgraph.class.php @@ -112,6 +112,11 @@ class DolGraph $this->datacolor = array(array(120, 130, 150), array(160, 160, 180), array(190, 190, 220)); $this->bgcolor = array(235, 235, 224); + // For small screen, we prefer a default with of 300 + if (!empty($conf->dol_optimize_smallscreen)) { + $this->width = 300; + } + // Load color of the theme $color_file = DOL_DOCUMENT_ROOT . '/theme/' . $conf->theme . '/theme_vars.inc.php'; if (is_readable($color_file)) { diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 02aca3cd57b..142946c3dd8 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6729,8 +6729,8 @@ class Form } // Zone de saisie manuelle de la date - $retstring .= '