-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject_Request.php
More file actions
166 lines (145 loc) · 4.92 KB
/
Copy pathProject_Request.php
File metadata and controls
166 lines (145 loc) · 4.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
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
157
158
159
160
161
162
163
164
165
166
<?php
require "./db_connection.php";
$useremail = $_COOKIE['useremail'];
$query1 = "SELECT * FROM Employee WHERE Email = '$useremail'";
$result1 = $conn->query($query1);
$row1 = $result1->fetch_assoc();
$Organization_Name = $row1['Organization_Name'];
// $AdminLevel = $row1['AdminLevel'];
$AdminLevel = $row1['AdminLevel'];
$query = "SELECT * FROM Project WHERE Status= 'pending' AND Organization_Name = '$Organization_Name'";
$result = $conn->query($query);
$query_1 = "SELECT * FROM Organization Where Organization_Name='$Organization_Name'";
$result_1 = $conn->query($query_1);
$row_1 = $result_1->fetch_assoc();
$Approval_status = $row_1['Access_Level'];
echo $Approval_status;
// Organization_id
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css">
<link rel="stylesheet" href="Styles\All.css" />
<link rel="stylesheet" href="Styles\Typography.css" />
<title>Logs</title>
</head>
<body>
<div class="container">
<!-- App Name -->
<nav class="top">
<div class="large-head">
<div name="title">Project Management</div>
</div>
<div class="small-circle">
<img src="img\search.png" alt="Back arrow">
</div>
</nav>
<!-- Home page body -->
<!-- <div class="container"> -->
<!-- Scrolling tabs for filtering the data -->
<?php
if ($result && $result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$pid = $row["Project_ID"];
$title = $row["Title"];
$cost = $row["Cost"];
$Status = $row["Status"];
$estimated_completion = $row["Estimated_Completion"];
$startedDate = $row["Started_Date"];
$Organization_Name = $row["Organization_Name"];
$ss = $row["Approval_status"];
$Approval_status = unserialize($ss);
?>
<!-- Project Overview Container -->
<?php
$i;
print_r($Approval_status);
for ($i = count($Approval_status) - 1; $i >= 0; $i--) {
if ($Approval_status[$i] == "Normal") {
} else {
break;
}
}
echo $AdminLevel;
echo $Approval_status[$i];
if ($Approval_status[($i)] == $AdminLevel) {
echo '<a href="Details.php?pid=' . $pid . '">'
?>
<div class="wrapper">
<div class="container-row">
<div class="small-logo">
<img src="images/dcslogo.png" alt="dsc_logo" class="container-img">
</div>
<div class="clientname" style="margin-bottom: 10px;">
<p class="container-subhead"><?php echo $Organization_Name ?></p>
</div>
</div>
<div class="track">
<h3>
<p style="overflow: hidden;" class="container-subhead">
<?php echo $title ?>
</p>
</h3>
</div>
<div class="track">
<div class="container-row space">
<h3>
<p class="container-body">Status -</p>
</h3>
<h3>
<p class="container-body"> <?php echo $Status ?></p>
</h3>
</div>
<div class="container-row space">
<h3>
<p class="container-body">Started on -</p>
</h3>
<h3>
<p class="container-body"> <?php echo $startedDate ?></p>
</h3>
</div>
<div class="container-row space">
<h3>
<ntainer-body class="container-body">Estimated completion -</ntainer-body>
</h>
<h3>
<p class="container-body"> <?php echo $estimated_completion ?></p>
</h3>
</div>
<dv class="container-row space">
<h3>
<p class="container-body">Cost -</p>
</h3>
<h3>
<p class="container-body"> <?php echo " $cost ₹" ?></p>
</h3>
</dv>
</div>
<?php echo '<a href="./Accept_Project_Request.php?pid=' . $pid . '">Acccept</a>' ?>
<?php echo '<a href="./Reject_Project_Request.php?pid=' . $pid . '">Reject</a>' ?>
</div>
<?php
?>
</a>
<?php
}
}
}
?>
<!-- </div> -->
<!-- Bottom Navigation Bar -->
<div class="bnav-wrapper">
<div class="bnav">
<a href="Home.php"><img src="images/home.svg" alt="Home"></a>
<a href="Logs.php"><img src="images/Logs.svg" alt="Logs"></a>
<a href="Notification.php">Alerts</a>
<a href="Profile.php"><img src="images/Profile.svg" alt="Profile"></a>
</div>
</div>
</div>
</div>
</body>
</html>