2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Return appointment intervals to 5 minutes

This commit is contained in:
Adam Zammit
2016-11-15 11:19:30 +11:00
parent f2dab54b19
commit f1aa5e698d

View File

@@ -341,7 +341,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti
print "<option value=\"?y=$year&amp;m=$month&amp;d=$day&amp;respondent_id=$respondent_id&amp;start=$t\" $selected>".$t."</option>";
}
$sm += 15;
$sm += 5;
if ($sm >= 60)
{
$sh++;
@@ -364,7 +364,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti
$sm = $r['sm'];
$intervals = $r['intervals'];
// * Display only times after the start time and within the shift in 15 minute intervals
// * Display only times after the start time and within the shift in 5 minute intervals
for ($i = 0; $i <= $intervals-1; $i++)
{
$t = str_pad($sh,2,"0",STR_PAD_LEFT).":".str_pad($sm,2,"0",STR_PAD_LEFT).":00";
@@ -377,7 +377,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti
print "<option value=\"?y=$year&amp;m=$month&amp;d=$day&amp;respondent_id=$respondent_id&amp;start=$time&amp;end=$t\" $selected>".$t."</option>";
}
$sm += 15;
$sm += 5;
if ($sm >= 60)
{
$sh++;