-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathabout.php
196 lines (161 loc) · 8.54 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
<?php
session_start();
require("conf.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
<title>SimpleAuction - About Us</title>
<!-- Include CSS -->
<link href="./css/reset.css" rel="stylesheet" type="text/css" />
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/slimbox2.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Oswald|Droid+Sans:400,700' rel='stylesheet' type='text/css' />
<link href="./css/start/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
<!-- Include Scripts -->
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/jquery.cycle.lite.min.js"></script>
<script type="text/javascript" src="./js/jquery.pngFix.pack.js"></script>
<script type="text/javascript" src="./js/jquery.color.js"></script>
<script type="text/javascript" src="./js/hoverIntent.js"></script>
<script type="text/javascript" src="./js/superfish.js"></script>
<script type="text/javascript" src="./js/slimbox2.js"></script>
<script type="text/javascript" src="./js/slides.min.js"></script>
<script type="text/javascript" src="./js/custom.js"></script>
<script type="text/javascript" src="./js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="./js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#dialog-login").dialog("destroy");
$("#login").click(function(){
$("#dialog-login").dialog({
height: 200,
width: 200,
modal: true,
buttons: {
"Sign In": function() {
$("#login-form").submit();
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
return false;
});
item_display();
});
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="MM_preloadImages('images/buttons/login_hover.png')">
<!-- START HEADER -->
<div id="header">
<div class="container">
<div id="primary-nav" class="header-right">
<ul class="sf-menu">
<li class="current"><a href="./index.php">Home</a></li> <li><a href="./ended.php">Ended Auctions</a></li>
<li><a href="./about.php">About Us</a></li>
<?php
if (isset($_SESSION['username']))
echo '<li id="member"><a href="./member.php">Member</a></li>';
?>
</ul>
</div>
<!-- LOGO -->
<a href="./index.php"><img src="./images/logo.png" border="0" alt="Simple Auction" /></a>
<br class="clear" />
</div>
</div><!-- END HEADER -->
<!-- HEADER DIVIDER -->
<div id="head-break">
<div class="outer">
<div id="login-reg">
<?php
if(isset($_SESSION['username'])) {
$username = $_SESSION['username'];
$sql = "SELECT user_Name, user_Credit FROM users WHERE user_Name = '$username'";
$result = mysqli_query($connect, $sql);
$row = mysqli_fetch_array($result);
echo "<h6>Weclome back , <b>".$row[0]."</b></h6>";
echo "<h6>You have : <b>".$row[1]." Simoleons</b> in your account. </h6>";
?>
<a id="logout" href="./logout.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('logout_button','','images/buttons/logout_hover.png',1)"><img src="images/buttons/logout.png" name="logout_button" width="100" height="34" border="0" id="logout_button" /></a>
<?
}
else {
?>
<a id="login" href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('login_button','','images/buttons/login_hover.png',1)"><img src="images/buttons/login.png" name="login_button" width="100" height="34" border="0" id="login_button" /></a>
<a id="register" href="./register.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('signup_button','','images/buttons/signup_hover.png',1)"><img src="images/buttons/signup.png" name="signup_button" width="100" height="34" border="0" id="signup_button" /></a>
<?
}
?>
</div>
</div>
</div><!-- END HEADER DIVIDER -->
<!-- START MAIN CONTAINER -->
<div class="centerBox">
<div class="container">
<div id="dialog-login" style="display:none" title="Login Box">
<form id="login-form" action="login.php" method="POST">
<fieldset>
<label for="username">Username</label><br />
<input type="text" name="username" id="username" class="text ui-widget-content ui-corner-all" /><br />
<label for="password">Password</label><br />
<input type="password" name="password" id="password" class="text ui-widget-content ui-corner-all" />
</fieldset>
</form>
</div>
<h1> About Us </h1>
<!-- START Auction Item CONTAINER -->
<div id="itemContain" class="itemContain">
<br class="clear" /><br />
<p style="font-size: 16px">Do you ever want to have a laptop at an affordable price? Of, let's say $50? (I know, you must be thinking it is impossible, right..?) Not anymore! with this website, the one we proudly call SimpleAuction.</p>
<p style="font-size: 16px"><br />
Thinking that it would be troublesome to register and to get the actual bidding? And it would incur costs to just be registered to the website? Think again, the SimpleAuction just needs to record your user ID, password, email, phone number and... Voila! Your account is made, without the hassle, and completely gratis.<br />
Plus don't forget the complimentary 10 bidding tokens (we proudly call it: Simoleons) we give you just for registering!<br />
You can win as many items as you want! That's the beauty of our site!</p>
<p> </p>
<p style="font-size: 16px">Firstly we welcome you to our website Simple Auction. We have created this site basically for your benefits by providing you an opportunity to win items by bidding. This Simple Auction website is a auction site where guests can become a member by signing up in our site and start to bid for items that they wish to bid for from the available auction items. At the time of registration every member receive free 10 simoleons in their account which they can use it to bid for auction item. Every time when a member bid for an item the bidding cost increases and the members simoleons reduces. </p>
</div>
<!-- END Auction Item CONTAINER -->
</div><!-- END MAIN CONTAINER -->
<br class="clear" />
<br class="clear" />
<br class="clear" />
</div>
<!-- START FOOTER -->
<div id="footer">
<div class="container">
<div id="footer-right">
Created for CP2013 - Software Engineering Project<br />
<strong>Team Members</strong><br />
<a href="http://www.facebook.com/phong.thien" class="social facebook">Nguyen Dang Quang</a> <a href="http://www.facebook.com/profile.php?id=1012557458" class="social facebook">Aldo Gushary</a> <a href="http://www.facebook.com/sarathboss" class="social facebook">Sarath Amirtha</a> <a href="http://www.facebook.com/dill.m" class="social facebook">Dillan Martin</a> <a href="http://www.facebook.com/profile.php?id=685749024" class="social facebook">Hansel Gunarto</a>
</div>
<br class="clear" />
</div>
</div><!-- END FOOTER -->
</body>
</html>
<?
mysqli_close();
?>