-
Notifications
You must be signed in to change notification settings - Fork 0
/
order_mandatory_terms.php
57 lines (49 loc) · 1.56 KB
/
order_mandatory_terms.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
<?php
session_start();
include("header.php");
function return_account_setup($msg) {
$_SESSION['error_page2'] = $msg;
$_SESSION['supp_name'] = $_POST['supp_name'];
$_SESSION['supp_phone'] = $_POST['supp_phone'];
$_SESSION['supp_email'] = $_POST['supp_email'];
$_SESSION['supp_location'] = $_POST['supp_location'];
header("location: staff_setup.php");
}
if (isset($_POST['support'])){
foreach ($_POST as $key => $value) {
$_SESSION['post'][$key] = $value;
}
}
else if (isset($_POST['supp_name'])){
if (empty($_POST['supp_name'])) {
return_account_setup('Please fill in a name, or choose "I\'m not sure".');
}
else {
foreach ($_POST as $key => $value) {
$_SESSION['post'][$key] = $value;
}
}
}
else {
if (empty($_SESSION['error_page3'])) {
return_account_setup('Please fill in a name, or choose "I\'m not sure".');
}
}
?>
<div class="wrapper">
<header class="table">
<div class="btn_left table_cell v_middle">
<span class="btn_back d_inline_block"> </span>
</div>
<div class="logo table_cell v_middle"><a href="index.php"><img src="img/logo.svg" /></a></div>
<div class="btn_right table_cell v_middle"></div>
</header>
<div class="intro a_center">
<p>Every court order has the following mandatory terms. <br />You must follow all of the below.</p>
</div>
<div class="content mandatory">
<?php include("mandatory_terms_details.php"); ?>
<a class="btn_next d_block" href="add_conditions.php">Next</a>
</div>
</div>
<?php include("footer.php"); ?>