New Design
New Design
<?php
session_start(); // Ensure session is started
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Eloquente Catering Services</title>
<link rel="stylesheet" href="path-to-your-style.css">
<style>
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f9;
}
header {
background-color: #333; /* Dark background */
color: white;
padding: 15px 30px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /*
Optional: Adding shadow for header */
}
.logo img {
width: 120px; /* Set the size of your logo */
margin-right: 10px; /* Space between the logo and
text */
}
.logo span {
color: white;
font-size: 1.5rem; /* Adjust the font size of the
text */
text-transform: uppercase;
letter-spacing: 1px;
}
/* Navigation Menu */
nav {
display: flex;
align-items: center;
flex-grow: 1;
justify-content: center;
position: relative;
}
nav a {
color: white;
text-decoration: none;
margin: 0 20px;
padding: 10px 15px;
display: flex;
align-items: center;
transition: background-color 0.3s ease, color 0.3s
ease;
border-radius: 5px;
}
nav a:hover {
color: #FF4500; /* Hover color */
background-color: rgba(255, 69, 0, 0.1);
}
.header__menu__dropdown a {
color: white;
padding: 10px;
text-decoration: none;
text-transform: none;
transition: background-color 0.3s ease;
}
.header__menu__dropdown a:hover {
background-color: rgba(255, 69, 0, 0.2);
}
.menu-toggle i {
font-size: 24px;
}
nav a {
margin: 10px 0;
width: 100%;
padding: 15px 20px;
text-align: left;
}
.menu-toggle {
display: block;
margin-right: 20px;
cursor: pointer;
color: white;
}
nav.active {
display: flex; /* Show menu when active */
}
.cta {
margin: 10px 0;
}
}
<header>
<!-- Logo Section with actual logo image and text next to
it -->
<div class="logo">
<a href="index.php">
<img src="img/lolol.png" alt="Eloquente Catering
Services"> <!-- Replace with your logo image -->
<span>Eloquente Catering Services</span> <!--
Text next to the logo -->
</a>
</div>
<script>
// Toggle navigation on mobile
document.querySelector('.menu-
toggle').addEventListener('click', function() {
document.querySelector('nav').classList.toggle('active');
});
</script>
</body>
</html>
Footer
if ($query->rowCount() > 0) {
foreach ($results as $row) {
?>
<li><strong>Address:</strong> <?php echo
htmlentities($row->PageDescription); ?></li>
<li><strong>Phone:</strong> +<?php echo
htmlentities($row->MobileNumber); ?></li>
<li><strong>Email:</strong> <?php echo
htmlentities($row->Email); ?></li>
<?php } } ?>
</ul>
</div>
</div>
Index
<?php
session_start(); // Ensure session is started
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Eloquente Catering Services</title>
<link rel="stylesheet" href="path-to-your-style.css">
<style>
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f9;
}
header {
background-color: #333; /* Dark background */
color: white;
padding: 15px 30px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
width: 100%;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /*
Optional: Adding shadow for header */
}
.logo a {
display: flex;
align-items: center;
text-decoration: none;
}
.logo img {
width: 120px; /* Set the size of your logo */
margin-right: 10px; /* Space between the logo and
text */
}
.logo span {
color: white;
font-size: 1.5rem; /* Adjust the font size of the
text */
text-transform: uppercase;
letter-spacing: 1px;
}
/* Navigation Menu */
nav {
display: flex;
align-items: center;
flex-grow: 1;
justify-content: center;
position: relative;
}
nav a {
color: white;
text-decoration: none;
margin: 0 20px;
padding: 10px 15px;
display: flex;
align-items: center;
transition: background-color 0.3s ease, color 0.3s
ease;
border-radius: 5px;
}
nav a:hover {
color: #FF4500; /* Hover color */
background-color: rgba(255, 69, 0, 0.1);
}
.header__menu__dropdown a {
color: white;
padding: 10px;
text-decoration: none;
text-transform: none;
transition: background-color 0.3s ease;
}
.header__menu__dropdown a:hover {
background-color: rgba(255, 69, 0, 0.2);
}
.menu-toggle i {
font-size: 24px;
}
nav a {
margin: 10px 0;
width: 100%;
padding: 15px 20px;
text-align: left;
}
.menu-toggle {
display: block;
margin-right: 20px;
cursor: pointer;
color: white;
}
nav.active {
display: flex; /* Show menu when active */
}
.cta {
margin: 10px 0;
}
}
<header>
<!-- Logo Section with actual logo image and text next to
it -->
<div class="logo">
<a href="index.php">
<img src="img/lolol.png" alt="Eloquente Catering
Services"> <!-- Replace with your logo image -->
<span>Eloquente Catering Services</span> <!--
Text next to the logo -->
</a>
</div>
<script>
// Toggle navigation on mobile
document.querySelector('.menu-
toggle').addEventListener('click', function() {
document.querySelector('nav').classList.toggle('active');
});
</script>
</body>
</html>
Sign up
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['submit']))
{
$fname = $_POST['fname'];
$mobno = $_POST['mobno'];
$email = $_POST['email'];
$password = md5($_POST['password']);
if($query->rowCount() == 0)
{
// Insert the user into the database with address details
$sql = "INSERT INTO tbluser(FullName, MobileNumber,
Email, Password, Barangay, CityMunicipality, Province, ZipCode)
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
echo "<script>alert('You have signed up
successfully');</script>";
echo "<script>window.location.href
='login.php'</script>";
}
else
{
echo "<script>alert('Something went wrong. Please try
again');</script>";
echo "<script>window.location.href
='signup.php'</script>";
}
}
else
{
echo "<script>alert('Email-id already exists. Please try
again');</script>";
echo "<script>window.location.href
='signup.php'</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Online Catering Management System | Sign Up</title>
<script type="text/javascript">
function checkpass() {
if (document.signup.password.value !=
document.signup.repeatpassword.value) {
alert('Password and Repeat Password field do not
match');
document.signup.repeatpassword.focus();
return false;
}
return true;
}
</script>
<style>
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
display: flex;
flex-direction: column;
height: 100vh;
margin: 0;
justify-content: space-between;
}
header,
footer {
width: 100%;
background-color: #fff;
padding: 10px;
text-align: center;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.content {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
margin-top: 50px;
margin-bottom: 50px;
}
.signup-container {
background-color: #fff;
padding: 40px 20px;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
text-align: center;
z-index: 2;
}
.signup-container h2 {
margin-bottom: 20px;
color: #333;
}
.signup-container input[type="text"],
.signup-container input[type="email"],
.signup-container input[type="password"] {
width: 100%;
padding: 15px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
background-color: #f9f9f9;
font-size: 16px;
}
.signup-container button {
width: 100%;
padding: 15px;
margin-top: 10px;
border: none;
border-radius: 5px;
background-color: #8B0000;
color: #fff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.signup-container button:hover {
background-color: #600000;
}
.signup-container p {
margin-top: 20px;
color: #666;
}
.signup-container a {
color: #8B0000;
text-decoration: none;
}
.signup-container a:hover {
text-decoration: underline;
}
footer {
position: relative;
margin-top: auto;
padding: 20px;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
background-color: #fff;
}
footer p {
margin: 0;
color: #666;
}
</style>
</head>
<body>
</body>
</html>
Login
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['login']))
{
$email = $_POST['email'];
$password = md5($_POST['password']);
$sql = "SELECT ID FROM tbluser WHERE Email=:email and
Password=:password";
$query = $dbh->prepare($sql);
$query->bindParam(':email', $email, PDO::PARAM_STR);
$query->bindParam(':password', $password, PDO::PARAM_STR);
$query->execute();
$results = $query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
foreach ($results as $result) {
$_SESSION['ocmsuid'] = $result->ID;
}
$_SESSION['login'] = $_POST['email'];
echo "<script type='text/javascript'> document.location
='index.php'; </script>";
} else {
echo "<script>alert('Invalid Details');</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Online Catering Management System | Login</title>
<style>
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f4;
display: flex;
flex-direction: column;
height: 100vh; /* Make the body take full height */
margin: 0;
justify-content: space-between; /* Space out the
header, content, and footer */
}
.login-container {
background-color: #fff;
padding: 40px 20px;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
text-align: center;
z-index: 2;
}
.login-container h2 {
margin-bottom: 20px;
color: #333;
}
.login-container input[type="text"],
.login-container input[type="password"] {
width: 100%;
padding: 15px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
background-color: #f9f9f9;
font-size: 16px;
}
.login-container button {
width: 100%;
padding: 15px;
margin-top: 10px;
border: none;
border-radius: 5px;
background-color: #8B0000;
color: #fff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.login-container button:hover {
background-color: #600000;
}
.login-container p {
margin-top: 20px;
color: #666;
}
.login-container a {
color: #8B0000;
text-decoration: none;
}
.login-container a:hover {
text-decoration: underline;
}
/* Footer Stretching */
footer {
position: relative;
margin-top: auto; /* Ensures footer is pushed to the
bottom */
padding: 20px;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
background-color: #fff;
}
footer p {
margin: 0;
color: #666;
}
</style>
</head>
<body>
</body>
</html>
Products
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
// Cart functionality
if(!empty($_GET["action"])) {
switch($_GET["action"]) {
case "add":
if(!empty($_POST["quantity"])) {
$pid = $_GET["pid"];
$sql = $dbh->prepare("SELECT * FROM tblfood WHERE
ID=:pid");
$sql->execute(array(':pid' => $pid));
while($productByCode = $sql-
>fetch(PDO::FETCH_ASSOC)) {
$itemArray = array($productByCode["ID"] =>
array(
'name' => $productByCode["PackageName"],
'code' => $productByCode["ID"],
'quantity' => $_POST["quantity"],
'price' => $productByCode["Price"],
'image' => $productByCode["ItemImage"]
));
case "remove":
if(!empty($_SESSION["cart_item"])) {
foreach($_SESSION["cart_item"] as $k => $v) {
if($_GET["code"] == $k)
unset($_SESSION["cart_item"][$k]);
if(empty($_SESSION["cart_item"]))
unset($_SESSION["cart_item"]);
}
}
header('location:cart.php');
break;
case "empty":
unset($_SESSION["cart_item"]);
header('location:cart.php');
break;
}
}
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Eloquente Catering Services</title>
<style>
/* Increased space between breadcrumb and product image
slider */
.product__discount__slider {
margin-top: 40px; /* Adjust as needed for more space
*/
}
.product__discount__item img {
max-width: 90%; /* Adjust size */
height: auto;
margin: 0 auto;
display: block;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease;
}
.product__item__pic-wrapper:hover .view-more {
display: block;
}
.breadcrumb__text h2 {
color: white;
font-size: 36px;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
margin: 0; /* Ensure there is no margin */
}
.category-header a {
color: white;
font-size: 18px;
margin: 0 30px; /* Added space between links */
text-decoration: none;
text-transform: uppercase;
}
.category-header a:hover {
text-decoration: underline;
.category-header a {
color: white;
font-size: 18px;
margin: 0 30px; /* Added space between links */
text-decoration: none;
text-transform: uppercase;
}
.category-header a:hover {
text-decoration: underline;
}
<body>
<!-- Page Preloder -->
<div id="preloder">
<div class="loader"></div>
</div>
if($query->rowCount() > 0) {
foreach($results as $row) {
?>
<div class="col-lg-4">
<div class="product__discount__item">
<div class="product__item__pic">
<img src="admin/itemimages/<?php echo
$row->ItemImage; ?>" alt="<?php echo $row->PackageName; ?>">
</div>
<div
class="product__discount__item__text">
<span><?php echo $row->PackageName; ?
></span>
<h5><a href="food-details.php?pid=<?
php echo $row->ID; ?>"><?php echo $row->Category; ?></a></h5>
<div class="product__item__price">₱<?
php echo $row->Price; ?></div>
</div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
<div class="row">
<?php
$pageno = isset($_GET['pageno']) ? $_GET['pageno'] :
1;
$no_of_records_per_page = 6;
$offset = ($pageno - 1) * $no_of_records_per_page;
if($query->rowCount() > 0) {
foreach($results as $row) {
?>
<div class="col-lg-4 col-md-6 col-sm-6">
<div class="product__item">
<form method="post" action="products.php?
action=add&pid=<?php echo $row->ID; ?>">
<div class="product__item__pic-wrapper">
<a href="food-details.php?pid=<?php
echo $row->ID; ?>" class="product__item__pic">
<img style="border-radius: 15px"
src="admin/itemimages/<?php echo $row->ItemImage; ?>" alt="<?php
echo $row->PackageName; ?>">
</a>
<div class="view-more">
<a href="food-details.php?pid=<?
php echo $row->ID; ?>">View More</a>
</div>
</div>
<div class="product__item__text">
<h6><a href="food-details.php?pid=<?
php echo $row->ID; ?>"><?php echo $row->PackageName; ?></a></h6>
<h5>₱<?php echo $row->Price; ?></h5>
</div>
</form>
</div>
</div>
<?php
}
}
?>
</div>
About
<?php
include('includes/dbconnection.php');
session_start();
error_reporting(0);
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Eloquente Catering Services - About Us</title>
.breadcrumb__text h2 {
font-family: 'Cairo', sans-serif;
font-size: 50px;
color: #fff;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
}
/* About Us Section */
.about-us-section {
padding: 80px 0;
background-color: #f8f8f8;
}
.about-us-section .section-title {
text-align: center;
margin-bottom: 30px;
}
.about-us-section .section-title h2 {
font-family: 'Cairo', sans-serif;
font-size: 36px;
color: #333;
font-weight: 600;
}
.about-us-section p {
font-family: 'Cairo', sans-serif;
font-size: 18px;
color: #555;
line-height: 1.8;
max-width: 800px;
margin: 0 auto 30px;
}
.about-content .text {
flex: 1;
padding-right: 30px;
}
.about-content .text h3 {
font-family: 'Cairo', sans-serif;
font-size: 28px;
color: #333;
font-weight: 700;
margin-bottom: 20px;
}
.about-content .image {
flex: 1;
text-align: center;
}
.mission-section h3 {
font-family: 'Cairo', sans-serif;
font-size: 28px;
color: #333;
font-weight: 600;
text-align: center;
margin-bottom: 30px;
}
.mission-section ul {
list-style: none;
padding: 0;
text-align: center;
}
.mission-section ul li {
font-family: 'Cairo', sans-serif;
font-size: 18px;
color: #555;
margin: 10px 0;
}
<body>
$cnt = 1;
if ($query->rowCount() > 0) {
foreach ($results as $row) { ?>
<div class="section-title">
<h2><?php echo $row->PageTitle; ?></h2>
</div>
<p><?php echo $row->PageDescription; ?></p>
</div>
<?php
$cnt++;
}} ?>
</div>
</body>
</html>