Compare commits

...

4 Commits

Author SHA1 Message Date
Laurent Destailleur
9cd99ba4d2 Fix warning 2026-01-12 16:15:17 +01:00
Laurent Destailleur
e1345e225f Fix css 2026-01-12 15:55:34 +01:00
Laurent Destailleur
fcedaa150e CSS 2026-01-12 14:34:14 +01:00
Laurent Destailleur
9140e0599a Debug v23 2026-01-12 14:32:59 +01:00
3 changed files with 21 additions and 21 deletions

View File

@@ -7972,7 +7972,8 @@ class Form
}
// Show hour
$retstring .= '<select' . ($disabled ? ' disabled' : '') . ' class="flat valignmiddle maxwidth50 ' . ($fullday ? $fullday . 'hour' : '') . '" id="' . $prefix . 'hour" name="' . $prefix . 'hour">';
$retstring .= '<select' . ($disabled ? ' disabled' : '') . ' class="flat valignmiddle maxwidth75 '; // Note maxwidth50 generates truncated number on some desktops even with same version of chrome that works on others
$retstring .= ($fullday ? $fullday . 'hour' : '') . '" id="' . $prefix . 'hour" name="' . $prefix . 'hour">';
if ($emptyhours) {
$retstring .= '<option value="-1">&nbsp;</option>';
}
@@ -7995,7 +7996,8 @@ class Form
if ($m) {
// Show minutes
$retstring .= '<select ' . ($disabled ? ' disabled' : '') . ' class="flat valignmiddle maxwidth50 ' . ($fullday ? $fullday . 'min' : '') . '" id="' . $prefix . 'min" name="' . $prefix . 'min">';
$retstring .= '<select ' . ($disabled ? ' disabled' : '') . ' class="flat valignmiddle maxwidth75 '; // Note maxwidth50 generates truncated number on some desktops even with same version of chrome that works on others
$retstring .= ($fullday ? $fullday . 'min' : '') . '" id="' . $prefix . 'min" name="' . $prefix . 'min">';
if ($emptyhours) {
$retstring .= '<option value="-1">&nbsp;</option>';
}

View File

@@ -28,12 +28,6 @@
// Load Dolibarr environment
require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
require_once DOL_DOCUMENT_ROOT.'/projet/class/task.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
/**
* @var Conf $conf
* @var DoliDB $db
@@ -41,6 +35,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
* @var Translate $langs
* @var User $user
*/
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
require_once DOL_DOCUMENT_ROOT.'/projet/class/task.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
// Load translation files required by the page
$langs->loadLangs(array('projects', 'companies'));
@@ -281,13 +280,14 @@ if ($resql) {
$companystatic->id = $obj->socid;
$companystatic->name = $obj->name;
$companystatic->name_alias = $obj->name_alias;
$companystatic->client = $obj->client;
$companystatic->fournisseur = $obj->fournisseur;
//$companystatic->code_client = $obj->code_client;
$companystatic->code_compta = $obj->code_compta;
$companystatic->code_compta_client = $obj->code_compta;
$companystatic->client = $obj->client;
//$companystatic->code_fournisseur = $obj->code_fournisseur;
$companystatic->code_compta_fournisseur = $obj->code_compta_fournisseur;
$companystatic->fournisseur = $obj->fournisseur;
$companystatic->logo = $obj->logo;
$companystatic->email = $obj->email;
$companystatic->entity = $obj->entity;
@@ -313,12 +313,12 @@ if ($resql) {
print '</td>';
// Label
print '<td class="tdoverflowmax175" title="'.dol_escape_htmltag($obj->title).'">';
print dol_escape_htmltag($projectstatic->title);
print '<td class="tdoverflowmax200" title="'.dolPrintHTMLForAttribute($obj->title).'">';
print dolPrintHTML($projectstatic->title);
print '</td>';
// Thirdparty
print '<td class="tdoverflowmax125" title="'.dol_escape_htmltag($companystatic->name).'">';
print '<td class="tdoverflowmax125" title="'.dolPrintHTMLForAttribute($companystatic->name).'">';
if ($companystatic->id > 0) {
print $companystatic->getNomUrl(1, 'company', 16);
}
@@ -326,7 +326,7 @@ if ($resql) {
// Date
$datem = $db->jdate($obj->datem);
print '<td class="center" title="'.dol_escape_htmltag($langs->trans("DateModification").': '.dol_print_date($datem, 'dayhour', 'tzuserrel')).'">';
print '<td class="center" title="'.dolPrintHTMLForAttribute($langs->trans("DateModification").': '.dol_print_date($datem, 'dayhour', 'tzuserrel')).'">';
print dol_print_date($datem, 'day', 'tzuserrel');
print '</td>';

View File

@@ -409,14 +409,12 @@ if ($usersection) {
// Output payment summary form
print '<tr><td class="left">';
if ($usersection) {
print '<div class="nowidthimp nopaddingtoponsmartphone" id="tablepublicpayment">';
print '<div class="nowidthimp nopaddingtoponsmartphone" id="tablepublicpayment">';
print $usersection;
print $usersection;
print '</div>'."\n";
print "\n";
}
print '</div>'."\n";
print "\n";
print '</td></tr>'."\n";