-
Notifications
You must be signed in to change notification settings - Fork 0
/
browse.php
128 lines (117 loc) · 8.37 KB
/
browse.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
122
123
124
125
126
127
128
<?php
include 'includes/session.inc.php';
require 'includes/dbh.inc.php';
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Browse | AMA Scholarly</title>
<link rel="stylesheet" href="css/bulma.css"> <!-- use min.css at the final -->
<link rel="stylesheet" href="css/manual.css">
<link rel="stylesheet" href="fontawesome/css/all.css">
<link rel="icon" href="img/amau_logo.png">
<script defer src="fontawesome/js/all.js"></script>
</head>
<body>
<?php include 'nav.php' ?>
<main class="section">
<div class="container">
<div class="columns">
<div class="column is-main-content">
<!-- Main content -->
<div class="column">
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><a href="home">Home</a></li>
<li class="is-active"><a>Browse</a></li>
</ul>
</nav>
<div class="columns is-multiline" style="padding-top:2%; padding-bottom:2%; padding-left:5%; padding-right:5%; background-color:white;">
<!-- Title (From A-Z) -->
<div class="column is-half">
<p class="title is-6">Title</p>
<a class="link" href="includes/browser_preview-process.inc.php?title=A">A</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=B">B</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=C">C</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=D">D</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=E">E</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=F">F</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=G">G</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=H">H</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=I">I</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=J">J</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=K">K</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=L">L</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=M">M</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=N">N</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=O">O</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=P">P</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=Q">Q</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=R">R</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=S">S</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=T">T</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=U">U</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=V">V</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=W">W</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=X">X</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=Y">Y</a>
<a class="link" href="includes/browser_preview-process.inc.php?title=Z">Z</a>
</div>
<!-- Authors (From A-Z) -->
<div class="column is-half">
<p class="title is-6">Authors</p>
<a class="link" href="includes/browser_preview-process.inc.php?author=A">A</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=B">B</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=C">C</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=D">D</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=E">E</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=F">F</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=G">G</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=H">H</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=I">I</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=J">J</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=K">K</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=L">L</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=M">M</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=N">N</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=O">O</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=P">P</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=Q">Q</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=R">R</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=S">S</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=T">T</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=U">U</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=V">V</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=W">W</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=X">X</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=Y">Y</a>
<a class="link" href="includes/browser_preview-process.inc.php?author=Z">Z</a>
</div>
<!-- Categories (In Alphabetical Order) -->
<div class="column is-half">
<p class="title is-6">Categories</p>
<ul style="list-style-type:disc; padding-left:5%;">
<?php
$sql = "SELECT db_category FROM Metadata ORDER BY db_category ASC";
$query = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_array($query)) { //add a counting feature
$categories = $row['db_category'];
echo "<li><a class='link' href='includes/browser_preview-process.inc.php?category=$categories'>" . $categories . "</a></li>";
}
?>
</ul>
</div>
<div class="column is-half">
<p class="subtitle is-6">(More browsing options in future updates)</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<?php include 'footer.php' ?>
</body>
</html>