-
Notifications
You must be signed in to change notification settings - Fork 0
/
inc.draw.php
41 lines (34 loc) · 1.44 KB
/
inc.draw.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
<?php
include_once "inc.config.php";
include_once "inc.data.php";
if (isset($_GET['page'])){
$start = ($_GET['page']-1)*$itemsperpage;
$entries = new ListEntry ($start,$itemsperpage-1,$path);
} else {
$entries = new ListEntry (0,$itemsperpage-1,$path);
}
$mem;
for ($i = 0; $i < count($entries->content); $i++){
echo "\n".'<div class="entry">'."\n";
echo ' <img src="'.$entries->content[$i]->imagepath.'" alt="'.$entries->content[$i]->title.'" />'."\n";
if ($entries->content[$i]->date!=$mem){
echo ' <div class="date">'.$entries->content[$i]->date.'</div>'."\n";
}
if (strpos($entries->content[$i]->title,'blank') === false){
echo ' <div class="title">';
}
if (get_class($entries->content[$i])=='SoundEntry'){
$filenamestart=split("/",$entries->content[$i]->soundpath);
$filenameuse = $filenamestart[1];
$filename=explode(".",$filenameuse);
echo ' <span class="sound">';
echo '<a href="'.$entries->content[$i]->soundpath.'" class="soundcontrol" id="'.$entries->content[$i]->soundpath.'">'.$entries->content[$i]->title.'</a><img src="js/headphone.gif" class="soundstatus" id="'.$entries->content[$i]->title.'" alt="play sound">';
echo '</span>'."\n";
} else {
echo $entries->content[$i]->title;
}
echo '</div>'."\n"; //end title
echo '</div>'."\n"; //end entry
$mem = $entries->content[$i]->date;
}
?>