<h3> <a href="<?php echo $url = URL::Base("page/detail/{$add_param}/{$rows[$pk]}/{$title}"); ?> " title="<?php echo $rows['nama']; ?> "> <?php echo $rows['nama']; ?> </a> </h3> <p> <?php echo ReadMore($rows['isi'], $url); ?> </p> </div> <div class="post_footer clearfix"> <ul class="post_footer_details"> <li>Posted by <?php echo $rows['created_name']; ?> </li> <li>on <?php echo Eng2Ind($rows['created_date']); ?> </li> </ul> </div>
echo UI::showHeader($header, $filter_arr, $list_sort, $list_order); ?> </thead> <tbody> <?php $i = ($page - 1) * $limit; foreach ($list['rows'] as $rows) { $i++; echo "<tr>"; echo "<td>{$i}</td>"; foreach ($header as $rows1) { $val = $rows[$rows1['name']]; if ($rows1['name'] == 'nama') { echo "<td><a href='" . ($url = URL::Base($page_ctrl . "/detail/{$rows[$pk]}")) . "'>{$val}</a></td>"; } elseif ($rows1['name'] == 'isi') { echo "<td>" . ReadMore($val, $url) . "</td>"; } else { switch ($rows1['type']) { case 'list': echo "<td>" . $rows1["value"][$val] . "</td>"; break; default: echo "<td>{$val}</td>"; break; } } } echo "<td style='text-align:right'>\r\n \t" . UI::getButton('edit', $rows[$pk], 'class="btn btn-xs btn-warning"') . "\r\n\t\t" . UI::getButton('delete', $rows[$pk], 'class="btn btn-xs btn-danger"') . "\r\n \t</td>"; echo "</tr>"; } if (!count($list['rows'])) {
// Load Data if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page = 1; } $start_from = ($page - 1) * 10; $sql = "SELECT `id`, `title`, `message`, `privacy` FROM `{$app}` WHERE `message` LIKE '%{$query}%' ORDER BY '{$sort}' DESC LIMIT {$start_from}, 10"; $stmt = $mysqli->prepare($sql); $stmt->execute(); $stmt->bind_result($id, $title, $body, $priv); while ($stmt->fetch()) { if ($priv == 0 || $admin) { if ($appli == "Blog") { echo "<div id='BlogTitle'><a href='?mode=post&id={$id}'>{$title}</a></div><br />"; } else { if ($appli == "Pages") { echo "<div id='BlogTitle'><a href='?mode=page&id={$id}'>{$title}</a></div><br />"; } } echo "<div id='BlogData'>Something like this?</div>"; if ($appli == "Blog") { echo "<div id='BlogBody'>" . ReadMore(getBBCode(getSmile($body))) . "... (<a href='?mode=post&id={$id}'>{$loc_read_more}</a>)</div><br /><br />"; } else { if ($appli == "Pages") { echo "<div id='BlogBody'>" . ReadMore(getBBCode(getSmile($body))) . "... (<a href='?mode=page&id={$id}'>{$loc_read_more}</a>)</div><br /><br />"; } } } } }
} if (empty($unamecol)) { echo "</font>"; } else { echo "</span>"; } echo "</a> {$loc_made_post} " . date($dateF . ', ' . $timeF, $bdate); if ($admin) { echo "<div id='AddButton' class='AddButton'><a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php?mode=postedit&id={$bid}'>{$loc_edit}</a> | <a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php?mode=postdel&id={$bid}'>{$loc_delete}</a></div>"; } echo " | {$loc_category}: <a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php?mode=category&id={$tid}'>{$ttitle}</a></div>"; echo "<div id='BlogBody'>"; if (!empty($bthumb)) { echo "<img src='{$bthumb}' style='max-width: 200px; max-height: 200px;' align='left' hspace='10' vspace='10' />"; } echo ReadMore(getSmile(getBBCode($bbody))); if (strpos($bbody, '[rm]') !== false) { if ($urltype == 0) { echo " (<a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/index.php?mode=post&id={$bid}'>{$loc_read_more}</a>)"; } else { echo " (<a href='{$protocol}://" . $_SERVER['HTTP_HOST'] . "/post/{$bslug}'>{$loc_read_more}</a>)"; } } echo "</div><br /><br />"; } } } $row = mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(title) FROM {$blogl}")); $total_records = $row[0]; $total_pages = ceil($total_records / 10); for ($i = 1; $i <= $total_pages; $i++) {