$db_id = $row['Volgnummer']; $db_date = $row['Datum']; $date = DBdateToDate($db_date); $db_start_time = $row['Begintijd']; $db_end_time = $row['Eindtijd']; $db_pname = $row['Pnaam']; $db_name = $row['Ploegnaam']; $db_email = $row['Email']; $db_mpb = $row['MPB']; $db_spits = $row['Spits']; $db_blok = $row['Wedstrijdblok']; $db_start_time_blocks = TimeToBlocks($db_start_time); if ($db_start_time_blocks < $start_block) { $db_start_time_blocks = $start_block; } $db_end_time_blocks = TimeToBlocks($db_end_time); $fields = explode(":", $db_end_time, 3); $available_ins = 1; // hulpvar. waarmee je bijhoudt of inschr. nog editbaar is if ($date_to_show == $today && ($fields[0] < $thehour || $fields[0] == $thehour && $fields[1] < $theminute)) { $available_ins = 0; } // wit tot aan huidige inschrijving $span_size = $db_start_time_blocks - $latest_end_time_blocks; if ($span_size < 0) { $span_size = 0; } for ($t = $latest_end_time_blocks; $t < $latest_end_time_blocks + $span_size; $t++) { $t_time = BlocksToTime($t); echo "<td"; if (InRange($date_to_show, 10)) {
$start_hrs_to_show = 6; $start_mins_to_show = 0; } else { $start_hrs_to_show = $thehour_q; $start_mins_to_show = $theminute_quarts; } } else { $start_hrs_to_show = 9; $start_mins_to_show = 0; } } if ($start_mins_to_show == 0) { $start_mins_to_show = "00"; } $start_time_to_show = $start_hrs_to_show . ":" . $start_mins_to_show; $start_block = TimeToBlocks($start_time_to_show); $cat_to_show = $standaardcategorie; if (isset($_GET['cat_to_show'])) { $cat_to_show = $_GET['cat_to_show']; } if (!in_array($cat_to_show, $cat_array)) { // sanity check $cat_to_show = $standaardcategorie; } $grade_to_show = $standaardgraad; if (isset($_GET['grade_to_show'])) { $grade_to_show = $_GET['grade_to_show']; } if (!in_array($grade_to_show, $grade_array)) { // sanity check $grade_to_show = $standaardgraad;