-
Notifications
You must be signed in to change notification settings - Fork 1
/
about.php
207 lines (163 loc) · 6 KB
/
about.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?php
error_reporting(0);
session_start();
if(!isset($_SESSION['emailadd']))
{
$mysession= " Empty";
}
else
{
$mysession = $_SESSION['emailadd'];
}
$mysession = $mysession;
$db = mysqli_connect("localhost", "root", "", "myshopdb");
$sql = "SELECT * FROM logininfo WHERE emailadd='$mysession'";
$records = mysqli_query($db, $sql);
$details = mysqli_fetch_assoc($records);
?>
<!DOCTYPE html>
<html>
<head>
<title>My Shop</title>
<link rel="stylesheet" href="css.css">
<link rel="stylesheet" href="css2.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
#right-nav-upper1{
width:48%;
height:50px;
z-index: 1;
float: right;
margin-top: 2px;
font-size: 17px;
margin-right: 10px;
border-radius: 10px;
position: relative;
background-color: darkgray;
padding: 10px;
}
#right-nav-upper2{
width:100%;
height:50px;
z-index: 1;
float: right;
display: none;
margin-top: -32px;
margin-left: -9px;
border-radius: 10px;
position: absolute;
background-color: darkgray;
padding: 10px;
}
#right-nav-upper1:hover #right-nav-upper2{
display: block;
background-color: darksalmon;
}
#login-as{
font-size: 20px;
margin-left: 28%;
margin-top: 6%;
}
#side-fix-div-hth{
width: 40%;
height: 580px;
position: fixed;
padding: 10px;
margin-top: 1%;
margin-left: 2%;
border-color: dimgrey;
border-width: 3px;
border-style: ridge;
float: left;
background-image: url(images/hth.jpg);
background-size: cover;
}
legend{
font-family: cursive;
font-weight: bold;
}
p{
text-align: justify;
font-family: sans-serif;
}
#content{
margin-left: 3%;
color: red;
font-family: inherit;
}
</style>
</head>
<body>
<div id="outer-box">
<header>
<h1 id="brand-name">myshop.com</h1>
<p id="tag-lines">India`s largest Online e-commerce website</p>
</header>
<div id="white-space-header"></div>
<nav>
<div id="left-nav">
<form method="post" action="search.php">
<input type="search" name="searchval" id="search-box" placeholder="Search the Products"/>
<input type="submit" name="search" value="Search Now" id="search-btn"/>
</form>
</div>
<div id="right-nav">
<div id="right-nav-upper1">
<i class="fa fa-user" style="font-size:20px; margin-right:10px; margin-left:10px;"></i>
<?php echo $details['uname']; ?> -- <?php echo $details['emailadd']; ?>
<div id="right-nav-upper2">
<span id="login-as"><a href="floginadmin.php">Login as Admin</a></span>
</div>
</div>
<div id="menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="access.php">Accesories</a></li>
<li><a href="offer.php">Offers Zone</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="fcontact.php">Contact Us</a></li>
<li><a href="logout.php">Logout</a></li>
<li><a href="cart.php"><i class="fa fa-shopping-cart" style="font-size:24px"><sup><span id="cartno">0</span></sup></i></a></li>
</ul>
</div>
</div>
</nav>
<div id="white-space-nav"></div>
<div id="side-fix-div-hth"></div>
<div id="product-desc-outer-contact">
<fieldset id="signup-fieldset">
<legend>About Us</legend>
<p>
MyShop is one stop shop of all competitive (Bank, SSC, Railways etc.) based educational needs. The main objective of MyShop is to provide students with a facility of buying online educational products & services related to different competitive exams.
<br>
The Grahame Gardner MyShop service is available to all customers who would like their staff or students to purchase their specific garments online. This service is particularly popular with Colleges and Universities. The MyShop service is designed to streamline the ordering processes for your organisation
<br>
Lorem ipsum dolor sit amet conse ctetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fug
<br>
Run from my home studio in East London and curated and everything-ed by me, the Not The Kind gallery & gift shop is home to a colourful selection of design-led gifts, affordable art, homeware, stationery and Super Cool Accessories For Life.
I only stock work by artists, designers and indie brands I truly love and enjoy. And so, with colours clashing and patterns splashing all over the place, I handpick items that, for whatever reason, make me feel giddy/excited/hysterical in the hope they might make you feel giddy/excited/hysterical too.
Every last item featured in the shop has been chosen very specifically - either because it has a story attached or because it has inspired one. I'll share the stories with you. I might write them, I might film them, sing them... And I can't promise there won't come a time when I feel I just have to dance them.
Not many people can say they started working in retail when they were 2 years old, but I can. Piss-poor customer service makes my toes bunch. That's why I promise to treat you nice.
<br>
<b>---<u>THANK YOU</u></b>
</p>
</fieldset>
</div>
</div>
<script>
<?php
$mysession2 = $_SESSION['emailadd'];
$db = mysqli_connect("localhost", "root", "", "myshopdb");
$sql = "SELECT * FROM carttable WHERE emailadd='$mysession2'";
$records = mysqli_query($db, $sql);
$x = 1;
while($row = $records->fetch_assoc())
{
$x = $x + 1;
}
?>
var a = document.getElementById("cartno");
a.innerHTML = <?php $x = $x-1; echo $x ?>;
</script>
</body>
</html>