-
Notifications
You must be signed in to change notification settings - Fork 0
/
createCustomerForm_1.php
executable file
·68 lines (51 loc) · 2.03 KB
/
createCustomerForm_1.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
<?php
//files used by this page
require_once 'utils/functions.php';
require_once 'classes/User.php';
require_once 'classes/Customer.php';
require_once 'classes/DB.php';
require_once 'classes/CustomerTableGateway.php';
start_session();
//kicks the user out of this page if they are not logged in
if (!is_logged_in())
{
header("Location: login_form.php");
}
require 'utils/formFiller.php';
?>
<!DOCTYPE html>
<!--
John Kenny N00145905
-->
<html>
<head>
<meta charset="UTF-8">
<title>Asset Management Add Customer</title>
<!--CSS stylesheets used my css is the last style to give it first preference-->
<?php require 'utils/styles.php'; ?>
<!-- <script src="validateCustomer.js"></script>-->
</head>
<body>
<?php require 'functions/firstForm.php'; ?>
<div class="container container_12">
<!-- id to be used by js name by php-->
<h1 class="top center">Enter the Customer details</h1>
<!--
This form is sent to the valiate.php page to check for errors
if errors are found they will be returned and placed into the errors
div relevant to the field. Correct fields will displayed so the user
will not have to reenter the data.
If all is correct valiate.php will call a script to add this element
to the branch table
-->
<form action="createCustomer.php" method="post" class="pure-form">
<?php require 'forms/customerForm.php'; ?>
<div class ="submitter top grid_3 prefix_4">
<input type="submit" id="submit" name ="sumbit" value ="submit" class="myButton">
</div><!-- close submit button-->
</form>
<div class="clear"></div>
<?php require 'utils/footer.php'; ?>
</div><!--close container-->
</body>
</html>