Example #1
0
<?php

use Landingo\Resources\Dbase;
$db = new Dbase();
switch ($this->_act) {
    default:
        ?>

<ol class="breadcrumb">
    <li><a href="<?php 
        echo $base_url;
        ?>
/index.php/admin">Dashboard</a></li>
    <li class="active">User</li>
</ol>

<div class="col-sm-8">
<div class="page-header">
    <h2>Semua User</h2>
</div>

<?php 
        $users = $db->get('users')->resultAll();
        ?>

<table class="table table-striped table-hover">
  <thead>
      <tr>
          <th width="40px">#</th>
          <th>Nama</th>
          <th>Email</th>
Example #2
0
<?php

use Landingo\Resources\Date;
use Landingo\Resources\Dbase;
$db = new Dbase();
Date::set(array('length' => 3));
$db->row = 'berita.judul, berita.timestamp, berita.gambar, berita.seolink, kategori.kategori, users.nama as oleh';
$db->many_join = array('kategori' => 'berita.kategori_id=kategori.id', 'users' => 'berita.user_id=users.id');
$db->order_by = 'timestamp DESC';
$news = $db->get('berita')->resultAll();
?>

<ol class="breadcrumb">
    <li><a href="<?php 
echo $base_url;
?>
">Home</a></li>
    <li class="active">Semua Berita</li>
</ol>

<?php 
foreach ($news as $berita) {
    ?>

<div class="col-sm-6 col-md-4">
    <div class="thumbnail" style="height:450px">
      <img src="<?php 
    echo $base_url;
    ?>
/img/berita/<?php 
    echo $berita->gambar;
Example #3
0
<?php 
use Landingo\Resources\Date;
use Landingo\Resources\Dbase;
use Landingo\Resources\File;
use Landingo\Resources\Pagination;
$db = new Dbase();
Date::set(array('length' => 3));
function getSeoLink($str)
{
    $prefix = str_replace(' ', '-', substr(trim($str), 0, 50));
    $fixed = filter_var(strtolower($prefix), FILTER_SANITIZE_URL);
    return $fixed;
}
switch ($this->_act) {
    default:
        ?>

<ol class="breadcrumb">
    <li><a href="<?php 
        echo $base_url;
        ?>
/index.php/admin">Dashboard</a></li>
    <li class="active">Berita</li>
</ol>

<div class="page-header">
    <h2>Managemen Berita</h2>
</div>

<?php 
Example #4
0
<?php

use Landingo\Resources\Dbase;
$db = new Dbase();
$kategori = $db->get('kategori')->resultAll();
?>

<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="utf-8">
    <title>CMS Administrator</title>
    <link rel="stylesheet" href="<?php 
echo $base_url;
?>
/assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php 
echo $base_url;
?>
/assets/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php 
echo $base_url;
?>
/assets/css/style.css">
    <script src="<?php 
echo $base_url;
?>
/assets/js/jquery.min.js"></script>
    <script src="<?php 
echo $base_url;
?>