-
Notifications
You must be signed in to change notification settings - Fork 1
/
farzi.php
134 lines (115 loc) · 3.35 KB
/
farzi.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
session_start();
include("functions/functions.php");
?>
<html>
<head>
<title>My Site Title</title>
<link rel="stylesheet" href="styles/style.css" media="all">
<head>
<body>
<div class="main_wrapper">
<div class="header_wrapper">This is a header!
<img id="logo" src="images/logo.gif" >
<img id="banner" src="images/ad_banner.gif" >
</div>
<div class="menubar">
<ul id="menu">
<li><a href="index.php">Home</a></li>
<li><a href="all_products.php">All Products</a></li>
<li><a href="customer/my_account.php">My Account</a></li>
<li><a href="#">Sign Up</a></li>
<li><a href="cart.php">Shopping Cart</a></li>
<li><a href="">Contact Us</a></li>
</ul>
<div id="form">
<form method="get" action="results.php" enctype="multipart/form-data">
<input type="text" name="user_query" / >
<input type="submit" name="search" value="Search" />
</form>
</div>
</div>
<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">
<?php cart(); ?>
<div id="shopping_cart">
<span style="float:right; font-size:18px; padding:5px; line-height:40px;">
Welcome Guest! <b style="color:yellow;">Shopping Cart -</b> Total Items:<?php total_items() ?>
Total Price: <?php total_price(); ?><a href="cart.php" style="color:yellow;">Go to Cart</a>
</span>
</div>
<?php $ip = getIp();
//echo $ip;
?>
<div id="products_box">
<form action="customer_register.php" method="post" enctype="multipart/form-data">
<table align="center" width="750">
<tr>
<td><h2>Create an Account</h2></td>
</tr>
<tr>
<td align="right">Customer Name:</td>
<td><input type="text" name="c_name" /></td>
</tr>
<tr>
<td align="right">Customer Email:</td>
<td><input type="email" name="c_email" /></td>
</tr>
<tr>
<td align="right">Customer Password:</td>
<td><input type="pass" name="c_pass" /></td>
</tr>
<tr>
<td align="right">Customer Image:</td>
<td><input type="file" name="c_image" /></td>
</tr>
<tr>
<td align="right">Customer Country:</td>
<td>
<select name="c_country">
<option>Select a Country </option>
<option>India</option>
<option>Israel</option>
<option>Nepal</option>
<option>Bhutan</option>
</select>
</td>
</tr>
<tr>
<td align="right">Customer City:</td>
<td><input type="text" name="c_city" /></td>
</tr>
<tr>
<td align="right">Customer Contact:</td>
<td><input type="text" name="c_contact" /></td>
</tr>
<tr>
<td align="right">Customer Address:</td>
<td><textarea cols="20" rows="20" name="c_address" /></textarea></td>
</tr>
<tr>
<td><input type="submit" name="register" value="Create Account" /></td>
</tr>
</table>
</form>
</div>
</div>
</div>
<div id="footer">
<h2 style="text-align:center; padding-top:30px;">© 2016 by Aviral Srivastava</h2>
</div>
</div>
</body>
</html>