-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatementInput.php
98 lines (86 loc) · 2.63 KB
/
statementInput.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
<?php
session_start();
if ( $_SESSION['loggedin'] == true) {
?>
<!DOCTYPE html>
<html>
<head>
<?php include "header.php"; ?>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
<link rel="stylesheet" href="index.css">
<script defer src="pages.js"></script>
<!-- Links for jquery, table plugin, and .js file-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.2/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.13.2/js/jquery.dataTables.js"></script>
<script src="statementInput.js"></script>
<title>Statement Input</title>
<link
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
rel="stylesheet"
/>
<script src=
"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js">
</script>
</head>
<body>
<br>
<div class="container">
<div class="row">
<div class="goback">
<a href="index.php">Go Back</a>
</div>
<div class="text-center">
<h1 class="welcome">Statement Input</h1>
</div>
</div>
</div>
<br>
<form method="POST" action="" id="ReconInfo">
<div class="row">
<div class="col-sm-4">
</div>
<div class="col-sm-4">
<label for="BankAccount">Bank Account:</label><br>
<select class="form-control input-sm" id="BankAccount" name="BankAccount" required>
</select>
</div>
<div class="col-sm-4">
</div>
</div>
</form>
<!-- Div to hold the input table and not effect previous input functionality-->
<div id="tableDiv">
<button class="sb" id="addRow">Add new row</button>
<table id="inputTable" class="display" style="width:100%">
<thead>
<tr>
<th>Date</th>
<th>Debit</th>
<th>Credit</th>
<th>Trans. No</th>
<th>Memo</th>
<th>Account</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<button class="sb" id="sumbitButton">Submit</button>
<input type="hidden" id="clientID" name="clientID" value='<?php echo $_SESSION['ClientID'] ?>'>
</div>
<br>
</body>
</html>
<?php
}else{
header("Location: login.php");
exit();
}
?>