forked from shivangg66/ERP-Module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.php
More file actions
98 lines (97 loc) · 2.55 KB
/
view.php
File metadata and controls
98 lines (97 loc) · 2.55 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h3 style = "color:blue">List of Publications indexed in SCOPUS & above</h3>
<?php
require('connection.php');
session_start();
$count=0;
$sap_id = $_SESSION['sapid'];
$query = "SELECT * FROM journal WHERE sap_id = $sap_id AND remarks = \"Completed\"";
$result = mysqli_query($db,$query);
if(!$result)
{
die("Unable to connect");
}
if(mysqli_num_rows($result)>0)
{
?>
<table style = "border:none">
<tr>
<th>S.NO.</th>
<th>TITLE</th>
<th>OTHER AUTHORS</th>
<th>MONTH</th>
<th>YEAR</th>
<th></th>
</tr>
<?php
while($row = mysqli_fetch_assoc($result))
{
$count++;
echo "<tr>";
echo "<td width = \"5%\" align = \"center\">".$count."</td>";
echo "<td width = \"40%\">".$row['title']."</td>";
echo "<td width = \"25%\">".$row['authors']."</td>";
echo "<td width = \"10%\" align = \"center\">".$row['month']."</td>";
echo "<td width = \"10%\" align = \"center\">".$row['year']."</td>";
echo "<td width = \"10%\"><a href=\"details.php?title=".$row['title']."\" target = \"_blank\">view details</a></td>";
echo "</tr>";
}
?>
</table>
<?php
}
else
{
echo "<h4>You don't have any publication in this category!</h4>";
}
?>
<h3 style = "color:red">*Pending List of Publications</h3>
<?php
$query = "SELECT * FROM data WHERE sap_id = $sap_id AND remarks = \"Pending\"";
$result = mysqli_query($db,$query);
$count = 0;
if(!$result)
{
die("Unable to connect");
}
if(mysqli_num_rows($result)>0)
{
?>
<table style = "border:none">
<tr>
<th>S.NO.</th>
<th>TITLE</th>
<th>OTHER AUTHORS</th>
<th>MONTH</th>
<th>YEAR</th>
<th></th>
</tr>
<?php
while($row = mysqli_fetch_assoc($result))
{
$count++;
echo "<tr>";
echo "<td width = \"5%\" align = \"center\">".$count."</td>";
echo "<td width = \"40%\">".$row['title']."</td>";
echo "<td width = \"25%\">".$row['authors']."</td>";
echo "<td width = \"10%\" align = \"center\">".$row['month']."</td>";
echo "<td width = \"10%\" align = \"center\">".$row['year']."</td>";
echo "<td width = \"10%\"><a href=\"details.php?title=".$row['title']."\" target = \"_blank\">view details</a></td>";
echo "</tr>";
}
?>
</table>
<?php
}
else
{
echo "<h4 style = \"color:blue\">You don't have any publication in this category!</h4>";
}
?>
</body>
</html>