-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbib.php
More file actions
79 lines (61 loc) · 2.16 KB
/
bib.php
File metadata and controls
79 lines (61 loc) · 2.16 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
<?php
include('inc.db.php');
include('config.php');
$dbconfig = get_db_config();
$db = db_open($dbconfig['host'], $dbconfig['name'], $dbconfig['user'], $dbconfig['pass']);
$libres = db_execute_query("SELECT * FROM libraries WHERE id = '" . $_GET['bib'] . "';", $db);
$lib = mysql_fetch_assoc($libres);
?>
<div data-role="page" data-title="<?php echo($lib['name_short']); ?>" id="<?php echo($lib['id']); ?>" data-theme="b">
<div data-role="header">
<h1><?php echo($lib['name_short']); ?></h1>
</div>
<div data-role="content" data-theme="b">
<div class="content-primary">
<!-- h2>Søk</h2 -->
<form method="get" action="/glitre/api/index.php" id="bib-search">
<ul data-role="listview">
<li data-role="fieldcontain">
<label for="name">Søk etter emne/tittel/forfatter:</label>
<input type="search" name="q" id="search" value="" />
</li>
</ul>
<input type="hidden" name="library" value="<?php echo($_GET['bib']) ?>" />
<input type="hidden" name="sort_by" value="year" />
<input type="hidden" name="sort_order" value="descending" />
<input type="hidden" name="format" value="mobibl" />
</form>
</div>
<div class="content-secondary">
<h2>Meny</h2>
<ul data-role="listview" data-inset="true">
<li><a href="">Åpningstider</a>
<li><a href="">Kontakt oss</a>
<li><a href="">Elektroniske ressurser</a>
</ul>
</div>
<div class="content-secondary">
<h2>Nyheter</h2>
<div data-role="collapsible" data-collapsed="true">
<h3>Nye åpningstider</h3>
<p>Blah, blah...</p>
</div>
<div data-role="collapsible" data-collapsed="true">
<h3>Gamle åpningstider</h3>
<p>Blah, blah...</p>
</div>
<div data-role="collapsible" data-collapsed="true">
<h3>Rullebrett til utlån</h3>
<p>Blah, blah...</p>
</div>
</div>
</div>
<div data-role="footer">
<div data-role="navbar" data-grid="a">
<ul>
<li><a href="/choose.php">Velg bibliotek</a></li>
<li><a href="#about">Om moBibl</a></li>
</ul>
</div>
</div>
</div>