-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathaddCustomer.php
184 lines (151 loc) · 4.75 KB
/
addCustomer.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
<?php
require_once('session.php');
require_once('addNewCustomer.php');
?>
<!DOCTYPE html>
<html ng-app="myApp" ng-app lang="en">
<head>
<title>PC Solutions - Customer</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="description" content="Repair shop">
<meta name="keywords" content="books, lakeside, cork, shop, online">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="css/menu.css" />
<script src="js/modernizr.custom.js"></script>
<style>@import url(http://fonts.googleapis.com/css?family=Raleway:400,700); </style>
</head>
<body id="top" style="font-size: 62.5%;">
<!-- BEGIN Header -->
<header id="header-wrapper">
<div id="top-bar" class="clearfix">
<div id="top-bar-inner">
<!-- Search Bar by http://www.paulund.co.uk/create-a-slide-out-search-box -->
<div class="search_form">
<form action="customer-search.php" method="post">
<input type="text" name="search_box" id="search_box" placeholder="Search for a customer...">
</form>
</div>
<!-- Search Bar by http://www.paulund.co.uk/create-a-slide-out-search-box -->
<div class="topbar-right clearfix">
<ul class="clearfix">
<li class="login-user">
<a title="<?php echo $login_session; ?>" href="#">
<span class="icon"><i aria-hidden="true" class="icon-user"></i></span>
<?php echo $login_session; ?>
</a>
</li>
</ul>
<div class="log-out">
<!-- <p><a title="Sign out" href="#">Sign out</a></p> -->
<p>
<a href="logout.php" title="Sign out">
<span>Sign-out</span>
<span class="icon">
<i aria-hidden="true" class="icon-exit"></i>
</span>
</a>
</p>
</div>
</div>
</div>
</div>
<div class="full-shadow"></div>
</header>
<!-- END Header -->
<div class="main clearfix">
<!-- START OF NAVIGATION -->
<nav id="menu" class="nav">
<ul>
<li>
<a href="dashboard.php">
<span class="icon">
<i aria-hidden="true" class="icon-home"></i>
</span>
<span>Home</span>
</a>
</li>
<li class="active">
<a href="customer.php">
<span class="icon">
<i aria-hidden="true" class="icon-users"></i>
</span>
<span>Customers</span>
</a>
</li>
<li>
<a href="repairs.php">
<span class="icon">
<i aria-hidden="true" class="icon-hammer"></i>
</span>
<span>Repairs</span>
</a>
</li>
<li>
<a href="estimates.php">
<span class="icon">
<i aria-hidden="true" class="icon-sigma"></i>
</span>
<span>Estimates</span>
</a>
</li>
<li>
<a href="inventory.php">
<span class="icon">
<i aria-hidden="true" class="icon-barcode"></i>
</span>
<span>Inventory</span>
</a>
</li>
<li>
<a href="account.php">
<span class="icon">
<i aria-hidden="true" class="icon-user"></i>
</span>
<span>Account</span>
</a>
</li>
</ul>
</nav>
<!-- END OF NAVIGATION -->
<!--Breadcrumb -->
<div class="bread dash">
<div class="submenu">
<ul>
<li><a href="##" onClick="history.go(-1); return false;">Go Back</a></li>
<li id="add"><a href="addCustomer.php">Add Customer</a></li>
</ul>
</div>
<h3><a style="text-decoration: none;" href="customer.php">Customers</a></h3> <span style="font-size: 1.2em; font-weight: 500">\ Add Customer</span>
</div>
<!--Breadcrumb -->
<div class="floats">
<div class="full-widget">
<form class="form-4" action="" method="post">
<h1>Adding a new customer: </h1>
<span id="msg">
<?php
echo $success;
echo $error;
?>
</span>
<input type="text" name="surname" placeholder="Surname" required>
<input type="text" name="forename" placeholder="Forename" required>
<input type="text" name="town" placeholder="Town" required>
<input type="text" name="county" placeholder="County" required>
<input type="text" name="telephone" placeholder="Telephone/Mobile" required>
<input type="submit" name="submit" value="ADD NEW CUSTOMER">
</form>
</div>
</div>
<!-- END OF FLOATS-->
</div>
<!-- END OF MAIN-->
<!-- SCRIPT FOR THE MENU -->
<script src="js/menu.js"></script>
<!-- SCRIPT FOR THE MENU -->
</body>
</html>