forked from shivangg66/ERP-Module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetails.php
More file actions
49 lines (48 loc) · 1.32 KB
/
details.php
File metadata and controls
49 lines (48 loc) · 1.32 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h3 style = "color:blue">Status of Publication</h3>
<?php
require('connection.php');
session_start();
$count=0;
$sap_id = $_SESSION['sapid'];
$title = $_GET['title'];
$query = "SELECT * FROM data WHERE title = \"$title\"";
$result = mysqli_query($db,$query);
if(!$result)
{
die("Unable to connect");
}
$attribute = array("Title","Authors","Department","Affiliation","Category","Publisher","Month","Year","Identifier","Number","DOI","Indexed In","Volume","Issue","Page No.","URL","Verification Document","Status","Remarks");
$row = mysqli_fetch_row($result);
?>
<table style = "border:none">
<tr>
<th width="8%" align = "center">S.NO.</th>
<th width="20%" align = "left">ATTRIBUTE</th>
<th width="72%" align = "left">VALUE</th>
<th></th>
</tr>
<?php
$count = 1;
foreach($attribute as $att)
{
echo "<tr>";
echo "<td align = \"center\">".$count."</td>";
echo "<td>".$att."</td>";
echo "<td>".$row[$count]."</td>";
echo "</tr>";
$count++;
}
?>
</table>
<?php
if($row[18] == "Pending")
echo "<h4 style=\"color:red\"> **update missing information or upload required document</h4>";
?>
</body>
</html>