-
Notifications
You must be signed in to change notification settings - Fork 0
/
template1f.php
156 lines (145 loc) · 6.23 KB
/
template1f.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
<?php
require("lib.php");
$today = new DateTime("today");
?>
<div class="form1">
<table>
<tr>
<td><?php echo request("company"); ?></td>
<td class="t1" rowspan="2">Earnings statement</td>
</tr>
<tr>
<td><?php echo request("company_address"); ?></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
<table class="border2">
<thead>
<tr class="header1 border2all">
<td style="width: 370px;">Employee name / address </td>
<td style="width: 130px;">SSN</td>
<td style="width: 180px;">REPORTING PERIOD</td>
<td style="width: 130px;">PAY DATE</td>
<td style="width: 130px;">#<?php echo request("stub_number"); ?></td>
</tr>
</thead>
<tbody>
<tr>
<td class="border2all">
<?php echo request("employee_name"); ?><br />
<?php echo request("employee_address"); ?>
</td>
<td class="border2all center" ><?php echo request("ssn"); ?></td>
<td class="border2all center" ><?php echo request("reporting_period"); ?></td>
<td class="border2all center" ><?php echo request("pay_date"); ?></td>
<td class="border2all center" >Employee #<br /><?php echo request("employee_id"); ?></td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr class="border2LR low t2">
<td>Income</td>
<td>RATE</td>
<td>HOURS</td>
<td>CURRENT PAY</td>
<td>DEDUCTIONS</td>
<td>TOTAL</td>
<td>YTD TOTAL</td>
</tr>
<tr class="gray border2all top" style="height: 300px;" >
<td>Gross Earnings</td>
<td><?php echo request("rate"); ?></td>
<td><?php echo request("hours"); ?></td>
<td class="border2R">448.00</td>
<td><span class="t2">Statutory Deductions</span>
<br />Fica - Medicare
<br />Fica - Social Security
<br />Federal Tax
<br /><span id="stax" <?php echo request("fica_stax") ? '': 'style="visibility: hidden;"'; ?> >State Tax W/H</span>
<br /><span id="sditax" <?php echo request("fica_sditax") ? '': 'style="visibility: hidden;"'; ?> >CALIFORNIA SDI TAX</span>
</td>
<td>
<br /><?php echo request("fica_mc"); ?>
<br /><?php echo request("fica_ss"); ?>
<br /><?php echo request("fica_tax"); ?>
<br /><?php echo request("fica_stax"); ?>
<br /><?php echo request("fica_sditax"); ?>
</td>
<td>
<br /><?php echo request("ficay_mc"); ?>
<br /><?php echo request("ficay_ss"); ?>
<br /><?php echo request("ficay_tax"); ?>
<br /><?php echo request("ficay_stax"); ?>
<br /><?php echo request("ficay_sditax"); ?>
</td>
</tr>
</tbody>
</table>
<table class="border2LR border2bottom gray2 gray2">
<tbody>
<tr class="low center t2">
<td>YTD GROSS</td>
<td>YTD DEDUCTIONS</td>
<td>YTD NET PAY</td>
<td>TOTAL</td>
<td>DEDUCTIONS</td>
<td>NET PAY</td>
</tr>
<tr class="low center">
<td><?php echo request("ytd_gross"); ?></td>
<td><?php echo request("ytd_deductions"); ?></td>
<td><?php echo request("ytd_net_pay"); ?></td>
<td><?php echo request("total"); ?></td>
<td><?php echo request("deductions"); ?></td>
<td><?php echo request("net_pay"); ?></td>
</tr>
</tbody>
<?php if(request("deposit") == "on") { ?>
<div id="deposit-slip" style="display: block;">
<table class="border top-radius bottom-radius minipad grays" style="height: 120px;">
<tbody>
<tr>
<td style="padding: 20px 10px 0px 10px; width: 60%; text-align: left; vertical-align:bottom; ">
<div style="border: 2px solid #09e; padding: 5px; width: 100%; ">
<span style="font-size: 16px; font-weight:600;" class="blues">PAY </span>
<span style="font-size: 16px; font-weight:600;" class="dep_pay">....</span>
</div>
<table>
<tr>
<td style="width: 150px;" class="blues">TO THE ORDER OF:</td>
<td>
<span class="depo_en" >Employee name</span><br />
<span class="depo_esa">Employee street address</span>
</td>
</tr>
</table>
</td>
<td style="padding-right:10px;" >
<table>
<tr class="blues" style="border-bottom: 1px solid">
<td style="border-right: 1px solid">CHECK DATE</td>
<td>CHECK NUMBER</td>
</tr>
<tr class="grays">
<td><span id="dep_paydate"><?php echo $today->format("m/d/Y"); ?></span></td>
<td><span id="dep_stub_number"><?php echo request("stub_number") ?></span></td>
</tr>
<tr>
<td colspan="2" style="border-bottom: 2px solid #09c; ">
<span class="blues">THIS IS NOT A CHECK</span><br />
<span class="grays" style="border: 1px solid;">NON-NEGOTIABLE</span><br />
<span class="blues">VOID</span>
<td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<?php } ?>
</div>