-
Notifications
You must be signed in to change notification settings - Fork 3
/
viewproject.php
121 lines (101 loc) · 3.08 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
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
<?php
session_start();
include("header.php");
include("dbconnection.php");
if(isset($_SESSION[emid]))
{
$qresult=mysql_query("select * from project where branchid='$_SESSION[brid]'");
}
else
{
$qresult=mysql_query("select * from project");
}
?>
<div id="templatemo_content">
<div id="templatemo_content_left">
<div class="header_02">
<h2>View Project</h2>
</div>
<div class="header_02">
<?php
if(isset($_SESSION[loginid]))
{
?>
<strong><a href="addnewprojects.php">Add Project</a></strong><br />
</a>
<?php
}
?>
</div>
<table width="630" border="1">
<tr bgcolor="#FFFFCC">
<th width="127" scope="col">Project Name</th>
<th width="99" scope="col">Branch ID</th>
<th width="146" scope="col">Start Date</th>
<th width="109" scope="col">End Date</th>
<th width="115" scope="col">Project status</th>
</tr>
<?php
while($arrvarpro=mysql_fetch_array($qresult))
{
echo "<tr> <td> ";
if(isset($_SESSION[emid]))
{
echo "<a href='addnewprojects.php?proids=$arrvarpro[projectid]'>$arrvarpro[projectname]</a>";
}
else
{
echo "<a href='addnewprojects.php?proids=$arrvarpro[projectid]'>$arrvarpro[projectname]</a>";
}
$qresulta=mysql_query("select * from branch where branchid='$arrvarpro[branchid]'");
$arrowsbr = mysql_fetch_array($qresulta);
echo "</td>
<td> $arrowsbr[branchname]</td>
<td> $arrvarpro[startdate]</td>
<td> $arrvarpro[enddate]</td>
<td> $arrvarpro[projectstatus]</td>
</tr>";
}
?>
<tr>
<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(isset($_SESSION[emid]))
{
include("empsidebar.php");
}
else
{
include("adminsidebar.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");
?>