$colorRow = ' bgcolor="#f9f9f9"'; } $indexChapter = explode('-', $lastList['chapter']); $lastDay = (int) (($_SERVER['REQUEST_TIME'] - $lastList['created']) / 86400); if ($lastDay == 0) { $lastDay = 'Today'; } elseif ($lastDay == 1) { $lastDay = 'Yesterday'; } else { $lastDay = 'Last ' . $lastDay . ' Day'; } $textCh = 'Chapter ' . $lastList['chapter']; if ((double) $lastList['chapter'] < 1 && (double) $lastList['chapter'] != 0) { $textCh = 'Special Chapter ' . $lastList['chapter'] * 10; } $linkChapter = $reqPath->SetRequest(1, $lastList['name']) . $reqPath->NextRequest('Chapter-' . $indexChapter[0]); $preview .= '<a href="' . $linkChapter . '"><table id="last-list" width="100%" cellpadding="2" cellspacing="0" ' . $colorRow . '><tr><td width="40">'; $preview .= '<div style="border:#aaaaaa solid 1px;margin:3px;"><img src="' . $GLOBALS['Domain'] . $lastList['thumb'] . '" border="0" width="40" height="40" /></div></td><td align="left">'; $preview .= '<strong>' . $lastList['name'] . '</strong> '; $preview .= '<font id="last-day" color="#999999"><em>(' . $lastDay . ')</em></font><div id="last-chapter">'; $preview .= '<a href="' . $linkChapter . '">' . $textCh . '</a></div></td></tr></table></a>'; } else { break; } } // Slider Show $gallery = new DirectoryReader($HaKko->Document . 'gallery/'); $slideImage = '<div id="slide-space"><div id="slide-img"><div id="s3slider"><ul id="s3sliderContent">'; $listGallery = $gallery->toArray(); shuffle($listGallery); foreach ($listGallery as $img) {
$site = new Site('selfip', $config, $GLOBALS['Domain']); $path = new RequestPath(); ?> <table align="right" id="nav-menu" width="200" border="0" cellpadding="2" cellspacing="0"> <tr id="nav-tr" align="center" valign="bottom"> <?php foreach ($site->ViewTableWhere('menu', 'panelid', 1, 'menuid DESC', 0) as $nav) { if ($path->Level(1) == $nav['path']) { $image = $GLOBALS['Domain'] . 'images/btn' . $nav['name'] . '_over.jpg'; } else { $image = $GLOBALS['Domain'] . 'images/btn' . $nav['name'] . '_up.jpg'; } list($width, $height) = getimagesize($image); ?> <td><a href="<?php echo $path->SetRequest(1, $nav['path']); ?> " title="<?php echo $nav['detail']; ?> "> <img src="<?php echo $image; ?> " border="0" width="<?php echo $width; ?> " height="<?php echo $height; ?> " /></a></td>