<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once '/Applications/MAMP/htdocs/isias/classes/class.Akuns.php'; $coa = new Akuns(); $stmt = $coa->countAll(); ?> <!-- HTML form for creating a product --> <div class='box box-info'> <div class="box-body"> <div class="row col-md-12" align="left"> <form class="form-horizontal" role="form" method="post" action="save_coa.php"> <div class="col-md-12"> <div class="form-group"> <label for="noakun" class="col-md-2 control-label" align="left">Debet dari</label> <div class="input-group col-md-10"> <select class="form-control input-md" name="tipe" id="tipe"> <option value="0" selected> -- Pilih Salah Satu -- </option> <?php $coa->getPopulateAkun('1'); ?> </select> </div> </div> <div class="form-group"> <label for="noakun" class="col-md-2 control-label" align="left">No Voucher</label> <div class="input-group col-md-3"> <input class="form-control" type="text" name="nojurnal" id="nojurnal" placeholder="No Jurnal" required> <div class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></div>
<?php /** * Created by PhpStorm. * User: ekobudisusilo * Date: 14 /07 /15 * Time: 23.41 */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once '/Applications/MAMP/htdocs/isias/classes/class.Siswa.php'; include_once '/Applications/MAMP/htdocs/isias/classes/paginator.class.php'; $coa = new Akuns(); $stmt = $coa->countAll(); $num_rows = $stmt->rowCount(); $pages = new Paginator($num_rows, 19); if (isset($_POST['cari'])) { $cari = $_POST['cari']; $stmt = $coa->GetListAkuns($cari, $pages->limit_start, $pages->limit_end); } else { $stmt = $coa->GetListAkuns('', $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">Akun 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..">
<?php /** * Created by PhpStorm. * User: ekobudisusilo * Date: 26 /06 /15 * Time: 23.37 */ include_once '/Applications/MAMP/htdocs/isias/configs/functions.php'; if (isset($_POST['pageId']) && !empty($_POST['pageId'])) { $id = $_POST['pageId']; } else { $id = '1'; } $pageLimit = PAGE_PER_NO * $id; $list = new Akuns(); $stmt = $list->GetListAkuns($pageLimit, PAGE_PER_NO); $num = $stmt->rowCount(); if ($num > 0) { while ($row = $stmt->fetchAll(PDO::FETCH_ASSOC)) { extract($row); $HTML .= "<tr>"; $HTML .= "<td>{$acc_no}</td>"; $HTML .= "<td>{$acc_name}</td>"; $HTML .= "<td>{$sub_acc_no}</td>"; $HTML .= "<td>{$typeakun}</td>"; $HTML .= "<td style='text-align:center;'>\n <a class='btn btn-warning btn-sm' href='' role='button'><span class='glyphicon glyphicon-pencil' aria-hidden='true'></span></a>\n <a class='btn btn-danger btn-sm' href='' role='button'><span class='glyphicon glyphicon-trash' aria-hidden='true'></span></a>\n </td>\n </td>"; $HTML .= "</tr>"; } } else { $HTML .= "<tr rowspan=5> No Data Found! </tr>";
<?php ob_start(); include 'class.Akuns.php'; $no_akun = htmlspecialchars($_POST['nomer']); $nm_akun = htmlspecialchars($_POST['nama']); $ty_akun = htmlspecialchars($_POST['tipe']); $sub_akun = htmlspecialchars($_POST['subakun']); $isi = new Akuns(); switch ($_GET['p']) { case "add": $isi->AddAkun($no_akun, $nm_akun, $sub_akun, $ty_akun); header('location: ../main.php?m=071'); break; case "edit": $id = $_REQUEST['id']; $isi->EditAkun($no_akun, $nm_akun, $sub_akun, $ty_akun, $id); header('location: ../main.php?m=071'); break; case "del": $id = $_REQUEST['id']; $isi->AddDelete($id); header('location: ../main.php?m=071'); break; //default: echo "Not Founds"; } ob_end_flush();
<?php /** * Created by PhpStorm. * User: ekobudisusilo * Date: 26 /06 /15 * Time: 07.29 */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once '/Applications/MAMP/htdocs/isias/classes/class.Akuns.php'; $type = $_REQUEST['tipe_id']; $list = new Akuns(); $list->getAccountByType($type);
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once 'classes/class.Akuns.php'; $page = isset($_GET['page']) ? $_GET['page'] : 1; $records_per_page = 25; $from_record_num = $records_per_page * $page - $records_per_page; $list = new Akuns(); $stmt = $list->GetListAkuns($page, $from_record_num, $records_per_page); $num = $stmt->rowCount(); ?> <a href="#myModal" role="button" class="btn btn-primary" data-toggle="modal">Akun Baru</a><br> <!--define the table using the proper table tags, leaving the tbody tag empty --> <table class="table table-condensed table-bordered table-hover" cellpadding="0" cellspacing="0"> <thead> <tr> <th style="width:60px">No Akun</th> <th style="width:180px">Nama Akun</th> <th style="width:60px">Sub Akun</th> <th style="width:120px">Tipe Akun</th> <th style="width:60px">Status Akun</th> <th style="width:40px"></th> </tr> </thead> <tbody> <?php while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {