<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once '/Applications/MAMP/htdocs/isias/classes/class.Jurusans.php'; include_once '/Applications/MAMP/htdocs/isias/classes/class.Pejabat.php'; include_once '/Applications/MAMP/htdocs/isias/classes/paginator.class.php'; $pjbt = new Pejabat(); $n = $pjbt->countAll(); $jurusan = new Jurusans(); $stmt = $jurusan->countAll(); $num_rows = $stmt->rowCount(); if ($num_rows > 0) { $pages = new Paginator($num_rows, 19); if (isset($_POST['cari'])) { $cari = $_POST['cari']; $stmt = $jurusan->GetListJurusan($pages->limit_start, $pages->limit_end); } else { $stmt = $jurusan->GetListJurusan($pages->limit_start, $pages->limit_end); } } ?> <div class="container"> <div class="row"> <a href="#myModal" role="button" class="btn btn-primary" data-toggle="modal" data-target="#add-Data">Jurusan Baru</a> <div class="input-prepend pull-right"> <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button> <input class="form-control input-sm pull-right col-md-3" type="text" name="cari" placeholder="Cari..."> </div> </div>
* Created by PhpStorm. * User: ekobudisusilo * Date: 03 /07 /15 * Time: 18.43 */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once '/Applications/MAMP/htdocs/isias/classes/class.TahunAngkatan.php'; include_once '/Applications/MAMP/htdocs/isias/classes/class.Jurusans.php'; include_once '/Applications/MAMP/htdocs/isias/classes/class.PMB.php'; include_once '/Applications/MAMP/htdocs/isias/classes/paginator.class.php'; $tahun = new TahunAngkatan(); $n = $tahun->countAll(); $jrs = new Jurusans(); $j = $jrs->countAll(); $pmb = new PMBS(); //$stmt = $pmb $num_rows = $stmt->rowCount(); if ($num_rows > 0) { $pages = new Paginator($num_rows, 19); if (isset($_POST['cari'])) { //$cari = $_POST['cari']; //$stmt = $pejabat->GetListPejabat($pages->limit_start, $pages->limit_end); } else { //$stmt = $pejabat->GetListPejabat($pages->limit_start, $pages->limit_end); } } ?> <!-- HTML form for creating a product -->
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once '/Applications/MAMP/htdocs/isias/classes/class.Kelas.php'; include_once '/Applications/MAMP/htdocs/isias/classes/class.Jurusans.php'; include_once '/Applications/MAMP/htdocs/isias/classes/paginator.class.php'; $jur = new Jurusans(); $n = $jur->countAll(); $data = new Kelas(); $stmt = $data->countAll(); $num_rows = $stmt->rowCount(); if ($num_rows > 0) { $pages = new Paginator($num_rows, 19); if (isset($_POST['cari'])) { $cari = $_POST['cari']; $stmt = $data->GetListKelas($pages->limit_start, $pages->limit_end); } else { $stmt = $data->GetListKelas($pages->limit_start, $pages->limit_end); } } ?> <div class="container"> <div class="row"> <a href="#myModal" role="button" class="btn btn-primary" data-toggle="modal" data-target="#add-Data">Kelas Baru</a> <div class="input-prepend pull-right"> <span class="add-on"><i class="icon-search"></i></span> <input class="span2" id="prependedInput" type="text" name="cari" placeholder="Pencarian.."> </div>