示例#1
0
<?php

/**
 * Created by PhpStorm.
 * User: ekobudisusilo
 * Date: 25 /07 /15
 * Time: 00.17
 */
include_once '/Applications/MAMP/htdocs/isias/classes/class.Yayasan.php';
$info = new Yayasan();
$stmt = $info->getYayasan();
$nums = $stmt->rowCount();
if ($nums > 0) {
    while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
        extract($row);
        ?>
        <div class='box box-info'>
            <div class='box-body'>
                <div class='row'>
                    <form role='form' method='post' enctype='multipart/form-data' action='classes/crud_yayasan.php?p=edit'>
                        <div class='col-md-12'>
                            <div class='alert alert-info col-md-12'>
                                <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>
                                Selamat Datang, Silahkan Edit data Identitas Yayasan ini dengan data yang sebenar-benarnya.
                            </div>
                            <br>
                            <div class='well well-sm'><strong><span class='glyphicon glyphicon-asterisk'></span> Required Field</strong></div>
                            <div class='form-group'>
                                <label>Nama Yayasan</label>
                                <div class='input-group'>
                                    <input type='text' class='form-control' id='nama' name='nama' value='<?php 
示例#2
0
 * Created by PhpStorm.
 * User: ekobudisusilo
 * Date: 28 /06 /15
 * Time: 00.52
 */
ob_start();
include 'class.Yayasan.php';
//$nama,$alamat,$notelp,$nofax,$profinsi,$kota,$npwp,$pkp,$email,$website,$logo
$nama = htmlspecialchars($_POST['nama']);
$alamat = htmlspecialchars($_POST['alamat']);
$no_telp = htmlspecialchars($_POST['notelp']);
$no_fax = htmlspecialchars($_POST['nofax']);
$profinsi = htmlspecialchars($_POST['profinsi']);
$kota = htmlspecialchars($_POST['kota']);
$npwp = htmlspecialchars($_POST['npwp']);
$pkp = $_POST['pkp'];
$email = htmlspecialchars($_POST['email']);
$website = htmlspecialchars($_POST['website']);
$logo = htmlspecialchars($_POST['logo']);
$data = new Yayasan();
switch ($_GET['p']) {
    case "add":
        $data->AddYayasan($nama, $alamat, $no_telp, $no_fax, $profinsi, $kota, $npwp, $pkp, $email, $website, $logo);
        header('location: ../main.php?m=001');
        break;
    case "edit":
        $data->EditYayasan($nama, $alamat, $no_telp, $no_fax, $profinsi, $kota, $npwp, $pkp, $email, $website, $logo);
        header('location: ../main.php?m=001');
        break;
}
ob_end_flush();
示例#3
0
<?php

/**
 * Created by PhpStorm.
 * User: ekobudisusilo
 * Date: 25 /07 /15
 * Time: 10.54
 */
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(-1);
include_once '/Applications/MAMP/htdocs/isias/classes/class.Yayasan.php';
include_once '/Applications/MAMP/htdocs/isias/classes/class.Jabatan.php';
include_once '/Applications/MAMP/htdocs/isias/classes/paginator.class.php';
$yayasan = new Yayasan();
$y = $yayasan->getYayasan();
$jbtan = new Jabatan();
$stmt = $jbtan->countAll();
$num_rows = $stmt->rowCount();
if ($num_rows > 0) {
    $pages = new Paginator($num_rows, 19);
    if (isset($_POST['cari'])) {
        $cari = $_POST['cari'];
        $stmt = $jbtan->GetListJabatan($pages->limit_start, $pages->limit_end);
    } else {
        $stmt = $jbtan->GetListJabatan($pages->limit_start, $pages->limit_end);
    }
}
?>
<div class="container">
    <div class="row">
示例#4
0
文件: info.php 项目: ekobudis/isias
<?php

include_once '/Applications/MAMP/htdocs/isias/classes/class.Identitas.php';
include_once '/Applications/MAMP/htdocs/isias/classes/class.Yayasan.php';
$yys = new Yayasan();
$y = $yys->getYayasan();
$jml_rows = $y->rowCount();
$info = new Identitas();
$stmt = $info->getIdentitas();
$nums = $stmt->rowCount();
if ($nums > 0) {
    while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
        extract($row);
        ?>
    <div class='box box-info'>
        <div class='box-body'>
            <div class='row'>
                <form role='form' method='post' enctype='multipart/form-data' action='classes/crud_identitas.php?p=edit'>
                    <div class='col-md-12'>
                        <div class='alert alert-info col-md-12'>
                            <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>
                            Selamat Datang, Silahkan Edit data Identitas sekolah ini dengan data yang sebenar-benarnya.
                        </div>
                        <div class='well well-sm'><strong><span class='glyphicon glyphicon-asterisk'></span> Required Field</strong></div>
                        <div class='form-group'>
                            <label>Nama Yayasan</label>
                            <div class='input-group'>
                                <select class="form-control input-md col-md-8" name="yayasan" id="yayasan">
                                <?php 
        $id_sekolah = $sekolah_pk;
        while ($n = $y->fetch(PDO::FETCH_ASSOC)) {