Company Holidays 2025
+Official list of holidays for the current year.
+diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..c9d52c6 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,41 @@ +body { + background-color: #F9F9F9; + font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; + color: #333; +} + +.navbar { + background: linear-gradient(90deg, #4A90E2, #50E3C2); +} + +.navbar-brand { + font-weight: bold; +} + +.main-content { + padding-top: 4rem; + padding-bottom: 4rem; +} + +.holiday-card { + background-color: #FFFFFF; + border: none; + border-radius: 0.5rem; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); + margin-bottom: 1rem; + padding: 1.5rem; + display: flex; + justify-content: space-between; + align-items: center; +} + +.holiday-date { + font-weight: bold; + color: #4A90E2; +} + +.footer { + padding: 2rem 0; + background-color: #343a40; + color: white; +} \ No newline at end of file diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..e69de29 diff --git a/db/migrate.php b/db/migrate.php new file mode 100644 index 0000000..361d5fa --- /dev/null +++ b/db/migrate.php @@ -0,0 +1,12 @@ +exec($sql); + echo "Migration completed successfully.\n"; +} catch (PDOException $e) { + die("Migration failed: " . $e->getMessage()); +} + diff --git a/db/migrations/001_create_holidays_table.sql b/db/migrations/001_create_holidays_table.sql new file mode 100644 index 0000000..fd7e0ed --- /dev/null +++ b/db/migrations/001_create_holidays_table.sql @@ -0,0 +1,5 @@ +CREATE TABLE IF NOT EXISTS holidays ( + id INT AUTO_INCREMENT PRIMARY KEY, + name VARCHAR(255) NOT NULL, + holiday_date DATE NOT NULL +); \ No newline at end of file diff --git a/db/seed.php b/db/seed.php new file mode 100644 index 0000000..080781d --- /dev/null +++ b/db/seed.php @@ -0,0 +1,35 @@ +query("SELECT COUNT(*) FROM holidays"); + if ($stmt->fetchColumn() > 0) { + echo "Holidays table is not empty. Skipping seeding.\n"; + exit; + } + + $holidays = [ + ['name' => 'New Year\'s Day', 'holiday_date' => '2025-01-01'], + ['name' => 'Martin Luther King, Jr. Day', 'holiday_date' => '2025-01-20'], + ['name' => 'Presidents\' Day', 'holiday_date' => '2025-02-17'], + ['name' => 'Memorial Day', 'holiday_date' => '2025-05-26'], + ['name' => 'Juneteenth', 'holiday_date' => '2025-06-19'], + ['name' => 'Independence Day', 'holiday_date' => '2025-07-04'], + ['name' => 'Labor Day', 'holiday_date' => '2025-09-01'], + ['name' => 'Thanksgiving Day', 'holiday_date' => '2025-11-27'], + ['name' => 'Christmas Day', 'holiday_date' => '2025-12-25'], + ]; + + $stmt = $pdo->prepare("INSERT INTO holidays (name, holiday_date) VALUES (:name, :holiday_date)"); + + foreach ($holidays as $holiday) { + $stmt->execute($holiday); + } + + echo "Holidays table seeded successfully.\n"; + +} catch (PDOException $e) { + die("Could not seed database: " . $e->getMessage()); +} diff --git a/holidays.php b/holidays.php new file mode 100644 index 0000000..4e64ea9 --- /dev/null +++ b/holidays.php @@ -0,0 +1,95 @@ +prepare("SELECT name, holiday_date FROM holidays WHERE YEAR(holiday_date) = YEAR(CURDATE()) ORDER BY holiday_date ASC"); + $stmt->execute(); + $holidays = $stmt->fetchAll(PDO::FETCH_ASSOC); +} catch (PDOException $e) { + // In a real app, log this error. For now, show a simple message. + $holidays = []; + $error_message = "Database error. Please check configuration."; +} +?> + + +
+ + +Official list of holidays for the current year.
+= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.
-This page will update automatically as the plan is implemented.
-Runtime: PHP = htmlspecialchars($phpVersion) ?> — UTC = htmlspecialchars($now) ?>
Streamline your HR processes, from employee management to payroll, with our intuitive and powerful HRMS solution.
+This is the first step in building your custom HRMS. We've started with a clean landing page and a company holiday calendar. More features are coming soon!
+ Check out the calendar +A company-wide calendar, visible to all employees.
+Coming soon: Automatic login/logout time tracking.
+Coming soon: View and download your monthly payslips.
+Coming soon: View and manage your employee profile.
+