</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> </li> <?php } ?> </ul> <?php echo UI::showPagingCms($paging, $page, $limit_arr, $limit, $list); ?> </div> </div> </div>
foreach ($ujian_live as $row) { ?> <tr> <td style="font-size: 14px;text-align:left"><?php echo $row['nama']; ?> </td> <td style="font-size: 14px;text-align:left;width:50px" width="50"><?php echo $row['matapelajaran']; ?> </td> <td style="font-size: 14px;text-align:left"><?php echo Eng2Ind($row['waktu_mulai']); ?> sd <br/> <?php echo Eng2Ind($row['waktu_selesai']); ?> </td> </tr> <?php } } else { ?> <tr> <td colspan="3">Tidak ada jadwal</td> </tr> <?php } ?> </tbody> </table>
$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'] == 'id_member') { echo "<td><a href='" . ($url = URL::Base($page_ctrl . "/detail/{$rows[$pk]}")) . "'>{$val}</a></td>"; } else { switch ($rows1['type']) { case 'list': echo "<td>" . $rows1["value"][$val] . "</td>"; break; case 'date': echo "<td>" . Eng2Ind($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'])) { echo "<tr><td colspan='" . (count($header) + 2) . "'>Data kosong</td></tr>"; } ?> </tbody>
public function statistikVisitor($limit = 6) { $sql = "select * from (select * \n\t\tfrom contents_statistik_pengunjung \n\t\torder by tanggal desc limit {$limit}) a order by tanggal asc"; $rows = $this->conn->GetArray($sql); $data = array(); $ticks = array(); foreach ($rows as $key => $value) { # code... $data[] = array($key, $value['jumlah']); $ticks[] = array($key, Eng2Ind($value['tanggal'])); } $ret['data'] = json_encode($data); $ret['ticks'] = json_encode($ticks); return $ret; }