-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathToS.php
More file actions
105 lines (91 loc) · 2.81 KB
/
Copy pathToS.php
File metadata and controls
105 lines (91 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
require_once 'db_connect.php';
// Fetch page settings
$settingsQuery = "SELECT * FROM page_settings LIMIT 1";
$settingsResult = $conn->query($settingsQuery);
$pageSettings = $settingsResult->fetch_assoc();
// Fetch terms sections
$termsQuery = "SELECT * FROM terms_of_service WHERE is_active = TRUE ORDER BY display_order";
$termsResult = $conn->query($termsQuery);
$termsSections = [];
while ($row = $termsResult->fetch_assoc()) {
$termsSections[] = $row;
}
// Close connection
$conn->close();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo htmlspecialchars($pageSettings['page_title']); ?> - Elysian Stays</title>
<link rel="icon" href="Image/Elysian_Stays.png" type="image/png">
<!-- Bootstrap CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f8f9fa;
color: #333;
}
.hero {
color: black;
text-align: center;
padding: 50px 15px;
margin-bottom: 30px;
box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
animation: fadeIn 1.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.container {
padding: 20px;
border-radius: 8px;
background-color: white;
box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
animation: slideUp 1.5s;
}
@keyframes slideUp {
from { transform: translateY(30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
h1, h2 {
color: #ad8b3a;
}
.footer {
text-align: center;
margin-top: 30px;
padding: 15px;
background-color: black;
color: white;
font-size: 0.9rem;
}
.footer a {
color: #ad8b3a;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="hero">
<h1><?php echo htmlspecialchars($pageSettings['page_title']); ?></h1>
<p>Effective Date: <?php echo htmlspecialchars($pageSettings['effective_date']); ?></p>
</div>
<div class="container">
<?php foreach ($termsSections as $section): ?>
<h2><?php echo htmlspecialchars($section['section_title']); ?></h2>
<p><?php echo $section['section_content']; ?></p>
<?php endforeach; ?>
</div>
<div class="footer">
<p><?php echo $pageSettings['footer_text']; ?></p>
</div>
<script src="js/bootstrap.bundle.min.js"></script>
</body>
</html>