-
Notifications
You must be signed in to change notification settings - Fork 13
/
viewproject.php
94 lines (76 loc) · 2.05 KB
/
viewproject.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
<?php include('header.php');?>
<?php
mysql_connect("localhost","root","");
mysql_select_db("hr");
$s="SELECT * FROM `project` WHERE 1";
$resource=mysql_query($s);
$count=mysql_num_rows($resource);
echo "<center><h1>HRMS PROJECT DETAILS</h1></center>";
echo"<table border=1 >";
echo "<tr>";
echo "<th> Project Id</th>";
echo "<th> Project Name</th>";
echo "<th> Project Manager</th>";
echo "<th> Project Location</th>";
echo "<th> EDIT</th>";
echo "<th> DELETE</th>";
echo "</tr>";
while($row=mysql_fetch_row($resource))
{
echo "<tr>";
echo "<td> ".$row[0]."</td>";
echo "<td> ".$row[1]."</td>";
echo "<td>".$row[2]."</td>";
echo "<td>".$row[3]."</td>";
echo "<td><a href='editproject.php?id=".$row[0]."' color=red>EDIT</a></td>";
echo "<td><a href='pdelete.php?id=".$row[0]."' color=red>DELETE</a></td>";
echo "</tr>";
}
?>
<!DOCTYPE html>
<html>
<head><title>Project Info</title>
<style>
body{
font-family: sans-serif;
font-size: 10pt;
background-image: url(HR/image/img.jpg);
background-size:
cover;
background-attachment: fixed;
}
table
{
width: 80%;
}
table,th,td
{
border: 1px solid black;
border-collapse: collapse;
opacity: 0.95;
margin-left: 50px;
align-items: center;
}
th,td
{
padding: 10px;
text-align: center;
}
th
{
background-color: #a70000;
color: white;
}
tr:nth-child(even)
{
background-color: #e8e8e8;
}
tr:nth-child(odd)
{
background-color: #B0C4DE;
}
</style>
</head>
</html>
<br>
<?php include('footer.php');?>