diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php index b7af2262de4..f9ecd1eeb4a 100644 --- a/htdocs/core/lib/project.lib.php +++ b/htdocs/core/lib/project.lib.php @@ -1702,7 +1702,7 @@ function projectLinesPerDay(&$inc, $parent, $fuser, $lines, &$level, &$projectsr $idw = 0; $tableCell = ''; - $tableCell .= ''; + $tableCell .= ''; $tableCell .= ' + '; //$tableCell.='   '; $tableCell .= $form->select_duration($lines[$i]->id.'duration', '', $disabledtask, 'text', 0, 1); @@ -2103,11 +2103,11 @@ function projectLinesPerWeek(&$inc, $firstdaytoshow, $fuser, $parent, $lines, &$ //$tableCell .= 'idw='.$idw.' '.$conf->global->MAIN_START_WEEK.' '.$numstartworkingday.'-'.$numendworkingday; $placeholder = ''; if ($alreadyspent) { - $tableCell .= ''; + $tableCell .= ''; //$placeholder=' placeholder="00:00"'; //$tableCell.='+'; } - $tableCell .= ''; @@ -2387,12 +2387,12 @@ function projectLinesPerMonth(&$inc, $firstdaytoshow, $fuser, $parent, $lines, & $tableCell = ''; $placeholder = ''; if ($alreadyspent) { - $tableCell .= ''; + $tableCell .= ''; //$placeholder=' placeholder="00:00"'; //$tableCell.='+'; } - $tableCell .= ''; @@ -2818,7 +2818,7 @@ function print_projecttasks_array($db, $form, $socid, $projectsListId, $mytasks print ''; print ''; print ''; - print '\n"; print '
'.$langs->trans("Year").''; + print ''; print "
'; } diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php index dbd73f8167b..09ecdaa3e3e 100644 --- a/htdocs/projet/activity/perday.php +++ b/htdocs/projet/activity/perday.php @@ -753,7 +753,7 @@ if (count($tasksarray) > 0) { $timeonothertasks = ($totalforeachday[$daytoparse] - $totalforvisibletasks[$daytoparse]); //if ($timeonothertasks) //{ - print '\n"; print ''; } diff --git a/htdocs/projet/activity/permonth.php b/htdocs/projet/activity/permonth.php index 93321333222..d3bd7d0e316 100644 --- a/htdocs/projet/activity/permonth.php +++ b/htdocs/projet/activity/permonth.php @@ -567,7 +567,7 @@ if (count($tasksarray) > 0) { $timeonothertasks = ($totalforeachweek[$weekNb] - $totalforvisibletasks[$weekNb]); if ($timeonothertasks) { - print ''; } @@ -619,7 +619,7 @@ if ($conf->use_javascript_ajax) { });'."\n"; foreach ($TWeek as $week_number) { - print ' updateTotal('.$week_number.',\''.$modeinput.'\');'; + print " updateTotal(".((int) $week_number).", '".dol_escape_js($modeinput)."');"; } print "\n});\n"; print ''; diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php index 064d7538068..37ff7f3014b 100644 --- a/htdocs/projet/activity/perweek.php +++ b/htdocs/projet/activity/perweek.php @@ -725,7 +725,7 @@ if ($conf->use_javascript_ajax) { } elseif (!$isavailable[$tmpday]['afternoon']) { $cssonholiday .= 'onholidayafternoon '; } - print '
 
'; + print '
 
'; } print '
 
'; print ''; @@ -805,7 +805,7 @@ if (count($tasksarray) > 0) { $tmpday = dol_time_plus_duree($firstdaytoshow, $idw, 'd'); $timeonothertasks = ($totalforeachday[$tmpday] - $totalforvisibletasks[$tmpday]); if ($timeonothertasks) { - print ''; } @@ -877,7 +877,7 @@ if ($conf->use_javascript_ajax) { $idw = 0; while ($idw < 7) { - print ' updateTotal('.$idw.',\''.$modeinput.'\');'; + print " updateTotal(".((int) $idw).", '".dol_escape_js($modeinput)."');"; $idw++; } print "\n});\n";