This repository has been archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
personal.php
executable file
·159 lines (142 loc) · 6.14 KB
/
personal.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
<?php include "session.php"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>Front Page</title>
<!--Styles-->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 15px;
padding-bottom: 20px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<!-- Icons -->
<link rel="shortcut icon" href="http://twitter.github.com/bootstrap/assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<!--Start of Center Section-->
<div id="center-section">
<!--Start of Navigation Bar-->
<div class="navbar navbar-inverse ">
<div class="navbar-inner">
<div class="container-nav">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!--Links to Account Login and Cart-->
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
<ul class="nav pull-right">
<?php include './models/Account.php';
$db = new DatabaseLink();
$a = Account::dbGet($_SESSION['accountId'], $db);
if ($a == false) {
echo("<a class=\"brand\" href=\"login.php\">Login/Create Account</a>");
} else {
echo("<a class=\"brand\" href=\"accountmgr.php\">Hello, " . $a->fields['first_name'] . "!</a>");
}
?>
<a class="brand" href="mycart.php">My Cart</a>
</ul>
</p>
</div>
<!--Search Bar-->
<form class="form-search" action="search.php" method="post" name="Search">
<div style="text-align:left">
<input type="text" name="fsearch" maxlength="100" class="span6 input-large search-query">
<button type="submit" class="btn btn-primary">Search</button>
</div>
</form><!--End of Search Bar-->
</div>
</div>
</div><!--End of Navigation Bar-->
<!--Start of the Center Section below the Navigation Bar-->
<div class="container-center">
<div class="row-fluid">
<!--Logo Here-->
<a class="brand" href="index.php"> <img src="assets/img/logo.png"></a>
</div>
<!--Start of Sidebar-->
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Product Categories</li>
<?php include 'sidebar.php';?>
</ul>
</div><!--End of Sidebar-->
</div><!--Span-->
<!--Start of Main Section-->
<div class="span9">
<div class="container-main">
<?php
//make sure the passwords match
if ( isset($_GET['passerr']) )
echo("<p style=\"color:red\">Passwords must match</p>");
//make sure the email is unique
else if ( isset($_GET['emailerr']) )
echo("<p style=\"color:red\">Email already exists</p>");
?>
<h3>Update personal information</h3>
<!-- update personal info form -->
<form class="form-horizontal" action="info.php" method="post" name="register">
<div class="control-group">
<label class="control-label" for="fname">First Name</label>
<div class="controls">
<input type="text" name="fname" placeholder="First Name">
</div>
</div>
<div class="control-group">
<label class="control-label" for="lname">Last Name</label>
<div class="controls">
<input type="text" name="lname" placeholder="Last Name">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputEmail">Email</label>
<div class="controls">
<input type="text" name="inputEmail" placeholder="Email">
</div>
</div>
<div class="control-group">
<label class="control-label" for="phone">Phone Number</label>
<div class="controls">
<input type="text" name="phone" placeholder="Phone Number">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div><!--End of Main Section-->
</div><!--Span-->
</div><!--End of row containing sidebar and main section-->
<hr><!--Breakline before Footer-->
<!--Footer-->
<footer>
<p><a href="contact.php">Contact Us</a></p>
</footer>
</div><!--End of the Center Section below the Navigation Bar-->
</div><!--End of Center Section-->
<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery-1.8.2.min.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</body></html>