-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
106 lines (97 loc) · 4.95 KB
/
index.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
<?php $xrf_page_subtitle = "Home";
require_once("includes/global.php");
require_once("includes/functions_class.php");
require_once("includes/functions_lib.php");
require_once("includes/include_lconfig.php");
require_once("includes/header.php");
if ($xrfl_library_barcode=="" && $xrf_myulevel > 3) {
if (file_exists("acp_module_panel.php")) {
xrf_go_redir("acp_module_panel.php?modfolder=library&modpanel=config", "Library is not set up yet!", 2);
} else {
xrf_go_redir("$xrf_site_url/acp_module_panel.php?modfolder=library&modpanel=config", "Library is not set up yet!", 2);
}
}
?>
<form action="search_results.php" method="POST"><p align="center"><b>Search:</b>
<input type="text" name="searchterm" maxlength="128"><select name="searchwhat">
<option value="keyword">Keyword</option>
<option value="title">Title</option>
<option value="numbers">ISBN/ISSN/LCCN</option>
</select><input type="submit" value="Search"> <a href="search.php">Advanced Search</a></p></form>
<div align="center"><table>
<tr><td width=400><a href="search_results.php?group=000">000s - General, Computer Science</a></td><td width=400><a href="search_results.php?group=500">500s - Math, Science</a></td></tr>
<tr><td><a href="search_results.php?group=100">100s - Philosophy, Psychology</a></td><td><a href="search_results.php?group=600">600s - Technology</a></td></tr>
<tr><td><a href="search_results.php?group=200">200s - Religion</a></td><td><a href="search_results.php?group=700">700s - Arts, Recreation</a></td></tr>
<tr><td><a href="search_results.php?group=300">300s - Social Sciences</a></td><td><a href="search_results.php?group=800">800s - Literature</a></td></tr>
<tr><td><a href="search_results.php?group=400">400s - Language</a></td><td><a href="search_results.php?group=900">900s - History, Geography</a></td></tr>
<tr><td><a href="search_results.php?group=F">Fiction - Adult/Young Adult</a></td><td><a href="search_results.php?group=J">Fiction - Juvenile</a></td></tr>
<tr><td><a href="search_results.php?group=E">Fiction - Early Reader</a></td><td><a href="serials.php">Serials and Periodicals</a></td></tr>
<tr><td><a href="search_results.php">View All Materials</a> (Please Use Sparingly)</td><td></td></tr>
</table></div>
<br>
<div align="center"><table><tr><td align="center">Authors starting with:</td></tr>
<tr><td>
<a href="authors.php?letter=A">A</a>
<a href="authors.php?letter=B">B</a>
<a href="authors.php?letter=C">C</a>
<a href="authors.php?letter=D">D</a>
<a href="authors.php?letter=E">E</a>
<a href="authors.php?letter=F">F</a>
<a href="authors.php?letter=G">G</a>
<a href="authors.php?letter=H">H</a>
<a href="authors.php?letter=I">I</a>
<a href="authors.php?letter=J">J</a>
<a href="authors.php?letter=K">K</a>
<a href="authors.php?letter=L">L</a>
<a href="authors.php?letter=M">M</a>
<a href="authors.php?letter=N">N</a>
<a href="authors.php?letter=O">O</a>
<a href="authors.php?letter=P">P</a>
<a href="authors.php?letter=Q">Q</a>
<a href="authors.php?letter=R">R</a>
<a href="authors.php?letter=S">S</a>
<a href="authors.php?letter=T">T</a>
<a href="authors.php?letter=U">U</a>
<a href="authors.php?letter=V">V</a>
<a href="authors.php?letter=W">W</a>
<a href="authors.php?letter=X">X</a>
<a href="authors.php?letter=Y">Y</a>
<a href="authors.php?letter=Z">Z</a>
</td></tr>
<tr><td align="center"><a href="authors.php">View All Authors</a> (Please Use Sparingly)</td></tr></table>
</div>
<br>
<div align="center"><table><tr><td width=400>
<?php if ($xrf_myulevel > 1)
{
echo "<a href=\"reading_list.php\">Your Reading List</a><br>
<a href=\"search_results.php?sort=recent&limit=100&view=shelf\">Recently Added</a><p>";
}
$typesquery = "SELECT * FROM l_typecodes ORDER BY id ASC";
$typesresult = mysqli_query($xrf_db, $typesquery);
$typesnum=mysqli_num_rows($typesresult);
$typ=0;
while ($typ < $typesnum) {
$typcode = xrf_mysql_result($typesresult,$typ,"code");
$typdescr = xrf_mysql_result($typesresult,$typ,"descr");
$typaccess = xrf_mysql_result($typesresult,$typ,"access_level");
if ((is_numeric($typaccess) && $typaccess <= $xrf_myulevel) || (!is_numeric($typaccess) && xrf_has_uclass($xrf_myuclass,$typaccess))) {
if ($typcode == "") { $typcode = "0"; }
echo "<a href=\"search_results.php?type=$typcode\">$typdescr</a><br>";
}
$typ++;
} ?>
</td>
<td width=400>
<a href="search_results.php?type=VG">Video Games</a> (<a href="search_results.php?filter=GameCube">GC</a>|<a href="search_results.php?filter=Wii">Wii</a>|<a href="search_results.php?filter=WiiU">WiiU</a>|<a href="search_results.php?filter=Switch">Switch</a>|<a href="search_results.php?filter=DS">DS</a>)
<?php if ($xrf_myulevel >= 3)
{
echo "<p><a href=\"search_results.php?filter=uncat\">Materials set to Uncategorized</a><br>
<a href=\"search_results.php?filter=trace\">Materials set to Trace</a><br>
<a href=\"search_results.php?filter=chked\">Materials set to Checked Out</a><br>
<a href=\"search_results.php?filter=dmged\">Materials set to Damaged</a>";
} ?>
</td></tr></table></div>
<?php
require_once("includes/footer.php");
?>