<?php /** * Created by PhpStorm. * User: ekobudisusilo * Date: 27 /07 /15 * Time: 15.12 */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include_once '/Applications/MAMP/htdocs/isias/classes/class.ProgramParameters.php'; include_once '/Applications/MAMP/htdocs/isias/classes/paginator.class.php'; $data = new ProgramParameters(); $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->GetAutonumberParameters($pages->limit_start, $pages->limit_end); } else { $stmt = $data->GetAutonumberParameters($pages->limit_start, $pages->limit_end); } } $page = isset($_GET['p']) ? $_GET['p'] : null; switch ($page) { default: echo "\n <div class='box box-info'>\n <div class='box-body'>\n <div class='table-responsive'>\n <table class='table no-margin'>\n <thead>\n <tr>\n <th style='width:110px'>ID Program</th>\n <th style='width:220px'>Nama Module</th>\n <th style='width:200px'>Format Penomoran</th>\n <th style='width:120px'>Ganti Saat</th>\n <th style='width:100px'>Panjang</th>\n <th style='width:80px'>Status</th>\n <th style='width:40px'></th>\n </tr>\n </thead>\n <tbody id='pageData'>"; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { extract($row);
<?php /** * Created by PhpStorm. * User: ekobudisusilo * Date: 04 /07 /15 * Time: 20.23 */ ob_start(); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); include 'class.ProgramParameters.php'; //$idprog = $_POST['idprog']; $fm_nomer = htmlspecialchars($_POST['format_no']); $ganti = htmlspecialchars($_POST['change_no']); $panjang = $_POST['ukuran']; $data = new ProgramParameters(); $pk = $_REQUEST['kode']; //$data = array('prg_pk'=>$id); //$n = array($fm_nomer,$ganti,$panjang,$pk); //echo "Hasilnya " . $n[0] . ", " . $n[1] . ", " . $n[2] . " and " . $pk . ""; $data->UpdAutoNumbers($fm_nomer, $ganti, $panjang, $pk); header('location: ../main.php?m=140'); ob_end_flush();