Merge remote-tracking branch 'upstream/develop' into free_email
This commit is contained in:
commit
3e5489f7f6
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2020 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||||
* Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com>
|
* Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/adherents/index.php
|
* \file htdocs/adherents/index.php
|
||||||
* \ingroup member
|
* \ingroup member
|
||||||
* \brief Page accueil module adherents
|
* \brief Home page of membership module
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
@ -339,7 +339,7 @@ if ($resql)
|
|||||||
$staticmember->ref = $staticmember->getFullName($langs);
|
$staticmember->ref = $staticmember->getFullName($langs);
|
||||||
$statictype->id = $obj->typeid;
|
$statictype->id = $obj->typeid;
|
||||||
$statictype->label = $obj->label;
|
$statictype->label = $obj->label;
|
||||||
print '<td>'.$staticmember->getNomUrl(1, 32).'</td>';
|
print '<td class="nowraponall">'.$staticmember->getNomUrl(1, 32).'</td>';
|
||||||
print '<td>'.$statictype->getNomUrl(1, 32).'</td>';
|
print '<td>'.$statictype->getNomUrl(1, 32).'</td>';
|
||||||
print '<td>'.dol_print_date($db->jdate($obj->datem), 'dayhour').'</td>';
|
print '<td>'.dol_print_date($db->jdate($obj->datem), 'dayhour').'</td>';
|
||||||
print '<td class="right">'.$staticmember->LibStatut($obj->statut, ($obj->subscription == 'yes' ? 1 : 0), $db->jdate($obj->date_end_subscription), 3).'</td>';
|
print '<td class="right">'.$staticmember->LibStatut($obj->statut, ($obj->subscription == 'yes' ? 1 : 0), $db->jdate($obj->date_end_subscription), 3).'</td>';
|
||||||
@ -399,12 +399,12 @@ if ($resql)
|
|||||||
$staticmember->name = $obj->company;
|
$staticmember->name = $obj->company;
|
||||||
}
|
}
|
||||||
$staticmember->ref = $staticmember->getFullName($langs);
|
$staticmember->ref = $staticmember->getFullName($langs);
|
||||||
print '<td>'.$subscriptionstatic->getNomUrl(1).'</td>';
|
print '<td class="nowraponall">'.$subscriptionstatic->getNomUrl(1).'</td>';
|
||||||
print '<td>'.$staticmember->getNomUrl(1, 32, 'subscription').'</td>';
|
print '<td class="nowraponall">'.$staticmember->getNomUrl(1, 32, 'subscription').'</td>';
|
||||||
print '<td>'.get_date_range($db->jdate($obj->date_start), $db->jdate($obj->date_end)).'</td>';
|
print '<td class="nowraponall">'.get_date_range($db->jdate($obj->date_start), $db->jdate($obj->date_end)).'</td>';
|
||||||
print '<td class="right">'.price($obj->subscription).'</td>';
|
print '<td class="right">'.price($obj->subscription).'</td>';
|
||||||
//print '<td class="right">'.$staticmember->LibStatut($obj->statut,($obj->subscription=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
|
//print '<td class="right">'.$staticmember->LibStatut($obj->statut,($obj->subscription=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
|
||||||
print '<td class="right">'.dol_print_date($db->jdate($obj->datem ? $obj->datem : $obj->datec), 'dayhour').'</td>';
|
print '<td class="right nowraponall">'.dol_print_date($db->jdate($obj->datem ? $obj->datem : $obj->datec), 'dayhour').'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -67,12 +67,12 @@ if (!empty($conf->global->MAIN_MOTD_SETUPPAGE))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<span class="opacitymedium">';
|
print '<span class="opacitymedium hideonsmartphone">';
|
||||||
print $langs->trans("SetupDescription1");
|
print $langs->trans("SetupDescription1").' ';
|
||||||
print $langs->trans("AreaForAdminOnly").' ';
|
print $langs->trans("AreaForAdminOnly").' ';
|
||||||
print $langs->trans("SetupDescription2", $langs->transnoentities("MenuCompanySetup"), $langs->transnoentities("Modules"));
|
print $langs->trans("SetupDescription2", $langs->transnoentities("MenuCompanySetup"), $langs->transnoentities("Modules"));
|
||||||
print '</span>';
|
|
||||||
print "<br><br>";
|
print "<br><br>";
|
||||||
|
print '</span>';
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
|
|||||||
@ -143,7 +143,7 @@ $loadedExtensions = array_map('strtolower', get_loaded_extensions(false));
|
|||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td width="200">'.$langs->trans("Extension").'</td>';
|
print '<td width="200">'.$langs->trans("Extension").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("EnabledInSetup").'</td>';
|
//print '<td align="center">'.$langs->trans("EnabledInSetup").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("Loaded").'</td>';
|
print '<td align="center">'.$langs->trans("Loaded").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("FunctionTest").'</td>';
|
print '<td align="center">'.$langs->trans("FunctionTest").'</td>';
|
||||||
print '<td>'.$langs->trans("Result").'</td>';
|
print '<td>'.$langs->trans("Result").'</td>';
|
||||||
@ -154,7 +154,7 @@ $name = "GD";
|
|||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td>".$name."</td>";
|
print "<td>".$name."</td>";
|
||||||
print getTableColumn($name, $activatedExtensions);
|
//print getTableColumn($name, $activatedExtensions);
|
||||||
print getTableColumn($name, $loadedExtensions);
|
print getTableColumn($name, $loadedExtensions);
|
||||||
print getTableColumnFunction($functions);
|
print getTableColumnFunction($functions);
|
||||||
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
||||||
@ -165,7 +165,7 @@ $name = "Curl";
|
|||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td>".$name."</td>";
|
print "<td>".$name."</td>";
|
||||||
print getTableColumn($name, $activatedExtensions);
|
//print getTableColumn($name, $activatedExtensions);
|
||||||
print getTableColumn($name, $loadedExtensions);
|
print getTableColumn($name, $loadedExtensions);
|
||||||
print getTableColumnFunction($functions);
|
print getTableColumnFunction($functions);
|
||||||
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
||||||
@ -178,7 +178,7 @@ if (empty($_SERVER["SERVER_ADMIN"]) || $_SERVER["SERVER_ADMIN"] != 'doliwamp@loc
|
|||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td>".$name."</td>";
|
print "<td>".$name."</td>";
|
||||||
print getTableColumn($name, $activatedExtensions);
|
//print getTableColumn($name, $activatedExtensions);
|
||||||
print getTableColumn($name, $loadedExtensions);
|
print getTableColumn($name, $loadedExtensions);
|
||||||
print getTableColumnFunction($functions);
|
print getTableColumnFunction($functions);
|
||||||
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
||||||
@ -191,7 +191,7 @@ $name = "xDebug";
|
|||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td>".$name."</td>";
|
print "<td>".$name."</td>";
|
||||||
print getTableColumn($name, $activatedExtensions);
|
//print getTableColumn($name, $activatedExtensions);
|
||||||
print getTableColumn($name, $loadedExtensions);
|
print getTableColumn($name, $loadedExtensions);
|
||||||
print getTableColumnFunction($functions);
|
print getTableColumnFunction($functions);
|
||||||
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
print getResultColumn($name, $activatedExtensions, $loadedExtensions, $functions);
|
||||||
@ -208,7 +208,6 @@ foreach ($phparray as $key => $value)
|
|||||||
print '<div class="div-table-responsive-no-min">';
|
print '<div class="div-table-responsive-no-min">';
|
||||||
print '<table class="noborder">';
|
print '<table class="noborder">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
//print '<td width="220px">'.$langs->trans("Parameter").'</td>';
|
|
||||||
print '<td width="220px">'.$key.'</td>';
|
print '<td width="220px">'.$key.'</td>';
|
||||||
print '<td colspan="2">'.$langs->trans("Value").'</td>';
|
print '<td colspan="2">'.$langs->trans("Value").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -408,7 +407,7 @@ function getResultColumn($name, array $activated, array $loaded, array $function
|
|||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
$result = true;
|
$result = true;
|
||||||
$result = $result && in_array(strtolower($name), $activated);
|
//$result = $result && in_array(strtolower($name), $activated);
|
||||||
$result = $result && in_array(strtolower($name), $loaded);
|
$result = $result && in_array(strtolower($name), $loaded);
|
||||||
|
|
||||||
foreach ($functions as $function)
|
foreach ($functions as $function)
|
||||||
|
|||||||
@ -179,7 +179,6 @@ if ($object->id)
|
|||||||
print '<div class="fichecenter">';
|
print '<div class="fichecenter">';
|
||||||
print '<div class="underbanner clearboth"></div>';
|
print '<div class="underbanner clearboth"></div>';
|
||||||
|
|
||||||
|
|
||||||
print '<table class="border tableforfield centpercent">';
|
print '<table class="border tableforfield centpercent">';
|
||||||
print '<tr><td class="titlefield">'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.count($filearray).'</td></tr>';
|
print '<tr><td class="titlefield">'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.count($filearray).'</td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td colspan="3">'.dol_print_size($totalsize, 1, 1).'</td></tr>';
|
print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td colspan="3">'.dol_print_size($totalsize, 1, 1).'</td></tr>';
|
||||||
|
|||||||
@ -428,11 +428,11 @@ function treeOutputForAbsoluteDir($sqltree, $selecteddir, $fullpathselecteddir,
|
|||||||
print (isset($val['cachenbofdoc']) && $val['cachenbofdoc'] >= 0) ? $val['cachenbofdoc'] : ' ';
|
print (isset($val['cachenbofdoc']) && $val['cachenbofdoc'] >= 0) ? $val['cachenbofdoc'] : ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="left">';
|
print '<td class="left">';
|
||||||
if ($nbofsubdir > 0 && $nboffilesinsubdir > 0) print '<font color="#AAAAAA">+'.$nboffilesinsubdir.'</font> ';
|
if ($nbofsubdir > 0 && $nboffilesinsubdir > 0) print '<font class="opacitymedium">+'.$nboffilesinsubdir.'</font> ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Edit link
|
// Edit link
|
||||||
print '<td class="right" width="18"><a href="';
|
print '<td class="right" width="18"><a class="editfielda" href="';
|
||||||
print DOL_URL_ROOT.'/ecm/dir_card.php?module='.urlencode($modulepart).'§ion='.$val['id'].'&relativedir='.urlencode($val['fullrelativename']);
|
print DOL_URL_ROOT.'/ecm/dir_card.php?module='.urlencode($modulepart).'§ion='.$val['id'].'&relativedir='.urlencode($val['fullrelativename']);
|
||||||
print '&backtopage='.urlencode($_SERVER["PHP_SELF"].'?file_manager=1&website='.$websitekey.'&pageid='.$pageid);
|
print '&backtopage='.urlencode($_SERVER["PHP_SELF"].'?file_manager=1&website='.$websitekey.'&pageid='.$pageid);
|
||||||
print '">'.img_edit($langs->trans("Edit").' - '.$langs->trans("View"), 0, 'class="valignmiddle opacitymedium"').'</a></td>';
|
print '">'.img_edit($langs->trans("Edit").' - '.$langs->trans("View"), 0, 'class="valignmiddle opacitymedium"').'</a></td>';
|
||||||
|
|||||||
@ -99,7 +99,7 @@ if (!empty($conf->commande->enabled) && empty($conf->global->MAIN_SEARCHFORM_CUS
|
|||||||
}
|
}
|
||||||
if (!empty($conf->expedition->enabled) && empty($conf->global->MAIN_SEARCHFORM_CUSTOMER_SHIPMENT_DISABLED) && $user->rights->expedition->lire)
|
if (!empty($conf->expedition->enabled) && empty($conf->global->MAIN_SEARCHFORM_CUSTOMER_SHIPMENT_DISABLED) && $user->rights->expedition->lire)
|
||||||
{
|
{
|
||||||
$arrayresult['searchintoshipment'] = array('position'=>80, 'img'=>'object_sending', 'label'=>$langs->trans("SearchIntoCustomerShipments", $search_boxvalue), 'text'=>img_picto('', 'object_sending').' '.$langs->trans("SearchIntoCustomerShipments", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/expedition/list.php'.($search_boxvalue ? '?sall='.urlencode($search_boxvalue) : ''));
|
$arrayresult['searchintoshipment'] = array('position'=>80, 'img'=>'object_shipment', 'label'=>$langs->trans("SearchIntoCustomerShipments", $search_boxvalue), 'text'=>img_picto('', 'object_shipment').' '.$langs->trans("SearchIntoCustomerShipments", $search_boxvalue), 'url'=>DOL_URL_ROOT.'/expedition/list.php'.($search_boxvalue ? '?sall='.urlencode($search_boxvalue) : ''));
|
||||||
}
|
}
|
||||||
if (!empty($conf->facture->enabled) && empty($conf->global->MAIN_SEARCHFORM_CUSTOMER_INVOICE_DISABLED) && $user->rights->facture->lire)
|
if (!empty($conf->facture->enabled) && empty($conf->global->MAIN_SEARCHFORM_CUSTOMER_INVOICE_DISABLED) && $user->rights->facture->lire)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -690,8 +690,6 @@ class Conf
|
|||||||
$this->global->AGENDA_DEFAULT_FILTER_TYPE = '0'; // 'AC_NON_AUTO' does not exists when AGENDA_DEFAULT_FILTER_TYPE is not on.
|
$this->global->AGENDA_DEFAULT_FILTER_TYPE = '0'; // 'AC_NON_AUTO' does not exists when AGENDA_DEFAULT_FILTER_TYPE is not on.
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($this->global->MAIN_USE_OLD_TITLE_BUTTON)) $this->global->MAIN_USE_OLD_TITLE_BUTTON = 0;
|
|
||||||
|
|
||||||
if (!isset($this->global->MAIN_JS_GRAPH)) $this->global->MAIN_JS_GRAPH = 'chart'; // Use chart.js library
|
if (!isset($this->global->MAIN_JS_GRAPH)) $this->global->MAIN_JS_GRAPH = 'chart'; // Use chart.js library
|
||||||
|
|
||||||
if (empty($this->global->MAIN_MODULE_DOLISTORE_API_SRV)) $this->global->MAIN_MODULE_DOLISTORE_API_SRV = 'https://www.dolistore.com';
|
if (empty($this->global->MAIN_MODULE_DOLISTORE_API_SRV)) $this->global->MAIN_MODULE_DOLISTORE_API_SRV = 'https://www.dolistore.com';
|
||||||
|
|||||||
@ -7701,10 +7701,11 @@ class Form
|
|||||||
* @param int $enableonly Array list of groups id to be enabled. All other must be disabled
|
* @param int $enableonly Array list of groups id to be enabled. All other must be disabled
|
||||||
* @param string $force_entity '0' or Ids of environment to force
|
* @param string $force_entity '0' or Ids of environment to force
|
||||||
* @param bool $multiple add [] in the name of element and add 'multiple' attribut (not working with ajax_autocompleter)
|
* @param bool $multiple add [] in the name of element and add 'multiple' attribut (not working with ajax_autocompleter)
|
||||||
|
* @param string $morecss More css to add to html component
|
||||||
* @return string
|
* @return string
|
||||||
* @see select_dolusers()
|
* @see select_dolusers()
|
||||||
*/
|
*/
|
||||||
public function select_dolgroups($selected = '', $htmlname = 'groupid', $show_empty = 0, $exclude = '', $disabled = 0, $include = '', $enableonly = '', $force_entity = '0', $multiple = false)
|
public function select_dolgroups($selected = '', $htmlname = 'groupid', $show_empty = 0, $exclude = '', $disabled = 0, $include = '', $enableonly = '', $force_entity = '0', $multiple = false, $morecss = '')
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $conf, $user, $langs;
|
global $conf, $user, $langs;
|
||||||
@ -7747,7 +7748,7 @@ class Form
|
|||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php';
|
||||||
$out .= ajax_combobox($htmlname);
|
$out .= ajax_combobox($htmlname);
|
||||||
|
|
||||||
$out .= '<select class="flat minwidth200" id="'.$htmlname.'" name="'.$htmlname.($multiple ? '[]' : '').'" '.($multiple ? 'multiple' : '').' '.($disabled ? ' disabled' : '').'>';
|
$out .= '<select class="flat minwidth200'.($morecss ? ' '.$morecss : '').'" id="'.$htmlname.'" name="'.$htmlname.($multiple ? '[]' : '').'" '.($multiple ? 'multiple' : '').' '.($disabled ? ' disabled' : '').'>';
|
||||||
|
|
||||||
$num = $this->db->num_rows($resql);
|
$num = $this->db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
@ -339,9 +339,10 @@ class FormActions
|
|||||||
* @param int $hideinfohelp 1=Do not show info help, 0=Show, -1=Show+Add info to tell how to set default value
|
* @param int $hideinfohelp 1=Do not show info help, 0=Show, -1=Show+Add info to tell how to set default value
|
||||||
* @param int $multiselect 1=Allow multiselect of action type
|
* @param int $multiselect 1=Allow multiselect of action type
|
||||||
* @param int $nooutput 1=No output
|
* @param int $nooutput 1=No output
|
||||||
|
* @param string $morecss More css to add to SELECT component.
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function select_type_actions($selected = '', $htmlname = 'actioncode', $excludetype = '', $onlyautoornot = 0, $hideinfohelp = 0, $multiselect = 0, $nooutput = 0)
|
public function select_type_actions($selected = '', $htmlname = 'actioncode', $excludetype = '', $onlyautoornot = 0, $hideinfohelp = 0, $multiselect = 0, $nooutput = 0, $morecss = '')
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $langs, $user, $form, $conf;
|
global $langs, $user, $form, $conf;
|
||||||
@ -371,7 +372,7 @@ class FormActions
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$out .= $form->selectarray($htmlname, $arraylist, $selected, 0, 0, 0, '', 0, 0, 0, '', 'minwidth200', 1);
|
$out .= $form->selectarray($htmlname, $arraylist, $selected, 0, 0, 0, '', 0, 0, 0, '', 'minwidth200'.($morecss ? ' '.$morecss : ''), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->admin && empty($onlyautoornot) && $hideinfohelp <= 0)
|
if ($user->admin && empty($onlyautoornot) && $hideinfohelp <= 0)
|
||||||
|
|||||||
@ -78,9 +78,10 @@ class FormFile
|
|||||||
* @param string $accept Specifies the types of files accepted (This is not a security check but an user interface facility. eg '.pdf,image/*' or '.png,.jpg' or 'video/*')
|
* @param string $accept Specifies the types of files accepted (This is not a security check but an user interface facility. eg '.pdf,image/*' or '.png,.jpg' or 'video/*')
|
||||||
* @param string $sectiondir If upload must be done inside a particular directory (if sectiondir defined, sectionid must not be)
|
* @param string $sectiondir If upload must be done inside a particular directory (if sectiondir defined, sectionid must not be)
|
||||||
* @param int $usewithoutform 0=Default, 1=Disable <form> and style to use in existing area
|
* @param int $usewithoutform 0=Default, 1=Disable <form> and style to use in existing area
|
||||||
|
* @param int $capture 1=Add tag capture="capture" to force use of micro or video recording to generate file. When setting this to 1, you must also provide a value for $accept.
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function form_attach_new_file($url, $title = '', $addcancel = 0, $sectionid = 0, $perm = 1, $size = 50, $object = '', $options = '', $useajax = 1, $savingdocmask = '', $linkfiles = 1, $htmlname = 'formuserfile', $accept = '', $sectiondir = '', $usewithoutform = 0)
|
public function form_attach_new_file($url, $title = '', $addcancel = 0, $sectionid = 0, $perm = 1, $size = 50, $object = '', $options = '', $useajax = 1, $savingdocmask = '', $linkfiles = 1, $htmlname = 'formuserfile', $accept = '', $sectiondir = '', $usewithoutform = 0, $capture = 0)
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $conf, $langs, $hookmanager;
|
global $conf, $langs, $hookmanager;
|
||||||
@ -170,6 +171,7 @@ class FormFile
|
|||||||
$out .= ((!empty($conf->global->MAIN_DISABLE_MULTIPLE_FILEUPLOAD) || $conf->browser->layout != 'classic') ? ' name="userfile"' : ' name="userfile[]" multiple');
|
$out .= ((!empty($conf->global->MAIN_DISABLE_MULTIPLE_FILEUPLOAD) || $conf->browser->layout != 'classic') ? ' name="userfile"' : ' name="userfile[]" multiple');
|
||||||
$out .= (empty($conf->global->MAIN_UPLOAD_DOC) || empty($perm) ? ' disabled' : '');
|
$out .= (empty($conf->global->MAIN_UPLOAD_DOC) || empty($perm) ? ' disabled' : '');
|
||||||
$out .= (!empty($accept) ? ' accept="'.$accept.'"' : ' accept=""');
|
$out .= (!empty($accept) ? ' accept="'.$accept.'"' : ' accept=""');
|
||||||
|
$out .= (!empty($capture) ? ' capture="capture"' : '');
|
||||||
$out .= '>';
|
$out .= '>';
|
||||||
$out .= ' ';
|
$out .= ' ';
|
||||||
if ($sectionid) { // Show overwrite if exists for ECM module only
|
if ($sectionid) { // Show overwrite if exists for ECM module only
|
||||||
|
|||||||
@ -77,27 +77,29 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
{
|
{
|
||||||
// Type
|
// Type
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '<td class="nowrap">';
|
||||||
print $langs->trans("Type");
|
print $langs->trans("Type");
|
||||||
print '</td><td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '</td><td class="nowraponall">';
|
||||||
$multiselect = 0;
|
$multiselect = 0;
|
||||||
if (!empty($conf->global->MAIN_ENABLE_MULTISELECT_TYPE)) // We use an option here because it adds bugs when used on agenda page "peruser" and "list"
|
if (!empty($conf->global->MAIN_ENABLE_MULTISELECT_TYPE)) // We use an option here because it adds bugs when used on agenda page "peruser" and "list"
|
||||||
{
|
{
|
||||||
$multiselect = (!empty($conf->global->AGENDA_USE_EVENT_TYPE));
|
$multiselect = (!empty($conf->global->AGENDA_USE_EVENT_TYPE));
|
||||||
}
|
}
|
||||||
print '<span class="fas fa-square" style=" color: #ddd;"></span>';
|
print '<span class="fas fa-square inline-block fawidth30" style=" color: #ddd;"></span>';
|
||||||
print $formactions->select_type_actions($actioncode, "search_actioncode", $excludetype, (empty($conf->global->AGENDA_USE_EVENT_TYPE) ? 1 : -1), 0, $multiselect);
|
print $formactions->select_type_actions($actioncode, "search_actioncode", $excludetype, (empty($conf->global->AGENDA_USE_EVENT_TYPE) ? 1 : -1), 0, $multiselect, 0, 'maxwidth500');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Assigned to
|
// Assigned to
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '<td class="nowrap">';
|
||||||
print $langs->trans("ActionsToDoBy").' ';
|
print $langs->trans("ActionsToDoBy").' ';
|
||||||
print '</td><td style="padding-bottom: 2px; padding-right: 4px;">';
|
print '</td><td>';
|
||||||
print img_picto('', 'user');
|
print img_picto('', 'user', 'class="fawidth30 inline-block"');
|
||||||
print $form->select_dolusers($filtert, 'search_filtert', 1, '', !$canedit, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
|
print $form->select_dolusers($filtert, 'search_filtert', 1, '', !$canedit, '', '', 0, 0, 0, '', 0, '', 'maxwidth500');
|
||||||
if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("or").' '.$langs->trans("ToUserOfGroup").' ';
|
if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("or").' '.$langs->trans("ToUserOfGroup").' ';
|
||||||
print $form->select_dolgroups($usergroupid, 'usergroup', 1, '', !$canedit);
|
else print '<br>';
|
||||||
|
print img_picto('', 'object_group', 'class="fawidth30 inline-block"');
|
||||||
|
print $form->select_dolgroups($usergroupid, 'usergroup', 1, '', !$canedit, '', '', '0', false, 'maxwidth500');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
if ($conf->resource->enabled)
|
if ($conf->resource->enabled)
|
||||||
@ -107,11 +109,11 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
|
|
||||||
// Resource
|
// Resource
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '<td class="nowrap">';
|
||||||
print $langs->trans("Resource");
|
print $langs->trans("Resource");
|
||||||
print '</td><td class="nowrap maxwidthonsmartphone" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '</td><td class="nowraponall">';
|
||||||
print img_picto('', 'object_resource');
|
print img_picto('', 'object_resource', 'class="fawidth30 inline-block"');
|
||||||
print $formresource->select_resource_list($resourceid, "search_resourceid", '', 1, 0, 0, null, '', 2);
|
print $formresource->select_resource_list($resourceid, "search_resourceid", '', 1, 0, 0, null, '', 2, 0, 'maxwidth500');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -119,11 +121,11 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
if (!empty($conf->societe->enabled) && $user->rights->societe->lire)
|
if (!empty($conf->societe->enabled) && $user->rights->societe->lire)
|
||||||
{
|
{
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '<td class="nowrap">';
|
||||||
print $langs->trans("ThirdParty").' ';
|
print $langs->trans("ThirdParty").' ';
|
||||||
print '</td><td class="nowrap" style="padding-bottom: 2px;">';
|
print '</td><td class="nowraponall">';
|
||||||
print img_picto('', 'company');
|
print img_picto('', 'company', 'class="fawidth30 inline-block"');
|
||||||
print $form->select_company($socid, 'search_socid', '', ' ', 0, 0, null, 0);
|
print $form->select_company($socid, 'search_socid', '', ' ', 0, 0, null, 0, 'minwidth100 maxwidth500');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,10 +135,10 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
$formproject = new FormProjets($db);
|
$formproject = new FormProjets($db);
|
||||||
|
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px;">';
|
print '<td class="nowrap">';
|
||||||
print $langs->trans("Project").' ';
|
print $langs->trans("Project").' ';
|
||||||
print '</td><td class="nowrap" style="padding-bottom: 2px;">';
|
print '</td><td class="nowraponall">';
|
||||||
print img_picto('', 'project');
|
print img_picto('', 'project', 'class="fawidth30 inline-block"');
|
||||||
print $formproject->select_projects($socid ? $socid : -1, $pid, 'search_projectid', 0, 0, 1, 0, 0, 0, 0, '', 1, 0, 'maxwidth500');
|
print $formproject->select_projects($socid ? $socid : -1, $pid, 'search_projectid', 0, 0, 1, 0, 0, 0, 0, '', 1, 0, 'maxwidth500');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
@ -145,9 +147,9 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
{
|
{
|
||||||
// Status
|
// Status
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print '<td class="nowrap">';
|
||||||
print $langs->trans("Status");
|
print $langs->trans("Status");
|
||||||
print ' </td><td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">';
|
print ' </td><td class="nowraponall">';
|
||||||
$formactions->form_select_status_action('formaction', $status, 1, 'search_status', 1, 2, 'minwidth100');
|
$formactions->form_select_status_action('formaction', $status, 1, 'search_status', 1, 2, 'minwidth100');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
@ -156,7 +158,7 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
|
|||||||
{
|
{
|
||||||
// Filter on hours
|
// Filter on hours
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="nowrap" style="padding-bottom: 2px; padding-right: 4px;">'.$langs->trans("VisibleTimeRange").'</td>';
|
print '<td class="nowrap">'.$langs->trans("VisibleTimeRange").'</td>';
|
||||||
print "<td class='nowrap'>";
|
print "<td class='nowrap'>";
|
||||||
print '<div class="ui-grid-a"><div class="ui-block-a">';
|
print '<div class="ui-grid-a"><div class="ui-block-a">';
|
||||||
print '<input type="number" class="short" name="begin_h" value="'.$begin_h.'" min="0" max="23">';
|
print '<input type="number" class="short" name="begin_h" value="'.$begin_h.'" min="0" max="23">';
|
||||||
|
|||||||
@ -3162,7 +3162,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'object_margin', 'object_money-bill-alt', 'object_multicurrency', 'object_order', 'object_payment',
|
'object_margin', 'object_money-bill-alt', 'object_multicurrency', 'object_order', 'object_payment',
|
||||||
'object_lot', 'object_mrp', 'object_payment', 'object_product', 'object_propal',
|
'object_lot', 'object_mrp', 'object_payment', 'object_product', 'object_propal',
|
||||||
'object_other', 'object_paragraph', 'object_poll', 'object_printer', 'object_project', 'object_projectpub', 'object_propal', 'object_resource', 'object_rss', 'object_projecttask',
|
'object_other', 'object_paragraph', 'object_poll', 'object_printer', 'object_project', 'object_projectpub', 'object_propal', 'object_resource', 'object_rss', 'object_projecttask',
|
||||||
'object_supplier_invoice', 'object_supplier_order', 'object_supplier_proposal', 'object_service', 'object_stock',
|
'object_shipment', 'object_supplier_invoice', 'object_supplier_order', 'object_supplier_proposal', 'object_service', 'object_stock',
|
||||||
'object_technic', 'object_ticket', 'object_trip', 'object_user', 'object_group', 'object_member',
|
'object_technic', 'object_ticket', 'object_trip', 'object_user', 'object_group', 'object_member',
|
||||||
'object_phoning', 'object_phoning_mobile', 'object_phoning_fax', 'object_email',
|
'object_phoning', 'object_phoning_mobile', 'object_phoning_fax', 'object_email',
|
||||||
'off', 'on', 'order',
|
'off', 'on', 'order',
|
||||||
@ -3209,7 +3209,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'resize'=>'crop', 'supplier_order'=>'dol-order_supplier', 'supplier_proposal'=>'file-signature',
|
'resize'=>'crop', 'supplier_order'=>'dol-order_supplier', 'supplier_proposal'=>'file-signature',
|
||||||
'payment'=>'money-check-alt', 'phoning'=>'phone', 'phoning_mobile'=>'mobile-alt', 'phoning_fax'=>'fax', 'printer'=>'print', 'product'=>'cube', 'service'=>'concierge-bell',
|
'payment'=>'money-check-alt', 'phoning'=>'phone', 'phoning_mobile'=>'mobile-alt', 'phoning_fax'=>'fax', 'printer'=>'print', 'product'=>'cube', 'service'=>'concierge-bell',
|
||||||
'resource'=>'laptop-house',
|
'resource'=>'laptop-house',
|
||||||
'stock'=>'box-open', 'stats' => 'chart-bar', 'split'=>'code-branch', 'supplier_invoice'=>'file-invoice-dollar', 'technic'=>'cogs', 'ticket'=>'ticket-alt',
|
'shipment'=>'dolly', 'stock'=>'box-open', 'stats' => 'chart-bar', 'split'=>'code-branch', 'supplier_invoice'=>'file-invoice-dollar', 'technic'=>'cogs', 'ticket'=>'ticket-alt',
|
||||||
'title_setup'=>'tools', 'title_accountancy'=>'money-check-alt', 'title_bank'=>'university', 'title_hrm'=>'umbrella-beach',
|
'title_setup'=>'tools', 'title_accountancy'=>'money-check-alt', 'title_bank'=>'university', 'title_hrm'=>'umbrella-beach',
|
||||||
'title_agenda'=>'calendar-alt',
|
'title_agenda'=>'calendar-alt',
|
||||||
'uparrow'=>'mail-forward',
|
'uparrow'=>'mail-forward',
|
||||||
@ -3273,7 +3273,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'error'=>'pictoerror', 'warning'=>'pictowarning', 'switch_on'=>'font-status4',
|
'error'=>'pictoerror', 'warning'=>'pictowarning', 'switch_on'=>'font-status4',
|
||||||
'holiday'=>'bg-infobox-holiday', 'invoice'=>'bg-infobox-commande',
|
'holiday'=>'bg-infobox-holiday', 'invoice'=>'bg-infobox-commande',
|
||||||
'payment'=>'bg-infobox-bank_account', 'poll'=>'bg-infobox-adherent', 'project'=>'bg-infobox-project', 'projecttask'=>'bg-infobox-project', 'propal'=>'bg-infobox-propal',
|
'payment'=>'bg-infobox-bank_account', 'poll'=>'bg-infobox-adherent', 'project'=>'bg-infobox-project', 'projecttask'=>'bg-infobox-project', 'propal'=>'bg-infobox-propal',
|
||||||
'resource'=>'bg-infobox-action', 'supplier_invoice'=>'bg-infobox-order_supplier', 'supplier_order'=>'bg-infobox-order_supplier', 'supplier_proposal'=>'bg-infobox-supplier_proposal',
|
'resource'=>'bg-infobox-action',
|
||||||
|
'supplier_invoice'=>'bg-infobox-order_supplier', 'supplier_order'=>'bg-infobox-order_supplier', 'supplier_proposal'=>'bg-infobox-supplier_proposal',
|
||||||
'ticket'=>'bg-infobox-contrat', 'title_accountancy'=>'bg-infobox-bank_account', 'title_hrm'=>'bg-infobox-holiday', 'trip'=>'bg-infobox-expensereport', 'title_agenda'=>'bg-infobox-action',
|
'ticket'=>'bg-infobox-contrat', 'title_accountancy'=>'bg-infobox-bank_account', 'title_hrm'=>'bg-infobox-holiday', 'trip'=>'bg-infobox-expensereport', 'title_agenda'=>'bg-infobox-action',
|
||||||
//'title_setup'=>'bg-infobox-action', 'tools'=>'bg-infobox-action',
|
//'title_setup'=>'bg-infobox-action', 'tools'=>'bg-infobox-action',
|
||||||
'list-alt'=>'imgforviewmode', 'calendar'=>'imgforviewmode', 'calendarweek'=>'imgforviewmode', 'calendarmonth'=>'imgforviewmode', 'calendarday'=>'imgforviewmode', 'calendarperuser'=>'imgforviewmode'
|
'list-alt'=>'imgforviewmode', 'calendar'=>'imgforviewmode', 'calendarweek'=>'imgforviewmode', 'calendarmonth'=>'imgforviewmode', 'calendarday'=>'imgforviewmode', 'calendarperuser'=>'imgforviewmode'
|
||||||
@ -3291,7 +3292,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'map-marker-alt'=>'#aaa', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'stock'=>'#a69944',
|
'map-marker-alt'=>'#aaa', 'mrp'=>'#a69944', 'product'=>'#a69944', 'service'=>'#a69944', 'stock'=>'#a69944',
|
||||||
'other'=>'#ddd',
|
'other'=>'#ddd',
|
||||||
'playdisabled'=>'#ccc', 'printer'=>'#444', 'projectpub'=>'#986c6a', 'resize'=>'#444', 'rss'=>'#cba',
|
'playdisabled'=>'#ccc', 'printer'=>'#444', 'projectpub'=>'#986c6a', 'resize'=>'#444', 'rss'=>'#cba',
|
||||||
'stats'=>'#444', 'switch_off'=>'#999', 'uparrow'=>'#555', 'globe-americas'=>'#aaa'
|
'shipment'=>'#a69944', 'stats'=>'#444', 'switch_off'=>'#999', 'uparrow'=>'#555', 'globe-americas'=>'#aaa'
|
||||||
);
|
);
|
||||||
if (isset($arrayconvpictotocolor[$pictowithouttext])) {
|
if (isset($arrayconvpictotocolor[$pictowithouttext])) {
|
||||||
$facolor = $arrayconvpictotocolor[$pictowithouttext];
|
$facolor = $arrayconvpictotocolor[$pictowithouttext];
|
||||||
@ -4522,15 +4523,17 @@ function print_fleche_navigation($page, $file, $options = '', $nextpage = 0, $be
|
|||||||
}
|
}
|
||||||
if ($page > 0)
|
if ($page > 0)
|
||||||
{
|
{
|
||||||
print '<li class="pagination"><a class="paginationprevious" href="'.$file.'?page='.($page - 1).$options.'"><i class="fa fa-chevron-left" title="'.dol_escape_htmltag($langs->trans("Previous")).'"></i></a></li>';
|
print '<li class="pagination paginationpage"><a class="paginationprevious" href="'.$file.'?page='.($page - 1).$options.'"><i class="fa fa-chevron-left" title="'.dol_escape_htmltag($langs->trans("Previous")).'"></i></a></li>';
|
||||||
}
|
}
|
||||||
if ($betweenarrows)
|
if ($betweenarrows)
|
||||||
{
|
{
|
||||||
|
print '<!--<div class="betweenarrows nowraponall inline-block">-->';
|
||||||
print $betweenarrows;
|
print $betweenarrows;
|
||||||
|
print '<!--</div>-->';
|
||||||
}
|
}
|
||||||
if ($nextpage > 0)
|
if ($nextpage > 0)
|
||||||
{
|
{
|
||||||
print '<li class="pagination"><a class="paginationnext" href="'.$file.'?page='.($page + 1).$options.'"><i class="fa fa-chevron-right" title="'.dol_escape_htmltag($langs->trans("Next")).'"></i></a></li>';
|
print '<li class="pagination paginationpage"><a class="paginationnext" href="'.$file.'?page='.($page + 1).$options.'"><i class="fa fa-chevron-right" title="'.dol_escape_htmltag($langs->trans("Next")).'"></i></a></li>';
|
||||||
}
|
}
|
||||||
if ($afterarrows)
|
if ($afterarrows)
|
||||||
{
|
{
|
||||||
@ -8622,11 +8625,8 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
|||||||
}
|
}
|
||||||
|
|
||||||
$class = 'btnTitle';
|
$class = 'btnTitle';
|
||||||
|
if ($iconClass == 'fa fa-plus-circle') $class .= ' btnTitlePlus';
|
||||||
|
|
||||||
// hidden conf keep during button transition TODO: remove this block
|
|
||||||
if (!empty($conf->global->MAIN_USE_OLD_TITLE_BUTTON)) {
|
|
||||||
$class = 'butActionNew';
|
|
||||||
}
|
|
||||||
if (!empty($params['morecss'])) $class .= ' '.$params['morecss'];
|
if (!empty($params['morecss'])) $class .= ' '.$params['morecss'];
|
||||||
|
|
||||||
$attr = array(
|
$attr = array(
|
||||||
@ -8641,11 +8641,6 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
|||||||
if ($status <= 0) {
|
if ($status <= 0) {
|
||||||
$attr['class'] .= ' refused';
|
$attr['class'] .= ' refused';
|
||||||
|
|
||||||
// hidden conf keep during button transition TODO: remove this block
|
|
||||||
if (!empty($conf->global->MAIN_USE_OLD_TITLE_BUTTON)) {
|
|
||||||
$attr['class'] = 'butActionNewRefused';
|
|
||||||
}
|
|
||||||
|
|
||||||
$attr['href'] = '';
|
$attr['href'] = '';
|
||||||
|
|
||||||
if ($status == -1) { // disable
|
if ($status == -1) { // disable
|
||||||
@ -8697,18 +8692,12 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
|
|||||||
|
|
||||||
$tag = (empty($attr['href']) ? 'span' : 'a');
|
$tag = (empty($attr['href']) ? 'span' : 'a');
|
||||||
|
|
||||||
$button = '<'.$tag.' '.$compiledAttributes.' >';
|
$button = '';
|
||||||
|
$button .= '<'.$tag.' '.$compiledAttributes.' >';
|
||||||
$button .= '<span class="'.$iconClass.' valignmiddle btnTitle-icon"></span>';
|
$button .= '<span class="'.$iconClass.' valignmiddle btnTitle-icon"></span>';
|
||||||
$button .= '<span class="valignmiddle text-plus-circle btnTitle-label'.(empty($params['forcenohideoftext']) ? ' hideonsmartphone' : '').'">'.$label.'</span>';
|
$button .= '<span class="valignmiddle text-plus-circle btnTitle-label'.(empty($params['forcenohideoftext']) ? ' hideonsmartphone' : '').'">'.$label.'</span>';
|
||||||
$button .= '</'.$tag.'>';
|
$button .= '</'.$tag.'>';
|
||||||
|
|
||||||
// hidden conf keep during button transition TODO: remove this block
|
|
||||||
if (!empty($conf->global->MAIN_USE_OLD_TITLE_BUTTON)) {
|
|
||||||
$button = '<'.$tag.' '.$compiledAttributes.' ><span class="text-plus-circle">'.$label.'</span>';
|
|
||||||
$button .= '<span class="'.$iconClass.' valignmiddle"></span>';
|
|
||||||
$button .= '</'.$tag.'>';
|
|
||||||
}
|
|
||||||
|
|
||||||
return $button;
|
return $button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2314,7 +2314,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||||||
print '</div>
|
print '</div>
|
||||||
<div class="info-box-content info-box-text-module">
|
<div class="info-box-content info-box-text-module">
|
||||||
<span class="info-box-title">'.$this->getName().'</span>
|
<span class="info-box-title">'.$this->getName().'</span>
|
||||||
<span class="info-box-desc twolinesmax" title="'.dol_escape_htmltag($this->getDesc()).'">'.nl2br($this->getDesc()).'</span>';
|
<span class="info-box-desc twolinesmax opacitymedium" title="'.dol_escape_htmltag($this->getDesc()).'">'.nl2br($this->getDesc()).'</span>';
|
||||||
|
|
||||||
/*print '<span class="info-box-icon-version" title="'.$langs->trans("Version").' '.$this->getVersion(1).'">';
|
/*print '<span class="info-box-icon-version" title="'.$langs->trans("Version").' '.$this->getVersion(1).'">';
|
||||||
print $this->getVersion(1);
|
print $this->getVersion(1);
|
||||||
|
|||||||
@ -200,7 +200,7 @@ CREATE TABLE llx_emailcollector_emailcollectorfilter(
|
|||||||
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
||||||
fk_emailcollector INTEGER NOT NULL,
|
fk_emailcollector INTEGER NOT NULL,
|
||||||
type varchar(128) NOT NULL,
|
type varchar(128) NOT NULL,
|
||||||
rulevalue varchar(255) NULL,
|
rulevalue varchar(128) NULL,
|
||||||
date_creation datetime NOT NULL,
|
date_creation datetime NOT NULL,
|
||||||
tms timestamp NOT NULL,
|
tms timestamp NOT NULL,
|
||||||
fk_user_creat integer NOT NULL,
|
fk_user_creat integer NOT NULL,
|
||||||
|
|||||||
@ -1015,7 +1015,7 @@ LocalTax2IsUsedDescES=The IRPF rate by default when creating prospects, invoices
|
|||||||
LocalTax2IsNotUsedDescES=By default the proposed IRPF is 0. End of rule.
|
LocalTax2IsNotUsedDescES=By default the proposed IRPF is 0. End of rule.
|
||||||
LocalTax2IsUsedExampleES=In Spain, freelancers and independent professionals who provide services and companies who have chosen the tax system of modules.
|
LocalTax2IsUsedExampleES=In Spain, freelancers and independent professionals who provide services and companies who have chosen the tax system of modules.
|
||||||
LocalTax2IsNotUsedExampleES=In Spain they are businesses not subject to tax system of modules.
|
LocalTax2IsNotUsedExampleES=In Spain they are businesses not subject to tax system of modules.
|
||||||
RevenueStampDesc=The "tax stamp" or "revenue stamp" is a fixed tax you per invoice (It does not depend on amount of invoice). It can also be a percent tax but using the second or third type of tax is better for percent taxes as tax stamps des not provide any reporting. Only few countries uses this type of tax.
|
RevenueStampDesc=The "tax stamp" or "revenue stamp" is a fixed tax you per invoice (It does not depend on amount of invoice). It can also be a percent tax but using the second or third type of tax is better for percent taxes as tax stamps does not provide any reporting. Only few countries uses this type of tax.
|
||||||
UseRevenueStamp=Use a tax stamp
|
UseRevenueStamp=Use a tax stamp
|
||||||
UseRevenueStampExample=The value of tax stamp is defined by default into the setup of dictionaries (%s - %s - %s)
|
UseRevenueStampExample=The value of tax stamp is defined by default into the setup of dictionaries (%s - %s - %s)
|
||||||
CalcLocaltax=Reports on local taxes
|
CalcLocaltax=Reports on local taxes
|
||||||
|
|||||||
@ -2180,7 +2180,7 @@ function left_menu($menu_array_before, $helppagename = '', $notused = '', $menu_
|
|||||||
} else {
|
} else {
|
||||||
if (is_array($arrayresult)) {
|
if (is_array($arrayresult)) {
|
||||||
foreach ($arrayresult as $key => $val) {
|
foreach ($arrayresult as $key => $val) {
|
||||||
$searchform .= printSearchForm($val['url'], $val['url'], $val['label'], 'maxwidth125', 'sall', $val['shortcut'], 'searchleft'.$key, img_picto('', $val['img'], '', false, 1, 1));
|
$searchform .= printSearchForm($val['url'], $val['url'], $val['label'], 'maxwidth125', 'sall', $val['shortcut'], 'searchleft'.$key, $val['img']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2453,14 +2453,14 @@ function printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinpu
|
|||||||
$ret .= '<input type="hidden" name="savelogin" value="'.dol_escape_htmltag($user->login).'">';
|
$ret .= '<input type="hidden" name="savelogin" value="'.dol_escape_htmltag($user->login).'">';
|
||||||
if ($showtitlebefore) $ret .= '<div class="tagtd left">'.$title.'</div> ';
|
if ($showtitlebefore) $ret .= '<div class="tagtd left">'.$title.'</div> ';
|
||||||
$ret .= '<div class="tagtd">';
|
$ret .= '<div class="tagtd">';
|
||||||
|
$ret .= img_picto('', $img, '', false, 0, 0, '', 'paddingright width20');
|
||||||
$ret .= '<input type="text" class="flat '.$htmlmorecss.'"';
|
$ret .= '<input type="text" class="flat '.$htmlmorecss.'"';
|
||||||
$ret .= ' style="text-indent: 22px; background-image: url(\''.$img.'\'); background-repeat: no-repeat; background-position: 3px;"';
|
$ret .= ' style="background-repeat: no-repeat; background-position: 3px;"';
|
||||||
$ret .= ($accesskey ? ' accesskey="'.$accesskey.'"' : '');
|
$ret .= ($accesskey ? ' accesskey="'.$accesskey.'"' : '');
|
||||||
$ret .= ' placeholder="'.strip_tags($title).'"';
|
$ret .= ' placeholder="'.strip_tags($title).'"';
|
||||||
$ret .= ($autofocus ? ' autofocus' : '');
|
$ret .= ($autofocus ? ' autofocus' : '');
|
||||||
$ret .= ' name="'.$htmlinputname.'" id="'.$prefhtmlinputname.$htmlinputname.'" />';
|
$ret .= ' name="'.$htmlinputname.'" id="'.$prefhtmlinputname.$htmlinputname.'" />';
|
||||||
//$ret.='<input type="submit" class="button" style="padding-top: 4px; padding-bottom: 4px; padding-left: 6px; padding-right: 6px" value="'.$langs->trans("Go").'">';
|
$ret .= '<button type="submit" class="button bordertransp" style="padding-top: 4px; padding-bottom: 4px; padding-left: 6px; padding-right: 6px">';
|
||||||
$ret .= '<button type="submit" class="button" style="padding-top: 4px; padding-bottom: 4px; padding-left: 6px; padding-right: 6px">';
|
|
||||||
$ret .= '<span class="fa fa-search"></span>';
|
$ret .= '<span class="fa fa-search"></span>';
|
||||||
$ret .= '</button>';
|
$ret .= '</button>';
|
||||||
$ret .= '</div>';
|
$ret .= '</div>';
|
||||||
|
|||||||
@ -74,9 +74,10 @@ class FormResource
|
|||||||
* @param string $filterkey Filter on key value
|
* @param string $filterkey Filter on key value
|
||||||
* @param int $outputmode 0=HTML select string, 1=Array, 2=without form tag
|
* @param int $outputmode 0=HTML select string, 1=Array, 2=without form tag
|
||||||
* @param int $limit Limit number of answers
|
* @param int $limit Limit number of answers
|
||||||
|
* @param string $morecss More css
|
||||||
* @return string HTML string with
|
* @return string HTML string with
|
||||||
*/
|
*/
|
||||||
public function select_resource_list($selected = '', $htmlname = 'fk_resource', $filter = '', $showempty = 0, $showtype = 0, $forcecombo = 0, $event = array(), $filterkey = '', $outputmode = 0, $limit = 20)
|
public function select_resource_list($selected = '', $htmlname = 'fk_resource', $filter = '', $showempty = 0, $showtype = 0, $forcecombo = 0, $event = array(), $filterkey = '', $outputmode = 0, $limit = 20, $morecss = '')
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $conf, $user, $langs;
|
global $conf, $user, $langs;
|
||||||
@ -100,10 +101,12 @@ class FormResource
|
|||||||
{
|
{
|
||||||
//$minLength = (is_numeric($conf->global->RESOURCE_USE_SEARCH_TO_SELECT)?$conf->global->RESOURCE_USE_SEARCH_TO_SELECT:2);
|
//$minLength = (is_numeric($conf->global->RESOURCE_USE_SEARCH_TO_SELECT)?$conf->global->RESOURCE_USE_SEARCH_TO_SELECT:2);
|
||||||
$out .= ajax_combobox($htmlname, $event, $conf->global->RESOURCE_USE_SEARCH_TO_SELECT);
|
$out .= ajax_combobox($htmlname, $event, $conf->global->RESOURCE_USE_SEARCH_TO_SELECT);
|
||||||
|
} else {
|
||||||
|
$out .= ajax_combobox($htmlname);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct $out and $outarray
|
// Construct $out and $outarray
|
||||||
$out .= '<select id="'.$htmlname.'" class="flat minwidth200" name="'.$htmlname.'">'."\n";
|
$out .= '<select id="'.$htmlname.'" class="flat minwidth100'.($morecss ? ' '.$morecss : '').'" name="'.$htmlname.'">'."\n";
|
||||||
if ($showempty) $out .= '<option value="-1"> </option>'."\n";
|
if ($showempty) $out .= '<option value="-1"> </option>'."\n";
|
||||||
|
|
||||||
$num = 0;
|
$num = 0;
|
||||||
@ -136,7 +139,6 @@ class FormResource
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$out .= '</select>'."\n";
|
$out .= '</select>'."\n";
|
||||||
$out .= ajax_combobox($htmlname);
|
|
||||||
|
|
||||||
if ($outputmode != 2)
|
if ($outputmode != 2)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -670,7 +670,9 @@ body[class*="colorblind-"] .text-success{
|
|||||||
.editfielda span.fa-pencil-alt:hover, .editfielda span.fa-trash:hover, .editfieldlang:hover {
|
.editfielda span.fa-pencil-alt:hover, .editfielda span.fa-trash:hover, .editfieldlang:hover {
|
||||||
color: var(--colortexttitle) !important;
|
color: var(--colortexttitle) !important;
|
||||||
}
|
}
|
||||||
|
.fawidth30 {
|
||||||
|
width: 20px;
|
||||||
|
}
|
||||||
.floatnone {
|
.floatnone {
|
||||||
float: none !important;
|
float: none !important;
|
||||||
}
|
}
|
||||||
@ -1027,6 +1029,7 @@ table[summary="list_of_modules"] .fa-cog {
|
|||||||
/* rule for not too small screen only */
|
/* rule for not too small screen only */
|
||||||
@media only screen and (min-width: <?php echo empty($conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 130 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px)
|
@media only screen and (min-width: <?php echo empty($conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3) ? round($nbtopmenuentries * 47, 0) + 130 : $conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px)
|
||||||
{
|
{
|
||||||
|
.width20 { width: 20px; }
|
||||||
.width25 { width: 25px; }
|
.width25 { width: 25px; }
|
||||||
.width50 { width: 50px; }
|
.width50 { width: 50px; }
|
||||||
.width75 { width: 75px; }
|
.width75 { width: 75px; }
|
||||||
@ -1048,6 +1051,7 @@ table[summary="list_of_modules"] .fa-cog {
|
|||||||
.minwidth500imp { min-width: 500px !important; }
|
.minwidth500imp { min-width: 500px !important; }
|
||||||
}
|
}
|
||||||
.widthauto { width: auto; }
|
.widthauto { width: auto; }
|
||||||
|
.width20 { width: 20px; }
|
||||||
.width25 { width: 25px; }
|
.width25 { width: 25px; }
|
||||||
.width50 { width: 50px; }
|
.width50 { width: 50px; }
|
||||||
.width75 { width: 75px; }
|
.width75 { width: 75px; }
|
||||||
@ -1135,6 +1139,19 @@ table[summary="list_of_modules"] .fa-cog {
|
|||||||
|
|
||||||
.hideonsmartphone { display: none; }
|
.hideonsmartphone { display: none; }
|
||||||
.hideonsmartphoneimp { display: none !important; }
|
.hideonsmartphoneimp { display: none !important; }
|
||||||
|
|
||||||
|
span.pictotitle {
|
||||||
|
margin-<?php echo $left; ?>: 0 !important;
|
||||||
|
}
|
||||||
|
div.fiche>table.table-fiche-title {
|
||||||
|
margin-top: 7px !important;
|
||||||
|
margin-bottom: 15px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
select.minwidth100imp, select.minwidth100, select.minwidth200, .widthcentpercentminusx {
|
||||||
|
width: calc(100% - 30px) !important;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Force values for small screen 570 */
|
/* Force values for small screen 570 */
|
||||||
@ -1143,6 +1160,10 @@ table[summary="list_of_modules"] .fa-cog {
|
|||||||
body {
|
body {
|
||||||
font-size: <?php print is_numeric($fontsize) ? ($fontsize + 3).'px' : $fontsize; ?>;
|
font-size: <?php print is_numeric($fontsize) ? ($fontsize + 3).'px' : $fontsize; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.box-flex-item {
|
||||||
|
margin: 3px 2px 3px 2px !important;
|
||||||
|
}
|
||||||
div.refidno {
|
div.refidno {
|
||||||
font-size: <?php print is_numeric($fontsize) ? ($fontsize + 3).'px' : $fontsize; ?> !important;
|
font-size: <?php print is_numeric($fontsize) ? ($fontsize + 3).'px' : $fontsize; ?> !important;
|
||||||
}
|
}
|
||||||
@ -1470,10 +1491,10 @@ body.onlinepaymentbody div.fiche { /* For online payment page */
|
|||||||
margin: 20px !important;
|
margin: 20px !important;
|
||||||
}
|
}
|
||||||
div.fiche>table:first-child {
|
div.fiche>table:first-child {
|
||||||
margin-bottom: 15px !important;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
div.fiche>table.table-fiche-title {
|
div.fiche>table.table-fiche-title {
|
||||||
margin-bottom: 7px !important;
|
margin-bottom: 7px;
|
||||||
}
|
}
|
||||||
div.fichecenter {
|
div.fichecenter {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -1605,12 +1626,6 @@ td.nobordernopadding.widthpictotitle.col-picto {
|
|||||||
margin-<?php echo $right; ?>: 8px;
|
margin-<?php echo $right; ?>: 8px;
|
||||||
/* margin-bottom: 4px; */
|
/* margin-bottom: 4px; */
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 767px)
|
|
||||||
{
|
|
||||||
span.pictotitle {
|
|
||||||
margin-<?php echo $left; ?>: 0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.pictoobjectwidth {
|
.pictoobjectwidth {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
}
|
}
|
||||||
@ -1884,8 +1899,8 @@ div.tmenuleft
|
|||||||
}
|
}
|
||||||
div.tmenucenter
|
div.tmenucenter
|
||||||
{
|
{
|
||||||
padding-left: 0px;
|
padding-left: 2px;
|
||||||
padding-right: 3px;
|
padding-right: 2px;
|
||||||
<?php if ($disableimages) { ?>
|
<?php if ($disableimages) { ?>
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
@ -3585,6 +3600,12 @@ ul.noborder li:nth-child(even):not(.liste_titre) {
|
|||||||
|
|
||||||
@media only screen and (max-width: 767px)
|
@media only screen and (max-width: 767px)
|
||||||
{
|
{
|
||||||
|
a.tmenu:link, a.tmenu:visited, a.tmenu:hover, a.tmenu:active {
|
||||||
|
padding: 0px 0px 0px 0px;
|
||||||
|
}
|
||||||
|
a.tmenusel:link, a.tmenusel:visited, a.tmenusel:hover, a.tmenusel:active {
|
||||||
|
padding: 0px 0px 0px 0px;
|
||||||
|
}
|
||||||
.boxstats, .boxstats130 {
|
.boxstats, .boxstats130 {
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
}
|
}
|
||||||
@ -4867,7 +4888,7 @@ ul.ecmjqft li {
|
|||||||
ul.ecmjqft a {
|
ul.ecmjqft a {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
color: #333;
|
color: unset;
|
||||||
padding: 0px 0px;
|
padding: 0px 0px;
|
||||||
font-weight:normal;
|
font-weight:normal;
|
||||||
display: inline-block !important;
|
display: inline-block !important;
|
||||||
@ -6309,7 +6330,9 @@ div.tabsElem a.tab {
|
|||||||
div.login_block_user, div.login_block_other { clear: both; }
|
div.login_block_user, div.login_block_other { clear: both; }
|
||||||
.atoplogin, .atoplogin:hover
|
.atoplogin, .atoplogin:hover
|
||||||
{
|
{
|
||||||
color: #000 !important;
|
color:unset !important;
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
}
|
}
|
||||||
.login_block_elem {
|
.login_block_elem {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
|||||||
@ -15,10 +15,11 @@ if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 90px;
|
min-height: 90px;
|
||||||
background: #fff;
|
/* background: #fff; */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2), 0px 0px 2px rgba(0, 0, 0, 0.1);
|
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
border: 1px solid #eee;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
.info-box.info-box-sm{
|
.info-box.info-box-sm{
|
||||||
@ -67,7 +68,7 @@ if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 45px;
|
font-size: 45px;
|
||||||
line-height: 90px;
|
line-height: 90px;
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.08) !important
|
||||||
}
|
}
|
||||||
.info-box-sm .info-box-icon {
|
.info-box-sm .info-box-icon {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@ -203,8 +204,6 @@ if (GETPOSTISSET('THEME_AGRESSIVENESS_RATIO')) $conf->global->THEME_AGRESSIVENES
|
|||||||
.info-box-icon {
|
.info-box-icon {
|
||||||
<?php if ($prefix) { ?>
|
<?php if ($prefix) { ?>
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
<?php } else { ?>
|
|
||||||
background-color: #eee !important;
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
opacity: 0.95;
|
opacity: 0.95;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1122,6 +1122,7 @@ table[summary="list_of_modules"] .fa-cog {
|
|||||||
/* rule for not too small screen only */
|
/* rule for not too small screen only */
|
||||||
@media only screen and (min-width: <?php echo round($nbtopmenuentries * $fontsize * 3.4, 0) + 7; ?>px)
|
@media only screen and (min-width: <?php echo round($nbtopmenuentries * $fontsize * 3.4, 0) + 7; ?>px)
|
||||||
{
|
{
|
||||||
|
.width20 { width: 20px; }
|
||||||
.width25 { width: 25px; }
|
.width25 { width: 25px; }
|
||||||
.width50 { width: 50px; }
|
.width50 { width: 50px; }
|
||||||
.width75 { width: 75px; }
|
.width75 { width: 75px; }
|
||||||
@ -1143,6 +1144,7 @@ table[summary="list_of_modules"] .fa-cog {
|
|||||||
.minwidth500imp { min-width: 500px !important; }
|
.minwidth500imp { min-width: 500px !important; }
|
||||||
}
|
}
|
||||||
.widthauto { width: auto; }
|
.widthauto { width: auto; }
|
||||||
|
.width20 { width: 20px; }
|
||||||
.width25 { width: 25px; }
|
.width25 { width: 25px; }
|
||||||
.width50 { width: 50px; }
|
.width50 { width: 50px; }
|
||||||
.width75 { width: 75px; }
|
.width75 { width: 75px; }
|
||||||
|
|||||||
@ -227,11 +227,13 @@ if (is_array($qualifiedjobs) && (count($qualifiedjobs) > 0)) {
|
|||||||
echo "You can also enable module Log if not yet enabled, run again and take a look into dolibarr.log file\n";
|
echo "You can also enable module Log if not yet enabled, run again and take a look into dolibarr.log file\n";
|
||||||
dol_syslog("cron_run_jobs.php::run_jobs Error ".$cronjob->error, LOG_ERR);
|
dol_syslog("cron_run_jobs.php::run_jobs Error ".$cronjob->error, LOG_ERR);
|
||||||
$nbofjobslaunchedko++;
|
$nbofjobslaunchedko++;
|
||||||
|
$resultstring = 'KO';
|
||||||
} else {
|
} else {
|
||||||
$nbofjobslaunchedok++;
|
$nbofjobslaunchedok++;
|
||||||
|
$resultstring = 'OK';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo " - result of run_jobs = ".$result;
|
echo " - run_jobs ".$resultstring." result = ".$result;
|
||||||
|
|
||||||
// We re-program the next execution and stores the last execution time for this job
|
// We re-program the next execution and stores the last execution time for this job
|
||||||
$result = $cronjob->reprogram_jobs($userlogin, $now);
|
$result = $cronjob->reprogram_jobs($userlogin, $now);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user