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:
@@ -341,7 +341,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti
|
|||||||
print "<option value=\"?y=$year&m=$month&d=$day&respondent_id=$respondent_id&start=$t\" $selected>".$t."</option>";
|
print "<option value=\"?y=$year&m=$month&d=$day&respondent_id=$respondent_id&start=$t\" $selected>".$t."</option>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sm += 15;
|
$sm += 5;
|
||||||
if ($sm >= 60)
|
if ($sm >= 60)
|
||||||
{
|
{
|
||||||
$sh++;
|
$sh++;
|
||||||
@@ -364,7 +364,7 @@ function display_time($questionnaire_id,$respondent_id, $day, $month, $year, $ti
|
|||||||
$sm = $r['sm'];
|
$sm = $r['sm'];
|
||||||
$intervals = $r['intervals'];
|
$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++)
|
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";
|
$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&m=$month&d=$day&respondent_id=$respondent_id&start=$time&end=$t\" $selected>".$t."</option>";
|
print "<option value=\"?y=$year&m=$month&d=$day&respondent_id=$respondent_id&start=$time&end=$t\" $selected>".$t."</option>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sm += 15;
|
$sm += 5;
|
||||||
if ($sm >= 60)
|
if ($sm >= 60)
|
||||||
{
|
{
|
||||||
$sh++;
|
$sh++;
|
||||||
|
|||||||
Reference in New Issue
Block a user