/
index.php
98 lines (81 loc) · 2.03 KB
/
index.php
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
<!DOCTYPE html>
<?php
include("functions/functions.php");
?>
<html>
<head>
<title>Online Shop</title>
<link rel="stylesheet" type="text/css" href="style/style.css" media="all">
</head>
<body>
<!--Main container start-->
<div class="main_wrapper">
<!--Header start-->
<div class="header_wrapper">
<img id="logo" src="images/eShoplogo.png">
<img id="banner" src="images/banner.png">
</div>
<!--Header end-->
<!--Menu start-->
<div class="menubar">
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">All product</a></li>
<li><a href="#">My Account</a></li>
<li><a href="#">Sign Up</a></li>
<li><a href="#">Shopping cart</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
<div id="form">
<form method="get" action="result.php" enctype="multipart/form-data">
<input type="text" name="user_query" placeholder="Search a Product"></input>
<input type="submit" name="search" value="Search"/>
</form>
</div>
</div>
<!--Menu start-->
<!--Content start-->
<div class="content_wrapper">
<div id="sidebar">
<div id="sidebar_title">Categories</div>
<ul id="cats">
<?php
getCats();
?>
</ul>
<div id="sidebar_title">Brands</div>
<ul id="cats">
<?php
getBrands();
?>
</ul>
</div>
<div id="content_area">
<div id="shopping_cart">
<span style="float:right; font-size:20px; padding:5px; line-height:40px;">
Welcome Guest! <b style="color:green">Shoppping Cart-</b> Total Items: Total Price:
<a href="cart.php" style="color:green" text-decoration: none;>Go to Cart</a>
</span>
</div>
<div id="products_box">
<?php
getPro();
?>
<?php
getCatPro();
?>
</div>
</div>
</div>
<!--Content end-->
<!--Footer start-->
<div id="footer">
<h2>
© ITsoftMN.mn
</h2>
</div>
<!--Footer end-->
</div>
<!--Main container start-->
</body>
</html>