Project1 Arpita
Project1 Arpita
WEB TECHNOLOGY
CODE : CBCPC04
Submitted By : Submitted To :
Arpita Arora Mrs. Barkha Nandwana
(2022UCB6002)
NAME : LJ Jewellers
LANGUAGES USED:
HTML
CSS
JavaScript
PHP
XML
SQL Database (Backend)
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebTech</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/
Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="mystyle.css">
<link href="https://fonts.googleapis.com/css2?
family=Marcellus+SC&display=swap" rel="stylesheet">
<style>
.card {
height: 500px;
padding: 0 30px;
display: flex;
flex-direction: column;
align-items: center;
}
@import url('https://fonts.googleapis.com/css2?
family=Nixie+One&display=swap');
#products {
background-image: linear-gradient(rgb(2, 46, 59), white);
}
#aboutus {
background-image: linear-gradient(rgb(2, 46, 59), white);
}
#footercard {
background-image: linear-gradient(rgb(2, 46, 59), white);
}
#rating {
background-image: linear-gradient(rgb(2, 46, 59), white);
}
</style>
</head>
<body>
<div class="container-fluid">
//echo $row_data['brand_name'];
while ($row_data= mysqli_fetch_assoc($result_brands)){
$brand_title =$row_data['brand_name'];
$brand_ID = $row_data['brand_id'];
echo "<li class='nav-item'><a href='#'class='nav-
link'>$brand_title</a>";
}
?></a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-
toggle="dropdown" aria-expanded="false">
CATEGORIES
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#"><?php
$select_category = "Select * from category ";
$result_category = mysqli_query($con,$select_category);
//echo $row_data['brand_name'];
while ($row_data= mysqli_fetch_assoc($result_category)){
$cat_title =$row_data['category_title'];
$cat_ID = $row_data['category_id'];
echo "<li class='nav-item'><a href='#'class='nav-
link'>$cat_title</a>";
}
?></a></li>
</ul>
</li>
</div>
</div>
</nav>
<div class="headertext">
<div class="iconing"></div>
<!--cards -->
</ul>
<br>
<br>
<!--search bar -->
<div class="searchform" style = "display:flex flex-direction:column">
<label class="form-label" for="product"></label>
<input class="form-control" id="product" style="width: 500px;
margin: 0 40px;height:50px;box-shadow: rgb(41, 39, 39) 10px 5px;"
placeholder="Search...">
<br>
</div>
<br>
<section id="products">
<br>
<br>
<h2 style="color:white; text-align: center;font-size: 2.8rem;font-
family: Nixie+One;font-weight: lighter;">
Necklaces For Every You</h2>
<div class="items1">
<div class="card">
<div class="card-header">Emerald-Diamond </div>
<div class="card-body">
<img src="emerald diamond.jpg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">50% off Rs. 4500/- </h5>
<p class="card-text">Shining Diamond Necklace
embllished with prosperous Emerald Beauty</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Ruby-Diamond
</div>
<div class="card-body">
<img src="rubydiamond.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">30% off Rs. 4800 </h5>
<p class="card-text">Tempting Ruby Crystals embedded
into a sparkling pool of Diamonds</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Diamond Choker
</div>
<div class="card-body">
<img src="chokerdiamond.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">40% off Rs. 4100</h5>
<p class="card-text">Set the Trend with American
Diamond, RoseGold coloured choker</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Diamond-Pearl
</div>
<div class="card-body">
<img src="diamondpearl.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">20% off Rs. 4299</h5>
<p class="card-text">Be the Show-Stopper with Shining
Diamonds embedded into classic pearls!</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
</div>
<h2 style="color:white; text-align: center;font-size:
2.8rem ;font-family: Nixie+One;font-weight: lighter;">
Earrings which turn all heads!</h2>
<div class="items2">
<div class="card">
<div class="card-header">
Korean Earrings
</div>
<div class="card-body">
<img src="koreanearrings.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">30% off Rs.2700</h5>
<p class="card-text">Steal The Show, with classic and
trendy Korean Jewllery</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Jhumkas
</div>
<div class="card-body">
<img src="jhumkarosegold.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">40% off Rs.5500</h5>
<p class="card-text">Be noticed, with Rose-Gold
Diamond Jhumkas decorated with hanging pearls
</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Silver Hoops
</div>
<div class="card-body">
<img src="chandbaaliyan.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">20% off Rs.4200</h5>
<p class="card-text">Want to flaunt Your Chaand
Baaliyan? Showcase them with pure silver ones!
</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Diamond Earrings
</div>
<div class="card-body">
<img src="diamondparrty.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">40% off Rs.5500</h5>
<p class="card-text">Rock the Party with shining
Diamond-Danglers!</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
</div>
<h2 style="color:white; text-align: center;font-size: 2.8rem;font-
family: Nixie+One;font-weight: lighter;">
Hands that spread the light!</h2>
<div class="items3">
<div class="card">
<div class="card-header">
Gold Watch Bracelet
</div>
<div class="card-body">
<img src="watchbraceletgold2.jpeg"
style="height:200px; width:250px;">
<br>
<br>
<h5 class="card-title">30% off Rs. 5600/-</h5>
<p class="card-text">The classic Gold Pleated Watch
bracelet! Redefine your time!</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Bangle Bracelet
</div>
<div class="card-body">
<img src="silverbanglebracelet3.jpeg"
style="height:200px; width:250px;">
<br>
<br>
<h5 class="card-title">20% off Rs. 6500</h5>
<p class="card-text">Get some Indo-Western Touch with
the all silver Bangle Bracelet!</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Ring Chain Bracelet
</div>
<div class="card-body">
<img src="ringchainbracelet.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">30% off Rs.5200</h5>
<p class="card-text">Be a stunner and make your hands
shine with trendy ring chain bracelet </p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
<div class="card">
<div class="card-header">
Diamond Bracelet
</div>
<div class="card-body">
<img src="diamondbracelet1.jpeg" style="height:200px;
width:250px;">
<br>
<br>
<h5 class="card-title">40% off Rs.6500</h5>
<p class="card-text">Spread the light with glittery
diamonds wrpped around your wrist!</p>
<a href="#" class="btn btn-primary">Add to Cart</a>
<a href="#" class="btn btn-primary">Buy Now</a>
</div>
</div>
</div>
</section>
<br>
<br>
<!--about us -->
<section id="aboutus" style="color: white;">
<div class="about">
<hr>
<h>ABOUT US </h>
<p>We are one of the oldest business families in India with a
family legacy of over a century in business, starting from as early as 1908.
Started for the noble cause of nation-building and self-
sustenance in a pre-independent India, the
forefathers believed ethical, honest and transparent
business practices should form the foundation of the group.
<br>
<b>VISION : </b>
To understand and delight the world, translating
everyone’s dream and personality into fine Indian
jewellery, and spread the happiness from it to all.
<br>
<b>MISSION : </b>
To give every customer much more than what he/she asks for
in terms of quality, selection, value for money and customer service,
by understanding local tastes and preferences and
innovating constantly to eventually provide an unmatched
experience in Indian jewellery shopping.
<br>
<br>
Indian jewellery, its craftsmanship and variety is an
amazing showcase of India’s heritage, culture and diversity.
With a deep understanding of local tastes and preferences,
LJ offers an array of traditional and contemporary
jewellery designs in gold, diamonds, precious stones and
other precious metals.
<br>
<br>
We at LJ JEWELLERS have always believed that the customer
needs to be educated and aware, as this is the first step in preventing
malpractices in business. As a part of this philosophy we
have conducted several campaigns over the years, to educate
customers about purity, pricing and other aspects. These
efforts of ours have gone a long way in the industry, that
is now becoming more transparent towards the customer’s
interests. We believe that this is our legacy to the industry.
</p>
<div class="actor2">
<img src="priyanka.jpeg" alt="pc"
style="height:200px;width:200px" /><br>
<p style="padding : 0 20px;"> Had an awesome
experience at LJ ! I can see why all the reviews are 5-star.
Great selection, wonderful service. They were very
attentive and really helped me with stellar options.</p>
<p><b>-Priyanka Chopra, Actress</b></p>
</div>
<div class="actor3">
<img src="srk.jpg" alt="srk"
style="height:200px;width:200px" /><br>
<p style="padding : 0 20px;">It was a great experience
shopping at this place. The salesperson had detailed answer to every question
we asked.
They are very knowledgeable about their craft. Very
satisfied.</p>
<p><b>-Shah Rukh Khan, Actor</b></p>
</div>
</div>
<br>
<br>
<div class="userreview" style="background-color: white; color:
black;border-radius:40px; padding: 30px;">
<h3>Our Happy Customers</h3>
<ul>
<li>
<p>
They Have The Best Collection Of Jewellery And At
Reasonable Prices. You Can Also Customise Your Jewellery As Per Your
Need. They Also Were Very Much Polite And Have A
Good Service Too. Even They Delivered The Jewellery To Me, When I
Requested Them If They Could Deliver If Possible.
Thank You So Much. Had A Very Good Experience!-
<br> Mrs. Deepti Taneja, Homemaker</p>
</li>
<li>
<p>Had A Very Good Experience Shopping From Your
Site.
The Chain Was Awesome And The Price Was At Par
With The Current Market Rates. Thank You LJ JEWELLERS.
<br> -Ms. Aarvi Oberoi, Entrepreneur</p>
</li>
<li>
<p>Best Designs Are At Giriraj Jwellers . Purity
Of Gold And Diamond Is Too Good And Also They Believe In Costumers
Satisfaction
<br>- Ms. Shanaya Aggarwal, Engineer</p>
</li>
</ul>
</div>
<br>
<br>
<div class="reviewbox">
<h4 style="color: red; text-align: center; font-size:
2rem;">COME BE A PART OF OUR HAPPY FAMILY</h4>
<br>
<form class="formbox">
<label for="customer" style="font-size: 1.4rem;
color:black; margin-right: 15px;">Write a Review :</label>
<input id="customer" type="text" placeholder="Share
Your Experience With Us !">
</form>
</div>
</div>
</section>
<br>
<br>
<hr>
<!--footer-->
<br>
<section id="footercard">
<footer class="card-footer"
style="text-align: center; font-size: 1.4rem; background-
color: white;color:black;padding:20px;">Stores in New
Delhi, Noida, Mumbai and Chennai
<p>For Customer Assistance , reach us at : <a
href="#">[email protected]</a></p>
<p>Follow us on Instagram, <a href="#">@LJofficial</a></p>
<p>Follow us on Twitter <a href="#">@HiArpitaHere_</a></p>
</footer>
</section>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min
.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46
cDfL"
crossorigin="anonymous"></script>
</body>
</html>
//connect.php
<?php
$con=mysqli_connect('localhost','root','','jewelstore');
if(!$con){
die(mysqli-error($con));
}
?>
//user_login.php
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>new file </title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet" integrity="sha384-
T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"> <!--bootstrap css stylesheet-->
<style>
body{
background-image:url("user.jpeg");
}
</style>
</head>
<body>
<div class="container-fluid my-3">
<h2 class="text-center" style = "font-size: 4rem;"> USER LOGIN </h2>
<div class="row d-flex align-items-center justify-content-center mt-5" >
<div class="lg-12 col-xl-6" >
<form action=" " method="post" enctype="multipart/form-data" >
<div class="form-outline mb-4" style = "border: 2px solid black;
padding:30px; height:130px; background-color:white; border-radius:10px;
box-shadow: grey 10px 5px;">
<!-- username field -->
<label for="user_username" class="form-label" style = "color:black">
Username
</label>
<br>
<input type ="text" id="user_username" class="form-control" placeholder="enter
your username" autocomplete="off" required="required"
name="user_username">
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min
.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46
cDfL"
crossorigin="anonymous"></script> <!--bootstrap js -->
</body>
</html>
//view_items.php
<?php
include('../includes/connect.php');
?>
<!DOCTYPE html>
<html lang="en" data-bs-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/
Dwwykc2MPK8M2HN" crossorigin="anonymous">
<style>
body{
background-image:linear-gradient(to left, bisque, white);
display:flex;
flex-direction: column;
text-align:center;
justify-content:center;
color: red;
}
</style>
</head>
<body>
<h1 style = "margin-top: 30px; font-size: 5rem; font-weight:
lighter;">Jewels For Every You</h1>
<div class="row" >
<div class="col-md-12">
<div class="row" style = "display:flex; justify-
content:center;align-items:center; padding: 45px;">
<?php
$select_query="select * from items";
$result_query=mysqli_query($con,$select_query);
while ($row = mysqli_fetch_assoc($result_query)){
$prod_id=$row['item_id'];
$prod_title=$row['item_title'];
$prod_desc=$row['item_decription'];
$prod_kw=$row['item_keyword'];
$prod_cat=$row['category_id'];
$prod_b=$row['brand_id'];
$prod_img1=$row['item_img1'];
$prod_price = $row['item_price'];
echo " <div class='col-md-3 m-auto p-2'>
<div class='card '>
<div class='card-header'>$prod_title</div>
<div class='card-body'>
<img src= '$prod_img1'style='height:200px;
width:200px;'/>
<br>
<br>
<h5 class='card-title'>Rs. $prod_price</h5>
<p class='card-text'>$prod_desc </p>
<a href='#' class='btn btn-primary'>Add to
Cart</a>
<a href='#' class='btn btn-primary'>Buy Now</a>
</div>
</div>
<br>
</div>
"; } ?>
</div>
</div>
</div>
--function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
}
};
xhttp.open("GET", "ajax_info.txt", true);
xhttp.send();
}--
</body>
</html>
//css stylesheet
@import url('https://fonts.googleapis.com/css2?
family=Edu+TAS+Beginner&display=swap');
body{
height : 100vh;
width: 100vw;
}
h1{
margin-top: 30px;
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size:5rem;
font-weight: lighter;
margin-left: 90px;
}
.headertext{
display: flex;
justify-content:flex-start;
align-items: center;
}
.photo{
display: flex;
justify-content: flex-end;
align-items: center;
height: 400px;
}
.nav{
width: 1550px;
font-size: 1.4rem;
letter-spacing: 0.5;
color: brown;
margin: 0 30px;
}
.card {
height : 450px;
width: 300px;
}
.searchform{
display: flex;
justify-content: center;
}
.items1{
padding: 60px;
max-width:1800px;
margin-left: 100px;
display: flex;
justify-content: space-evenly;
}
.items2{
padding: 60px;
max-width:1800px;
margin-left: 100px;
display: flex;
justify-content: space-evenly;
}
.items3{
padding: 60px;
max-width:1800px;
margin-left: 100px;
display: flex;
justify-content: space-evenly;
}
.about {
max-width:1300px;
padding: 30px;
display: flex;
flex-direction: column;
align-items:center;
margin : 0 180px;
background-image: url("wallpaper.jpg");
}
h{
margin: 20px;
font-size: 1.5rem;
}
.reviews{
max-width:1300px;
padding: 30px;
display: flex;
flex-direction: column;
align-items:center;
margin : 0 180px;
}
.actors{
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.actor1{
border:2px solid black;
height: 450px;
display: flex;
border-radius: 25px;
flex-direction: column;
align-items: center;
width: 340px;
padding: 20px;
margin-right: 50px;
}
.actor2{
border:2px solid black;
height: 450px;
display: flex;
border-radius: 25px;
flex-direction: column;
align-items: center;
width: 340px;
margin-right: 50px;
padding: 20px;
}
.actor3{
border:2px solid black;
height: 450px;
display: flex;
border-radius: 25px;
flex-direction: column;
align-items: center;
width: 340px;
margin-right: 50px;
padding: 20px;
}
input{
border: 2px solid grey;
width: 800px;
height:80px;
border-radius:40px ;
text-align: center;
box-shadow: grey 10px 5px;
}
OUTPUT