-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a95418
commit 91da008
Showing
11 changed files
with
881 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?php include ( "../inc/connect.inc.php" ); ?> | ||
<?php | ||
ob_start(); | ||
$mysqli=new mysqli($mysql_server,$mysql_username,$mysql_password,$mysql_db); | ||
session_start(); | ||
if (!isset($_SESSION['user_login'])) { | ||
$user = ""; | ||
$mail_href="../index.php"; | ||
} | ||
else { | ||
$user = $_SESSION['user_login']; | ||
$query="SELECT * FROM user WHERE id='$user'"; | ||
$result=$mysqli->query($query); | ||
|
||
$get_user_email=$result->fetch_assoc(); | ||
$uname_db = $get_user_email['firstName']; | ||
$mail_temp=$get_user_email['email']; | ||
$mail_href="../index.php?mail=".$mail_temp.""; | ||
} | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>SAREE</title> | ||
<link rel="stylesheet" type="text/css" href="../css/style.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<?php include ( "../inc/mainheader.inc.php" ); ?> | ||
<div class="categolis"> | ||
<table> | ||
<tr> | ||
<th> | ||
<a href="saree.php" style="text-decoration: none;color: #fff;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Saree</a> | ||
</th> | ||
<th><a href="ornament.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Ornament</a></th> | ||
<th><a href="watch.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Watch</a></th> | ||
<th><a href="perfume.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Perfume</a></th> | ||
<th><a href="hijab.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Hijab</a></th> | ||
<th><a href="tshirt.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">T-Shirt</a></th> | ||
<th><a href="footwear.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #24bfae;border-radius: 12px;">FootWear</a></th> | ||
<th><a href="toilatry.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Toilatry</a></th> | ||
</tr> | ||
</table> | ||
</div> | ||
<div style="padding: 30px 120px; font-size: 25px; margin: 0 auto; display: table; width: 98%;"> | ||
<div> | ||
<?php | ||
$query=("SELECT * FROM products WHERE available >='1' AND item ='footWear' ORDER BY id DESC LIMIT 10") or die(mysql_error()); | ||
$getposts=$mysqli->query($query); | ||
|
||
if($getposts->num_rows){ | ||
echo '<ul id="recs">'; | ||
while($row=$getposts->fetch_assoc()){ | ||
$id = $row['id']; | ||
$pName = $row['pName']; | ||
$price = $row['price']; | ||
$description = $row['description']; | ||
$picture = $row['picture']; | ||
|
||
echo ' | ||
<ul style="float: left;"> | ||
<li style="float: left; padding: 0px 25px 25px 25px;"> | ||
<div class="home-prodlist-img"><a href="view_product.php?pid='.$id.'"> | ||
<img src="../image/product/footwear/'.$picture.'" class="home-prodlist-imgi"> | ||
</a> | ||
<div style="text-align: center; padding: 0 0 6px 0;"> <span style="font-size: 15px;">'.$pName.'</span><br> Price: '.$price.' USD</div> | ||
</div> | ||
</li> | ||
</ul> | ||
'; | ||
|
||
} | ||
} | ||
$mysqli->close(); | ||
?> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php include ( "../inc/connect.inc.php" ); ?> | ||
<?php | ||
ob_start(); | ||
$mysqli=new mysqli($mysql_server,$mysql_username,$mysql_password,$mysql_db); | ||
session_start(); | ||
if (!isset($_SESSION['user_login'])) { | ||
$user = ""; | ||
$mail_href="../index.php"; | ||
} | ||
else { | ||
$user = $_SESSION['user_login']; | ||
$query="SELECT * FROM user WHERE id='$user'"; | ||
$result=$mysqli->query($query); | ||
|
||
$get_user_email=$result->fetch_assoc(); | ||
$uname_db = $get_user_email['firstName']; | ||
$mail_temp=$get_user_email['email']; | ||
$mail_href="../index.php?mail=".$mail_temp.""; | ||
} | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>SAREE</title> | ||
<link rel="stylesheet" type="text/css" href="../css/style.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<?php include ( "../inc/mainheader.inc.php" ); ?> | ||
<div class="categolis"> | ||
<table> | ||
<tr> | ||
<th> | ||
<a href="saree.php" style="text-decoration: none;color: #fff;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Saree</a> | ||
</th> | ||
<th><a href="ornament.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Ornament</a></th> | ||
<th><a href="watch.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Watch</a></th> | ||
<th><a href="perfume.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Perfume</a></th> | ||
<th><a href="hijab.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #24bfae;border-radius: 12px;">Hijab</a></th> | ||
<th><a href="tshirt.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">T-Shirt</a></th> | ||
<th><a href="footwear.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">FootWear</a></th> | ||
<th><a href="toilatry.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Toilatry</a></th> | ||
</tr> | ||
</table> | ||
</div> | ||
<div style="padding: 30px 120px; font-size: 25px; margin: 0 auto; display: table; width: 98%;"> | ||
<div> | ||
<?php | ||
$query=("SELECT * FROM products WHERE available >='1' AND item ='hijab' ORDER BY id DESC LIMIT 10") or die(mysql_error()); | ||
$getposts=$mysqli->query($query); | ||
if($getposts->num_rows){ | ||
echo '<ul id="recs">'; | ||
while($row=$getposts->fetch_assoc()){ | ||
$id = $row['id']; | ||
$pName = $row['pName']; | ||
$price = $row['price']; | ||
$description = $row['description']; | ||
$picture = $row['picture']; | ||
|
||
echo ' | ||
<ul style="float: left;"> | ||
<li style="float: left; padding: 0px 25px 25px 25px;"> | ||
<div class="home-prodlist-img"><a href="view_product.php?pid='.$id.'"> | ||
<img src="../image/product/hijab/'.$picture.'" class="home-prodlist-imgi"> | ||
</a> | ||
<div style="text-align: center; padding: 0 0 6px 0;"> <span style="font-size: 15px;">'.$pName.'</span><br> Price: '.$price.' USD</div> | ||
</div> | ||
</li> | ||
</ul> | ||
'; | ||
|
||
} | ||
} | ||
$mysqli->close(); | ||
?> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Nothing Found</title> | ||
</head> | ||
<body> | ||
<h5>Nothing Found!!</h5> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php include ( "../inc/connect.inc.php" ); ?> | ||
<?php | ||
ob_start(); | ||
$mysqli=new mysqli($mysql_server,$mysql_username,$mysql_password,$mysql_db); | ||
session_start(); | ||
if (!isset($_SESSION['user_login'])) { | ||
$user = ""; | ||
$mail_href="../index.php"; | ||
} | ||
else { | ||
$user = $_SESSION['user_login']; | ||
$query="SELECT * FROM user WHERE id='$user'"; | ||
$result=$mysqli->query($query); | ||
$get_user_email=$result->fetch_assoc(); | ||
$uname_db = $get_user_email['firstName']; | ||
$mail_temp=$get_user_email['email']; | ||
$mail_href="../index.php?mail=".$mail_temp.""; | ||
} | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>SAREE</title> | ||
<link rel="stylesheet" type="text/css" href="../css/style.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<?php include ( "../inc/mainheader.inc.php" ); ?> | ||
<div class="categolis"> | ||
<table> | ||
<tr> | ||
<th> | ||
<a href="saree.php" style="text-decoration: none;color: #fff;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Saree</a> | ||
</th> | ||
<th><a href="ornament.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #24bfae;border-radius: 12px;">Ornament</a></th> | ||
<th><a href="watch.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Watch</a></th> | ||
<th><a href="perfume.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Perfume</a></th> | ||
<th><a href="hijab.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Hijab</a></th> | ||
<th><a href="tshirt.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">T-Shirt</a></th> | ||
<th><a href="footwear.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">FootWear</a></th> | ||
<th><a href="toilatry.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Toilatry</a></th> | ||
</tr> | ||
</table> | ||
</div> | ||
<div style="padding: 30px 120px; font-size: 25px; margin: 0 auto; display: table; width: 98%;"> | ||
<div> | ||
<?php | ||
$query=("SELECT * FROM products WHERE available >='1' AND item ='ornament' ORDER BY id DESC LIMIT 10") or die(mysql_error()); | ||
$getposts=$mysqli->query($query); | ||
if($getposts->num_rows){ | ||
echo '<ul id="recs">'; | ||
while($row=$getposts->fetch_assoc()){ | ||
$id = $row['id']; | ||
$pName = $row['pName']; | ||
$price = $row['price']; | ||
$description = $row['description']; | ||
$picture = $row['picture']; | ||
|
||
echo ' | ||
<ul style="float: left;"> | ||
<li style="float: left; padding: 0px 25px 25px 25px;"> | ||
<div class="home-prodlist-img"><a href="view_product.php?pid='.$id.'"> | ||
<img src="../image/product/ornament/'.$picture.'" class="home-prodlist-imgi"> | ||
</a> | ||
<div style="text-align: center; padding: 0 0 6px 0;"> <span style="font-size: 15px;">'.$pName.'</span><br> Price: '.$price.' USD</div> | ||
</div> | ||
</li> | ||
</ul> | ||
'; | ||
|
||
} | ||
} | ||
$mysqli->close(); | ||
?> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php include ( "../inc/connect.inc.php" ); ?> | ||
<?php | ||
ob_start(); | ||
$mysqli=new mysqli($mysql_server,$mysql_username,$mysql_password,$mysql_db); | ||
session_start(); | ||
if (!isset($_SESSION['user_login'])) { | ||
$user = ""; | ||
$mail_href="../index.php"; | ||
} | ||
else { | ||
$user = $_SESSION['user_login']; | ||
$query="SELECT * FROM user WHERE id='$user'"; | ||
$result=$mysqli->query($query); | ||
|
||
|
||
$get_user_email=$result->fetch_assoc(); | ||
|
||
$uname_db = $get_user_email['firstName']; | ||
$mail_temp=$get_user_email['email']; | ||
$mail_href="../index.php?mail=".$mail_temp.""; | ||
} | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>SAREE</title> | ||
<link rel="stylesheet" type="text/css" href="../css/style.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<?php include ( "../inc/mainheader.inc.php" ); ?> | ||
<div class="categolis"> | ||
<table> | ||
<tr> | ||
<th> | ||
<a href="saree.php" style="text-decoration: none;color: #fff;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Saree</a> | ||
</th> | ||
<th><a href="ornament.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Ornament</a></th> | ||
<th><a href="watch.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Watch</a></th> | ||
<th><a href="perfume.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #24bfae;border-radius: 12px;">Perfume</a></th> | ||
<th><a href="hijab.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Hijab</a></th> | ||
<th><a href="tshirt.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">T-Shirt</a></th> | ||
<th><a href="footwear.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">FootWear</a></th> | ||
<th><a href="toilatry.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Toilatry</a></th> | ||
</tr> | ||
</table> | ||
</div> | ||
<div style="padding: 30px 120px; font-size: 25px; margin: 0 auto; display: table; width: 98%;"> | ||
<div> | ||
<?php | ||
$query=("SELECT * FROM products WHERE available >='1' AND item ='perfume' ORDER BY id DESC LIMIT 10") or die(mysql_error()); | ||
$getposts=$mysqli->query($query); | ||
if ($getposts->num_rows) { | ||
echo '<ul id="recs">'; | ||
while ($row = $getposts->fetch_assoc()) { | ||
$id = $row['id']; | ||
$pName = $row['pName']; | ||
$price = $row['price']; | ||
$description = $row['description']; | ||
$picture = $row['picture']; | ||
|
||
echo ' | ||
<ul style="float: left;"> | ||
<li style="float: left; padding: 0px 25px 25px 25px;"> | ||
<div class="home-prodlist-img"><a href="view_product.php?pid='.$id.'"> | ||
<img src="../image/product/perfume/'.$picture.'" class="home-prodlist-imgi"> | ||
</a> | ||
<div style="text-align: center; padding: 0 0 6px 0;"> <span style="font-size: 15px;">'.$pName.'</span><br> Price: '.$price.' USD</div> | ||
</div> | ||
</li> | ||
</ul> | ||
'; | ||
|
||
} | ||
} | ||
$mysqli->close(); | ||
?> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.