added old projects
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hello!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Oops!</h1>
|
||||
<p>Sorry, I don't know what you're asking for.</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Admin Dashboard</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Admin Dashboard</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/admin/members.html">Manage Members</a></li>
|
||||
<li><a href="/admin/classes.html">Manage Classes</a></li>
|
||||
<li><a href="/admin/bookings.html">Manage Bookings</a></li>
|
||||
<li><a href="/admin/payments.html">Manage Payments</a></li>
|
||||
<li><a href="/admin/facilities.html">Manage Facilities</a></li>
|
||||
<li><a href="/admin/reports.html">View Reports</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Manage Members</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Manage Members</h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Phone</th>
|
||||
<th>Status</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Member records will be inserted here dynamically -->
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Reports</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Reports</h1>
|
||||
<section>
|
||||
<h2>Financial Reports</h2>
|
||||
<!-- Financial report content -->
|
||||
</section>
|
||||
<section>
|
||||
<h2>Attendance Reports</h2>
|
||||
<!-- Attendance report content -->
|
||||
</section>
|
||||
<section>
|
||||
<h2>Booking Reports</h2>
|
||||
<!-- Booking report content -->
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hello!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Yeet!</h1>
|
||||
<p>index.html</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Member Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Member Login</h1>
|
||||
<form action="/login" method="post">
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
|
||||
<label for="password">Password:</label>
|
||||
<input type="password" id="password" name="password" required>
|
||||
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Member Profile</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Member Profile</h1>
|
||||
<form action="/update-profile" method="post">
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
|
||||
<label for="phone">Phone:</label>
|
||||
<input type="tel" id="phone" name="phone" required>
|
||||
|
||||
<label for="communication_preferences">Communication Preferences:</label>
|
||||
<select id="communication_preferences" name="communication_preferences" required>
|
||||
<option value="Email">Email</option>
|
||||
<option value="SMS">SMS</option>
|
||||
<option value="Phone">Phone</option>
|
||||
</select>
|
||||
|
||||
<button type="submit">Update Profile</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Member Registration</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Member Registration</h1>
|
||||
<form action="\scripts\register_member.php" method="post">
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
|
||||
<label for="phone">Phone:</label>
|
||||
<input type="tel" id="phone" name="phone" required>
|
||||
|
||||
<label for="join_date">Join Date:</label>
|
||||
<input type="date" id="join_date" name="join_date" required>
|
||||
|
||||
<label for="membership_status">Membership Status:</label>
|
||||
<select id="membership_status" name="membership_status" required>
|
||||
<option value="Active">Active</option>
|
||||
<option value="Inactive">Inactive</option>
|
||||
</select>
|
||||
|
||||
<button type="submit">Register</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Payment History</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Payment History</h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Amount</th>
|
||||
<th>Method</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Payment records will be inserted here dynamically -->
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Make a Payment</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Make a Payment</h1>
|
||||
<form action="/process-payment" method="post">
|
||||
<label for="amount">Amount:</label>
|
||||
<input type="number" id="amount" name="amount" step="0.01" required>
|
||||
|
||||
<label for="payment_method">Payment Method:</label>
|
||||
<select id="payment_method" name="payment_method" required>
|
||||
<option value="Credit Card">Credit Card</option>
|
||||
<option value="Debit Card">Debit Card</option>
|
||||
<option value="PayPal">PayPal</option>
|
||||
<option value="Bank Transfer">Bank Transfer</option>
|
||||
<option value="Cash">Cash</option>
|
||||
</select>
|
||||
|
||||
<button type="submit">Pay Now</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
$servername = "localhost";
|
||||
$username = "user";
|
||||
$password = "password";
|
||||
$dbname = "flab_u_less";
|
||||
|
||||
// Create connection
|
||||
$conn = new mysqli($servername, $username, $password, $dbname);
|
||||
|
||||
// Check connection
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
// prepare and bind
|
||||
$stmt = $conn->prepare("INSERT INTO MyGuests (firstname, lastname, email) VALUES (?, ?, ?)");
|
||||
$stmt->bind_param("sss", $firstname, $lastname, $email);
|
||||
|
||||
// set parameters and execute
|
||||
$firstname = "John";
|
||||
$lastname = "Doe";
|
||||
$email = "[email protected]";
|
||||
$stmt->execute();
|
||||
|
||||
$firstname = "Mary";
|
||||
$lastname = "Moe";
|
||||
$email = "[email protected]";
|
||||
$stmt->execute();
|
||||
|
||||
$firstname = "Julie";
|
||||
$lastname = "Dooley";
|
||||
$email = "[email protected]";
|
||||
$stmt->execute();
|
||||
|
||||
echo "New records created successfully";
|
||||
|
||||
$stmt->close();
|
||||
$conn->close();
|
||||
?>
|
||||
Reference in New Issue
Block a user