-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathviewsalary.php
More file actions
114 lines (93 loc) · 2.92 KB
/
Copy pathviewsalary.php
File metadata and controls
114 lines (93 loc) · 2.92 KB
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
<?php
session_start();
include("header.php");
include("dbconnection.php");
if(isset($_SESSION[emid]))
{
$qresult=mysql_query("select * from salary where empid='$_SESSION[emid]'");
}
else
{
$qresult=mysql_query("select * from salary");
}
?>
<div id="templatemo_content">
<div id="templatemo_content_left">
<div>
<p>View Salary<br />
</p>
</div>
<table width="500" border="1">
<tr>
<th scope="col">Employee ID</th>
<th scope="col">Branch ID</th>
<th scope="col">Month & year</th>
<th scope="col">Basic Salary</th>
<th scope="col">Bonus Salary</th>
<th scope="col">PF</th>
<th scope="col">HRA</th>
<th scope="col">LIC</th>
<th scope="col">Total Salary</th>
</tr>
<?php
while($arrvarsal=mysql_fetch_array($qresult))
{
echo " <tr>
<td> $arrvarsal[empid]</td>
<td> $arrvarsal[branchid]</td>
<td> $arrvarsal[month]$arrvar[year]</td></td>
<td> $arrvarsal[basicsalary]</td>
<td> $arrvarsal[bonussalary]</td>
<td> $arrvarsal[pf]</td>
<td> $arrvarsal[hra]</td>
<td> $arrvarsal[lic]</td>
<td> $arrvarsal[totalsalary]</td>
</tr>";
}
?>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
<div class="rc_btn_02"></div>
<div class="margin_bottom_40"></div>
<div class="cleaner"></div>
</div> <!-- end of content left -->
<div id="templatemo_content_right">
<div class="content_right_section">
<?php
if($_SESSION["logintype"] = "Admin")
{
include("adminsidebar.php");
}
else
{
include("empsidebar.php");
}
?>
<div class="news_section">
<div class="news_image"></div>
<div class="news_content">
<div class="news_title"></div>
</div>
</div>
<div class="news_section">
<div class="news_content"> </div>
</div>
<div class="margin_bottom_20"></div>
</div>
</div> <!-- end of content right -->
<div class="cleaner"></div>
</div>
<?php
include("footer.php");
?>