-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchoose.php
37 lines (30 loc) · 1 KB
/
choose.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
<?php
include('inc.db.php');
include('config.php');
$dbconfig = get_db_config();
$db = db_open($dbconfig['host'], $dbconfig['name'], $dbconfig['user'], $dbconfig['pass']);
$libs = db_execute_query("SELECT id, name FROM libraries ORDER BY name;", $db);
?>
<div data-role="page" data-title="Velg bibliotek" id="choose" data-theme="b">
<div data-role="header">
<a href="#" data-rel="back">Tilbake</a>
<h1>Velg bibliotek</h1>
</div>
<div data-role="content" data-theme="b">
<ul data-role="listview" data-filter="true" data-inset="true">
<?php
while($lib = mysql_fetch_assoc($libs)) {
echo('<li><a href="bib.php?bib=' . $lib['id'] . '">' . $lib['name'] . '</a></li>');
}
?>
</ul>
</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>