--- FILE STRUCTURE --- context_generator.php curl_test.php database.sql delete_log.php edit_log.php log_entry.html submit_log.php views_logs.php --- FILE: ./views_logs.php --- '2025-09-05', 'day' => 'Friday', 'opponent' => 'Eastern Washington', 'time' => '7:00 PM MT', 'sport' => 'Football 🏈', 'attendance' => '33,000'], // Non-Conference Estimate ['date' => '2025-09-27', 'day' => 'Saturday', 'opponent' => 'Appalachian State', 'time' => '5:30 PM MT', 'sport' => 'Football 🏈', 'attendance' => '36,363 (Sellout)'], // Marquee Non-Conference Estimate ['date' => '2025-10-11', 'day' => 'Saturday', 'opponent' => 'New Mexico', 'time' => '7:45 PM MT', 'sport' => 'Football 🏈', 'attendance' => '34,500'], // Weekday Conference Estimate ['date' => '2025-10-18', 'day' => 'Saturday', 'opponent' => 'UNLV', 'time' => '1:30 PM MT', 'sport' => 'Football 🏈', 'attendance' => '36,363 (Sellout)'], // Key Conference Game Estimate // These games are UPCOMING and will be displayed. ['date' => '2025-11-01', 'day' => 'Saturday', 'opponent' => 'Fresno State', 'time' => '1:30 PM MT', 'sport' => 'Football 🏈', 'attendance' => '36,363 (Sellout)'], // Rivalry/Key Conference Game Estimate ['date' => '2025-11-22', 'day' => 'Saturday', 'opponent' => 'Colorado State', 'time' => 'TBD', 'sport' => 'Football 🏈', 'attendance' => '36,363 (Sellout)'], // Key Conference Game Estimate ]; // UPDATED: Hardcoded 2025-2026 Men's Basketball Home Games Schedule (from provided link, Boise games only) $basketball_home_games = [ // All games are at ExtraMile Arena, Boise, ID ['date' => '2025-11-03', 'day' => 'Monday', 'opponent' => 'Hawaii Pacific Sharks', 'time' => '7:00 PM MT', 'sport' => 'Basketball 🏀', 'attendance' => '9,000'], ['date' => '2025-11-08', 'day' => 'Saturday', 'opponent' => 'Utah Valley Wolverines', 'time' => '2:00 PM MT', 'sport' => 'Basketball 🏀', 'attendance' => '9,500'], ['date' => '2025-11-11', 'day' => 'Tuesday', 'opponent' => 'UT Rio Grande Valley Vaqueros', 'time' => '7:00 PM MT', 'sport' => 'Basketball 🏀', 'attendance' => '9,000'], ['date' => '2025-11-15', 'day' => 'Saturday', 'opponent' => 'Montana State Bobcats', 'time' => '2:00 PM MT', 'sport' => 'Basketball 🏀', 'attendance' => '10,500'], ['date' => '2025-11-18', 'day' => 'Tuesday', 'opponent' => 'Wichita State Shockers', 'time' => '7:00 PM MT', 'sport' => 'Basketball 🏀', 'attendance' => '11,000'], ['date' => '2025-12-10', 'day' => 'Wednesday', 'opponent' => 'Duquesne Dukes', 'time' => '7:00 PM MT', 'sport' => 'Basketball 🏀', 'attendance' => '8,500'], ['date' => '2025-12-30', 'day' => 'Tuesday', 'opponent' => 'New Mexico Lobos', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '12,000'], // Switch to 2026 season dates ['date' => '2026-01-06', 'day' => 'Tuesday', 'opponent' => 'Grand Canyon Antelopes', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '10,000'], ['date' => '2026-01-10', 'day' => 'Saturday', 'opponent' => 'Utah State Aggies', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '13,500'], ['date' => '2026-01-17', 'day' => 'Saturday', 'opponent' => 'Colorado State Rams', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '12,500'], ['date' => '2026-01-24', 'day' => 'Saturday', 'opponent' => 'Air Force Academy Falcons', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '11,000'], ['date' => '2026-02-03', 'day' => 'Tuesday', 'opponent' => 'Nevada Wolf Pack', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '13,000'], ['date' => '2026-02-14', 'day' => 'Saturday', 'opponent' => 'UNLV Rebels', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '12,500'], ['date' => '2026-02-21', 'day' => 'Saturday', 'opponent' => 'San Jose State Spartans', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '10,000'], ['date' => '2026-02-24', 'day' => 'Tuesday', 'opponent' => 'Wyoming Cowboys', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '10,500'], ['date' => '2026-03-03', 'day' => 'Tuesday', 'opponent' => 'San Diego State Aztecs', 'time' => 'TBA', 'sport' => 'Basketball 🏀', 'attendance' => '14,000+'], ]; // COMBINE all home games $all_home_games_data = array_merge($football_home_games, $basketball_home_games); // Variables to store results $is_home_game_day = false; $api_status_message = ''; $upcoming_events_list = []; // This will store the filtered list // Filter games: only keep those whose date is today or in the future foreach ($all_home_games_data as $game) { // Logic to auto-remove past games if ($game['date'] >= $today_date) { $upcoming_events_list[] = $game; } // Check if TODAY is a game day (needs to check against the full list) if ($game['date'] === $today_date) { $is_home_game_day = true; $today_game_sport = $game['sport']; } } // Assign the filtered list to the variable used for display $home_events_list = $upcoming_events_list; // Sort the list by date to ensure chronological order usort($home_events_list, function($a, $b) { return $a['date'] <=> $b['date']; }); if (!$is_home_game_day) { $api_status_message = "Hardcoded schedule successfully loaded. No Boise State home game today, {$today_date}."; } else { $api_status_message = "Successfully detected a hardcoded home game today."; } // --- Database Connection and Data Fetching for Chart and Table --- $mysqli = new mysqli("localhost", "harper_chicken_log", "S>aPg-5UEjfxH_>S", "harper_chicken_log"); if ($mysqli->connect_error) { die("Connection failed: " . $mysqli->connect_error); } // Fetch data for the chart $result_chart = $mysqli->query("SELECT log_date, main_oven_case_count, harvested_after_close, harvested_before_close FROM logs ORDER BY log_date ASC"); $chart_data = []; if ($result_chart) { while ($row = $result_chart->fetch_assoc()) { $main_oven_count = $row['main_oven_case_count'] ?? 0; $harvested_after_close = $row['harvested_after_close'] ?? 0; $harvested_before_close = $row['harvested_before_close'] ?? 0; // Actual Sold = Main Oven/Case Count - Harvested After Close - Harvested Before Close $actual_sold = $main_oven_count - $harvested_after_close - $harvested_before_close; $chart_data[] = [ 'date' => $row['log_date'], 'sales' => $actual_sold ]; } $result_chart->free(); } $chart_data_json = json_encode($chart_data); // Re-fetch data for the main table display $result = $mysqli->query("SELECT * FROM logs ORDER BY log_date DESC"); ?>
No **upcoming** home events found. Schedule status:
| Date | Day Name | Run Out Time | Actual Sold | Notes | Actions | elements based on required visibility echo " | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {$row['log_date']} | {$row['day_name']} | {$row['run_out_time']} | {$sold} | " . htmlspecialchars($row['notes'] ?? '') . " | Edit | ||||||||
| No logs found. | |||||||||||||