1 <?php include("../model/LeaveApplicationModel.php"); ?>
2 <?php
3     
4     
if(isset($_SESSION['livApplicationId']))
5     {
6     ?>
7 <!DOCTYPE html>
8 <html>
9
10    <head>
11         
12         <meta charset=
"utf-8">
13         <meta http-equiv=
"X-UA-Compatible" content="IE=edge">
14         <meta name=
"viewport" content="width=device-width, initial-scale=1">
15         <meta name=
"description" content="">
16         <meta name=
"author" content="">
17
18         <title>Leave Application</title>
19
20         <!-- Custom CSS -->
21         <link href=
"../assets/css/application.css" rel="stylesheet">
22
23         <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
24         <!-- WARNING: Respond.js doesn
't work if you view the page via file:// -->
25         <!--[
if lt IE 9]>
26             <script src=
"https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
27             <script src=
"https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
28         <![endif]-->
29         
30         <script type=
"text/javascript">
31             window.print();
32         </script>
33         
34    </head>
35    
36    <body>
37       
38         <form>
39             
40             <table
class="tableNoOne">
41                 <tr>
42                     <td
class="tdStyleForImage"><img src="../assets/img/images/logo.png"></td>
43                     <td><center>
57, Shaheed shurawardi Anenue, Baridhara, Dhaka-1212<br><br><b>Leave Application</b></center></td>
44                     <td
class="tdStyleForImage"><img src="../assets/img/images/blank.png"></td>
45                 </tr>
46             </table>
47             <br>
48             <table
class="tableNoTwo">
49                 <tr>
50                 </tr>
51                 <tr>
52                 </tr>
53                 <tr>
54                     <td style=
"text-decoration: underline;"><b>To the filled by the Aplicant:</b></td>
55                     <td><span
class="alignLeft">Date: ... ... ... <?php echo date("Y/m/d"); ?></span></td>
56                 </tr>
57             </table>
58             <br>
59             <table
class="tableNoTwo">
60                 <tr>
61                     <td
class="tableNoThreeOne">
62                         <TABLE
class="tableNofour">
63                             
64                             <?php
65                                 
66                                 $empId = $_SESSION[
'livApplicationId'];
67                                 
//echo $empId;
68                                 
//unset($_SESSION['livApplicationId']);
69                                 
70                                 $objLeaveApplication =
new LeaveApplication();
71                                 $result = $objLeaveApplication->AppliedEmpInfo($empId);
72                                 
while($row = mysqli_fetch_array($result))
73                                 {
74                                     $applicantUserCodeNumber = $row[
'lEmployeeCodeNumberWhoApply'];
75                                 
76                             ?>
77                             
78                             <TR>
79                                 <TD
class="tdStyleNoUnderLine">Name</TD>
80                                 <TD>: <?php echo $row[
'eFirstName']." ".$row['eLastName'] ?></TD>
81                             </TR>
82                                 
83                             <TR>
84                                 <TD
class="tdStyleNoUnderLine">Code No.</TD>
85                                 <TD>: <?php echo $row[
'lEmployeeCodeNumberWhoApply'] ?></TD>
86                             </TR>
87                             
88                             <TR>
89                                 <TD
class="tdStyleNoUnderLine">Department</TD>
90                                 <TD>: <?php echo $row[
'dptName'] ?></TD>
91                             </TR>
92                             <TR>
93                                 <TD
class="tdStyleNoUnderLine">Designation</TD>
94                                 <TD>: <?php echo $row[
'desiDesignationName'] ?></TD>
95                             </TR>
96                        </TABLE>
97                     </td>
98                     <td
class="tableNoThreeTwo">
99                         <TABLE
class="tableNofour">
100                             <TR>
101                                 <TD
class="tdStyleNoUnderLine">Period of Days</TD>
102                                 <TD>: <?php echo $row[
'lTotalLeaveDays'] ?> Days</TD>
103                             </TR>
104                             <TR>
105                                 <TD
class="tdStyleNoUnderLine">From : <?php echo $row['lLeaveFromDate'] ?></TD>
106                                 <TD>To : <?php echo $row[
'lLeaveToDate'] ?></TD>
107                                 
108                             </TR>
109                             <TR>
110                                 <TD
class="tdStyleNoUnderLine">Reasons : </TD>
111                                 <TD>: <?php echo $row[
'lLeaveReason'] ?></TD>
112                             </TR>
113                             <TR>
114                             </TR>
115                        </TABLE>
116                     </td>
117                 </tr>
118             </table>
119             <br>
120             <table
class="tableNoTwo">
121                 <tr>
122                     <td
class="tableNoThreeOne">
123                         <TABLE
class="tableNofour">
124                             <TR>
125                                 <TD
class="tdStyleNoUnderLine">Description of Leave<br>(Please Mark)</TD>
126                                 <TD
class="tdStyleNoUnder">: Casual Leave</TD>
127                                 <TD>
128                                 <?php
129                                 
if($row['lLeaveId'] == 1)
130                                 { ?>
131                                     <img src=
"../assets/img/images/boxClicked.png">
132                                 </TD>
133                                 <?php
134                                 }
135                                 
else
136                                 { ?>
137                                 <img src=
"../assets/img/images/box.png"></TD>
138                                 <?php
139                                 }
140                                 ?>
141                             </TR>
142                             <TR>
143                                 <td rowspan=
"3" ></td>
144                                 <TD
class="tdStyleNoUnder">: Sick Leave</TD>
145                                 <TD>
146                                 <?php
147                                 
if($row['lLeaveId'] == 2)
148                                 { ?>
149                                     <img src=
"../assets/img/images/boxClicked.png">
150                                 </TD>
151                                 <?php
152                                 }
153                                 
else
154                                 { ?>
155                                 <img src=
"../assets/img/images/box.png"></TD>
156                                 <?php
157                                 }
158                                 ?>
159                             </TR>
160                             <TR>
161                                 <TD
class="tdStyleNoUnder">: Earn Leave</TD>
162                                 <TD>
163                                 <?php
164                                 
if($row['lLeaveId'] == 3)
165                                 { ?>
166                                     <img src=
"../assets/img/images/boxClicked.png">
167                                 </TD>
168                                 <?php
169                                 }
170                                 
else
171                                 { ?>
172                                 <img src=
"../assets/img/images/box.png"></TD>
173                                 <?php
174                                 }
175                                 ?>
176                             </TR>
177                             <TR>
178                                 <TD
class="tdStyleNoUnder">: Maternity Leave</TD>
179                                 <TD>
180                                 <?php
181                                 
if($row['lLeaveId'] == 4)
182                                 { ?>
183                                     <img src=
"../assets/img/images/boxClicked.png">
184                                 </TD>
185                                 <?php
186                                 }
187                                 
else
188                                 { ?>
189                                 <img src=
"../assets/img/images/box.png"></TD>
190                                 <?php
191                                 }
192                                 ?>
193                             </TR>
194                        </TABLE>
195                     </td>
196                     <td
class="tableNoThreeTwo">
197                         <TABLE
class="tableNofour">
198                             <TR>
199                                 <td
class="tdStyle" rowspan="4" ></td>
200                                 <TD><br></TD>
201                             </TR>
202                             <TR>
203                                 <TD>&nbsp;</TD>
204                             </TR>
205                             <TR>
206                                 <TD>&nbsp;</TD>
207                             </TR>
208                             <TR>
209                                 <TD><span
class="alignLeft">------------------------------<br><center>Applicant Signature</center><span></TD>
210                             </TR>
211                        </TABLE>
212                     </td>
213                 </tr>
214             </table>
215             <br>
216             <table
class="tableNoTwo">
217                 <tr>
218                     <td
class="tableNoThreeOne">
219                         <TABLE
class="tableNofour">
220                             <TR>
221                                 <TD
class="tdStyle" colspan="2">Contact Address/Telephone number during leave</TD>
222                                 
223                             </TR>
224                             <TR>
225                                 <TD
class="tdStyleNoUnderLine">Personal</TD>
226                                 <TD>: <?php echo $row[
'ePhoneNumberPersonal'] ?></TD>
227                             </TR>
228                             <TR>
229                                 <TD
class="tdStyleNoUnderLine">Office</TD>
230                                 <TD>: <?php echo $row[
'ePhoneNumberOffice'] ?></TD>
231                             </TR>
232                             <TR>
233                                 <TD
class="tdStyleNoUnderLine">Address</TD>
234                                 <TD>: <?php echo $row[
'lEmployeeImargencyAddress'] ?></TD>
235                             </TR>
236                             <?php
237                                 }
238                                 ?>
239                        </TABLE>
240                     </td>
241                     <td
class="tableNoThreeTwo">
242                         
243                     </td>
244                 </tr>
245             </table>
246             <br>
247             <table
class="tableNoTwo">
248                 <tr>
249                     <td
class="tableNoThreeOne">
250                         <TABLE
class="tableNofour">
251                             
252                             <?php
253                                 
254                                 $objLeaveApplication =
new LeaveApplication();
255                                 $result = $objLeaveApplication->AppliedEmpAlternativeEmpDetailsInfo($empId);
256                                 
while($row = mysqli_fetch_array($result))
257                                 {
258                                 
259                             ?>
260                             
261                             <TR>
262                                 <TD
class="tdStyle" colspan="2">Person to look after my desk during my absence</TD>
263                                 
264                             </TR>
265                             <tr>
266                                 <TD>&nbsp;</TD>
267                             </tr>
268                             
269                             <TR>
270                                 <TD
class="tdStyleNoUnderLine">Name</TD>
271                                 <TD>: <?php echo $row[
'eFirstName']." ".$row['eLastName'] ?></TD>
272                             </TR>
273                             <TR>
274                                 <TD
class="tdStyleNoUnderLine">Designation</TD>
275                                 <TD>: <?php echo $row[
'dptName'] ?></TD>
276                             </TR>
277                             <TR>
278                                 <TD
class="tdStyleNoUnderLine">Department</TD>
279                                 <TD>: <?php echo $row[
'desiDesignationName'] ?></TD>
280                             </TR>
281                             <?php
282                                 }
283                                 ?>
284                        </TABLE>
285                     </td>
286                     <td
class="tableNoThreeTwo">
287                         <TABLE
class="tableNofour">
288                             <TR>
289                                 <td
class="tdStyle" rowspan="4" ></td>
290                                 <TD><br></TD>
291                             </TR>
292                             <TR>
293                                 <TD>&nbsp;</TD>
294                             </TR>
295                             <TR>
296                                 <TD>&nbsp;</TD>
297                             </TR>
298                             <TR>
299                                 <TD><span
class="alignLeft">------------------------------<br><center>Signature</center><span></TD>
300                             </TR>
301                        </TABLE>
302                     </td>
303                 </tr>
304             </table>
305             <br>
306             <table
class="tableNoTwo">
307                 <tr>
308                     <td
class="tableNoThreeOne">
309                         <TABLE
class="tableNofour">
310                             
311                             <TR>
312                                 <TD>&nbsp;</TD>
313                             </TR>
314                             <TR>
315                                 <TD><span
class="alignRight">------------------------------<br><center>Recommended by</center><span></TD>
316                                 <td
class="tdStyle" rowspan="4" ></td>
317                             </TR>
318                        </TABLE>
319                     </td>
320                     <td
class="tableNoThreeTwo">
321                         <TABLE
class="tableNofour">
322                             <TR>
323                                 <td
class="tdStyle" rowspan="4" ></td>
324                                 <TD><br></TD>
325                             </TR>
326                             <TR>
327                                 <TD><span
class="alignLeft">------------------------------<br><center>Head of Department</center><span></TD>
328                             </TR>
329                        </TABLE>
330                     </td>
331                 </tr>
332             </table>
333             
334             <hr
class="hrLength">
335             
336             <b><center>For office use only</center></b></p>
337             
338             
339             
340             <table
class="tableNoTwo">
341                 <tr>
342                     <td
class="tableNoThreeOne">
343                         <TABLE
class="tableNoSix">
344                             <TR>
345                                 <td>Leave Name</td>
346                             </TR>
347                             <TR>
348                                 <TD>Leave due</TD>
349                             </TR>
350                             <TR>
351                                 <TD>Leave Requested
for</TD>
352                             </TR>
353                             <TR>
354                                 <TD>Leave Balance</TD>
355                             </TR>
356                        </TABLE>
357                     </td>
358                     
359                     <td
class="tableNoThreeOne">
360                         <TABLE
class="border">
361                             <TR>
362                                 <td
class="border">CL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
363                                 <td
class="border">SL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
364                                 <td
class="border">EL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
365                                 <td
class="border">ML&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
366                                 <td
class="border">Total&nbsp;&nbsp;&nbsp;</td>
367                             </TR>
368                             <TR>
369                                 <td
class="border">&nbsp;</td>
370                                 <td
class="border">&nbsp;</td>
371                                 <td
class="border">&nbsp;</td>
372                                 <td
class="border">&nbsp;</td>
373                                 <td
class="border">&nbsp;</td>
374                             </TR>
375                             <TR>
376                                 <td
class="border">&nbsp;</td>
377                                 <td
class="border">&nbsp;</td>
378                                 <td
class="border">&nbsp;</td>
379                                 <td
class="border">&nbsp;</td>
380                                 <td
class="border">&nbsp;</td>
381                             </TR>
382                             <TR>
383                                 <td
class="border">&nbsp;</td>
384                                 <td
class="border">&nbsp;</td>
385                                 <td
class="border">&nbsp;</td>
386                                 <td
class="border">&nbsp;</td>
387                                 <td
class="border">&nbsp;</td>
388                             </TR>
389                        </TABLE>
390                         
391                     </td>
392                     
393                     <td
class="tableNoThreeTwo">
394                         
395                     </td>
396                     
397                 </tr>
398             </table>
399             <br>
400             <br>
401             <table
class="tableNoTwo">
402                 <tr>
403                     <td
class="tableNoThreeOne">
404                         <TABLE
class="tableNofour">
405                             
406                             <TR>
407                                 <TD><span
class="alignRight">------------------------------<br><center>HR Department</center><span></TD>
408                                 
409                             </TR>
410                        </TABLE>
411                     </td>
412                     <td
class="tableNoThreeTwo">
413                         <TABLE
class="tableNofour">
414                             
415                             <TR>
416                                 <TD><span
class="alignLeft">------------------------------<br><center>Approved By</center><span></TD>
417                             </TR>
418                        </TABLE>
419                     </td>
420                 </tr>
421             </table>
422             
423         </form>
424    
425    </body>
426    
427 <html>
428 <?php
429     
430     unset($_SESSION[
'livApplicationId']);
431     
432     }
433     
else
434     {
435         header(
"Location:../view/LeaveApplication.php");
436     }
437 ?>


Gõ tìm kiếm nhanh...