-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomerpayment.php
144 lines (125 loc) · 5.49 KB
/
customerpayment.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
<!DOCTYPE html>
<html lang="en">
<head>
<?php
include('general.php');
include('customerpaymentscode.php');
session_start();
if( strcasecmp($_SERVER['REQUEST_METHOD'],"POST") === 0) {
$_SESSION['postdata'] = $_POST;
header("Location: ".$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']);
exit;
}
if( isset($_SESSION['postdata'])) {
$_POST = $_SESSION['postdata'];
unset($_SESSION['postdata']);
}
putLinks();
?>
<title>PAYMENTS - ADS IT CUSTOMER PAYMENT TRACKER</title>
</head>
<body>
<header class="site__header island">
<div class="wrap">
<span id="animationSandbox" style="display: block;" class="tada animated">
<h1 class="site__title mega text-center">CUSTOMER PAYMENTS</h1>
</span>
</div>
</header>
<form action="customerpayment.php" method="post" enctype="multipart/form-data">
<div class="row">
<div cass="col-lg-2"></div>
<div class="col-lg-8 text-right">
<a class="glyphicon glyphicon-home" style="font-size:30px;color:orange" href="/adspayments/"></a>
</div>
<div class="col-lg-2"></div>
</div>
<div class="row">
<div class="col-lg-4"></div>
<div class="form-group">
<div class="col-lg-4 text-right">
<!---->
<!--<div class="form-group">-->
<!--<label for="dtp_input2" class="col-md-2 control-label">Date Picking</label>-->
<div class="input-group date form_date" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
<input class="form-control" size="16" type="text" value="" readonly>
<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
</div>
<input type="hidden" id="dtp_input2" value="" />
<!--</div>-->
<!---->
<!--<div class="form-group">-->
<!--<label for="dtp_input3" class="col-md-2 control-label">Time Picking</label>-->
<div class="input-group date form_time" data-date="" data-date-format="hh:ii" data-link-field="dtp_input3" data-link-format="hh:ii">
<input class="form-control" size="16" type="text" value="" readonly>
<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
<span class="input-group-addon"><span class="glyphicon glyphicon-time"></span></span>
</div>
<input type="hidden" id="dtp_input3" value="" />
<!--</div>-->
<!---->
<!---->
<!--<label class="col-xs-3 control-label">Size</label>-->
<div class="selectContainer input-group">
<select class="form-control" name="customers" >
<option value="">Choose a customer</option>
<!-- <option value="s">Small (S)</option>
<?php //this lines shifted to db fetch in the below function ?>
-->
<?php
populateCustomers();
?>
</select>
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
</div>
<div class="input-group text-capitalize">
<input type="text" class="form-control text-capitalize" placeholder="invoice number..." />
<span class="input-group-addon glyphicon glyphicon-file"></span>
</div>
<form>
<div class="checkbox">
<label class="radio-inline"><input type="radio" value="radioCash">Cash</label>
<label class="radio-inline"><input type="radio" value="radioCheque">Cheque</label>
</div>
</form>
<!---->
<br />
<!--<div class="form-group"> -->
<button type="submit" class="btn btn-success" id="btnSave" name="Save">Save</button>
<button type="submit" class="btn btn-warning" id="btnRemove" name="Remove">Remove</button>
<button type="submit" class="btn btn-info" id="btnRefresh" name="Refresh" >Refresh</button>
<!--</div>-->
</div>
</div>
<div class="col-lg-4"></div>
</div>
<br />
<div class="row">
<div class="col-lg-4"></div>
<div class="col-lg-4">
<div class="col-lg-4"></div>
</div>
</div>
</form>
<?php
//session start moved to absolute begning of the php script. top of the file
if (isset($_POST['Save']))
{
//php code here
}
if (isset($_POST['Remove']))
{
//php code here
}
?>
<?php
//include('general.php');
putScripts();
putDatePickerScript();
stickfooter();
?>
<!-- put page scripts here-->
<!--put page scripts above-->
</body>
</html>