-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtekst.php
More file actions
145 lines (127 loc) · 5.97 KB
/
tekst.php
File metadata and controls
145 lines (127 loc) · 5.97 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
require_once('head.inc.php');
require_once('oversigt.inc.php');
define('CHAP_PER_LINE', 7);
makeheadstart('Bibeltekst');
makeheadend();
makemenus(2);
?>
<div class="container">
<div class="row">
<div class="col-lg-3 d-block d-lg-none">
<div class="card mt-4">
<h1 class="card-header bg-success text-light">Farvekoden</h1>
<div class="card-body">
<p class="d-inline"><span style="width: 132px;" class="btn btn-sm <?=$modenhed['med indrykning']?>">Med synt. layout</span></p>
<p class="d-inline"><span style="width: 132px;" class="btn btn-sm <?=$modenhed['uden indrykning']?>">Uden synt. layout</span></p>
<p class="d-inline"><span style="width: 132px;" class="btn btn-sm <?=$modenhed['ufuldstændigt']?>">Ufuldstændigt</span></p>
</div>
</div>
</div>
<div class="col-lg-9">
<div class="card mt-4">
<h1 class="card-header bg-info text-light">Vi har (dele af) disse bøger</h1>
<div class="card-body">
<?php foreach ($abbrev as $abbr1 => $abbr2): ?>
<?php if ($abbr1=='matt'): ?>
<hr>
<?php endif; ?>
<?php if (!empty($chap[$abbr1])): ?>
<a href="#<?= $abbr1?>" class="mt-1 mb-0 ml-0 mr-0 btn book-btn btn-danger"><?= $abbr2 ?></a>
<?php endif; ?>
<?php endforeach; ?>
</div><!--card-body-->
</div><!--card-->
<?php foreach ($title as $book => $tit): ?>
<?php if ($book=='GT' || $book=='NT'): ?>
<h2><?= $tit ?></h2>
<?php continue; ?>
<?php endif; ?>
<?php if (empty($chap[$book])): ?>
<?php continue; ?>
<?php endif; ?>
<div id="<?= $book ?>" class="card mt-4">
<h1 class="card-header bg-info text-light"><?= $tit ?></h1>
<div class="card-body">
<p>Vælg <?= $chaptype[$book] ?>:</p>
<div>
<?php $chcount = count($chap[$book]); ?>
<?php $chix = -1; ?>
<?php for ($i=0; $i<$chcount; ++$i): ?>
<?php if (++$chix >= $chcount) break; ?>
<?php $chno = $chap[$book][$chix]; ?>
<a href="show.php?bog=<?= $book ?>&kap=<?= $chno ?>"
class="mt-1 mb-0 ml-0 mr-0 btn chap-btn <?= is_array($style[$book]) ? $style[$book][$chno] : $style[$book] ?>"><?= $chno ?></a>
<?php endfor; ?>
</div>
</div><!--card-body-->
</div><!--card-->
<?php endforeach; ?>
</div><!--col-->
<div class="col-lg-3 d-none d-lg-block">
<div class="card mt-4">
<h1 class="card-header bg-success text-light">Farvekoden</h1>
<div class="card-body">
<p><span style="width: 160px;" class="btn btn-sm <?=$modenhed['med indrykning']?>">Med syntaktisk layout</span></p>
<p><span style="width: 160px;" class="btn btn-sm <?=$modenhed['uden indrykning']?>">Uden syntaktisk layout</span></p>
<p><span style="width: 160px;" class="btn btn-sm <?=$modenhed['ufuldstændigt']?>">Ufuldstændigt</span></p>
<p> </p>
<img class="img-fluid" src="img/pexels-jessika-arraes-19561462.jpg" alt="">
</div>
</div>
<div class="card mt-4">
<h1 class="card-header bg-success text-light">Ord­for­kla­ringer</h1>
<div class="card-body">
<p>Der findes for tiden følgende ord­for­kla­ringer:</p>
<ul>
<?php
$d = dir("ordforkl");
$files = [];
while (false !== ($entry = $d->read())) {
if (substr($entry,-5)==='.html')
$files[] = substr($entry,0,-5);
elseif (substr($entry,-4)==='.txt')
$files[] = substr($entry,0,-4);
}
$d->close();
sort($files);
foreach ($files as $f) {
$link = mb_strtoupper(mb_substr($f,0,1)) . mb_substr($f,1);
echo "<li><a href=\"ordforklaring.php?ord=$link\">$link</a></li>";
}
?>
</ul>
</div>
</div>
</div>
<div class="col-lg-3 d-block d-lg-none">
<div class="card mt-4">
<h1 class="card-header bg-success text-light">Ord­for­kla­ringer</h1>
<div class="card-body">
<p>Der findes for tiden følgende ord­for­kla­ringer:</p>
<ul>
<?php
$d = dir("ordforkl");
$files = [];
while (false !== ($entry = $d->read())) {
if (substr($entry,-5)==='.html')
$files[] = substr($entry,0,-5);
elseif (substr($entry,-4)==='.txt')
$files[] = substr($entry,0,-4);
}
$d->close();
sort($files);
foreach ($files as $f) {
$link = mb_strtoupper(mb_substr($f,0,1)) . mb_substr($f,1);
echo "<li><a href=\"ordforklaring.php?ord=$link\">$link</a></li>";
}
?>
</ul>
</div>
</div>
</div>
</div><!--row-->
</div><!--container-->
<?php
endbody();
?>