-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
73 lines (57 loc) · 2.71 KB
/
index.php
File metadata and controls
73 lines (57 loc) · 2.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Eumentis TB</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="css/jPages.css">
<script src="scripts/jquery-1.10.2.min.js" type="text/javascript"> </script>
<script src="scripts/script.js" type="text/javascript"> </script>
<script src="scripts/jPages.js"></script>
</head>
<body>
<div id="main">
<div id="left">
<a href="#" style="display: block;"><img src="files/left1.png" alt="Left" height="60" width="100"></a>
</div>
<div id="count"></div>
<div id="right">
<a href="#" style="display: block;"><img src="files/right1.png" alt="Right" height="60" width="100"></a>
</div>
<div class="holder"></div>
<div id="content">
<?php
include 'includes/connectDB.inc';
$conn = connectDB();
$id = "";
$sql = "SELECT * FROM metadata WHERE pmid IN (SELECT * FROM working)";
$q = $conn -> query($sql) or die("failed");
while($r = $q->fetch(PDO::FETCH_ASSOC)){
echo "\t\t\t<div id=\"" . $r['pmid'] . "\" class=\"group\">\n";
echo "\t\t\t\t<div class=\"paper\">\n";
echo "\t\t\t\t\t<div class=\"metadata\">\n";
echo "\t\t\t\t\t\t<h2 class=\"title\">" . $r['title'] . "</h2>\n";
echo "\t\t\t\t\t\t<div class=\"pubmed_id\">" . $r['pmid'] . "</div>\n";
echo "\t\t\t\t\t\t<div class=\"year\">" . $r['pub_year'] . "</div>\n";
echo "\t\t\t\t\t\t<div class=\"authors\">" . $r['authors'] . "</div>\n";
echo "\t\t\t\t\t\t<div class=\"journal\">" . $r['journal'] . "</div>\n";
echo "\t\t\t\t\t\t<div class=\"abstract\">" . $r['abstract'] . "</div>\n";
echo "\t\t\t\t\t</div>"; //end class==metadata
echo "\t\t\t\t\t<div class=\"download\">\n"; //start class=download
echo "\t\t\t\t\t\t<a href=\"../analysis_files/PDF/" . $r['pmid'] . ".pdf\" target=\"_blank\">Download</a>\n";
echo "\t\t\t\t\t</div>\n"; //end class=download
echo "\t\t\t\t</div>\n"; //end class=paper
echo "\t\t\t\t<div class=\"buttons\">\n";
echo "\t\t\t\t\t<div class=\"yes\"><button class=\"green_button\">Relevant</button></div>\n";
echo "\t\t\t\t\t<div class=\"no\"><button class=\"red_button\">Non-Relevant</button></div>\n";
echo "\t\t\t\t\t<div class=\"wrong_paper\"><button class=\"red_button\">Wrong Paper</button></div>\n";
echo "\t\t\t\t</div>\n"; //end class=buttons
echo "\t\t\t</div>\n"; //end class=group
}
?>
</div>
</div>
</body>
</html>