-
Notifications
You must be signed in to change notification settings - Fork 0
/
session_9.php
32 lines (32 loc) · 1.26 KB
/
session_9.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
<?php
include 'header.php';
?>
<section class="main">
<div class="content">
<header>
<h1>Session 9: Reading the Bible Today</h1>
</header>
<div class="video">
<video class="video" type="video/mp4" width="850" height="620" src="videos/Session9.m4v" controls poster="img/logo.jpg"></video>
</div>
<div class="docs">
<h2>Study Materials</h2>
<ul class="list doc-list">
<?php
$dir = '../smallgroup/docs/Week_09/';
if ($handle = opendir($dir)) {
while (false !== ($entry = readdir($handle))) {
$filename = preg_replace('(.pdf)','',preg_replace('(_)',' ',$entry));
if ($entry != '.' && $entry != '..') {
echo "<li><a class=\"link\" href=\"download.php?d={$dir}&file={$entry}\">{$filename}</a></li>";
}
}
closedir($handle);
}
?>
</ul>
</div>
</div>
</section>
<?php
include 'footer.php';