<?php include 'manajemen-gedung.php'; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['hapus'])) { $obj->hapusDetail($_REQUEST['hapus']); }
<?php include 'manajemen-gedung.php'; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['submit'])) { extract($_REQUEST); $obj->ubah($id, $nama, $kota, $deskripsi, $gambar); } if (isset($_REQUEST['id'])) { $id = $_REQUEST['id']; $result = $obj->mysqli->query("SELECT * FROM gedung WHERE id='{$id}'"); $rows = $result->fetch_assoc(); extract($rows); } ?> <!DOCTYPE html> <html> <body> <!--masih salah--> <form method="post" action="#.php"> <table width="500" border="1" cellpadding="5"> <tr> <th width="154" scope="row">Name</th> <td width="314"><input type="text" name="name" size="30" value="<?php echo $name; ?> " /></td> </tr> <tr> <th scope="row">Email</th> <td><input type="text" name="email" size="30" value="<?php
<?php include 'manajemen-gedung.php'; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['id'])) { $obj->hapus($_REQUEST['id']); }
<?php include 'manajemen-gedung.php'; //include_once ('head-back.php'); //echo "<div class='span6 offset1'>"; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['submit'])) { $id = $_REQUEST['ubah']; $nama_gedung = $_POST['nama_gedung']; $id_kota = $_POST['id_kota']; $kapasitas = $_POST['kapasitas']; $deskripsi = $_POST['deskripsi_gedung']; if (empty($nama_gedung) || empty($kapasitas) || empty($deskripsi)) { $error_tambah = "Data tidak boleh kosong"; } if (isset($_FILES['image']) && $_FILES['image']['size'] > 0) { //$gambar_gedung= echo $_FILE['image']['name']; extract($_REQUEST); $obj->ubah($id, $nama_gedung, $id_kota, $deskripsi, $kapasitas); } else { $error_tambah = "Gambar tidak boleh kosong"; } }
<?php include '../model/manajemen-gedung.php'; include_once 'head-back.php'; echo "<div class='span6 offset1'>"; if (isset($error_tambah)) { echo '<div class="alert alert-error" id="alert"><strong>Peringatan !</strong> ' . $error_tambah . ' <button type="button" class="close" data-dismiss="alert" id="close">×</button></div>'; } if (isset($success_tambah)) { echo '<div class="alert alert-success">' . $success_tambah . '<button type="button" class="close" data-dismiss="alert" id="close">×</button></div>'; } $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['edit'])) { $obj->ubahSatu($_REQUEST['edit']); foreach ($obj->data as $val) { extract($val); ?> <!DOCTYPE html> <html> <div class="span8"> <center><h3>Edit Gedung </h3></center> <div class="container"> <div style="margin:15px 15px 15px 15px"> <form class="form-horizontal" method='post' action='../model/model-ubah.php?ubah=<?php echo $id_gedung; ?> ' enctype="multipart/form-data"> <fieldset>
<?php include '../model/manajemen-gedung.php'; //include_once ('head-back.php'); //echo "<div class='span6 offset1'>"; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['id'])) { $obj->detail($_REQUEST['id'], []); //print_r($result2->fetch_assoc('id')); //if($obj->data['']) echo "<div class='row'>"; echo "<div <!-- class='span12'-->"; echo "<table class='table table-striped'>"; echo "<th>#</th>\r\n\t\t\t\t<th>Tanggal</th>\r\n\t\t\t\t<th>Harga</th>\r\n\t\t\t\t<th>Status Gedung</th>\r\n\t\t\t\t<th> </th>"; foreach ($obj->data as $val) { extract($val); //print_r($obj); ?> <tr> <td><?php echo $id_detail; ?> </td> <td><?php echo $tanggal; ?> </td> <td><?php echo $harga; ?>
<?php /*session_start(); if (!isset($_SESSION['login'])){ header("Location:../index.php"); } */ include '../model/manajemen-gedung.php'; include_once 'head-back.php'; echo "<div class='span7'>"; echo "\r\n<center><h3>Daftar Gedung | <a href='view-tambah-gedung.php'> Tambah Gedung</a></h3></center>\r\n"; $obj = new Gedung("localhost", "root", "", "wedding"); $obj->daftar(); foreach ($obj->data as $val) { extract($val); ?> <!DOCTYPE html> <html> <script src="../../lib/js/jquery-latest.js"></script> <script src="../../lib/js/bootstrap.js"></script> <!--VIEW GEDUNG--> <div class="thumbnail"> <table border="0" width="100%" cellpadding="0" cellspacing = "0"> <!--thumbnail pilih gedung--> <td width="1%" valign="center"> <td width="40%" valign="center"> <img src="../../lib/img/<?php echo $gambar_gedung; ?>
<?php //include('../model/model-detail.php'); include '../model/manajemen-gedung.php'; include_once 'head-back.php'; echo "<div class='span6 offset1'>"; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['id'])) { $obj->detail($_REQUEST['id']); $id_gedung = $_REQUEST['id']; ?> <html> <head> </head> <body> <!-- VIEW DETAIL --> <table class="table table-hover" width="100%" border="0"> <tr> <th width="25%">Tanggal</th> <th width="25%">Status</th> <th width="25%">Harga</th> <th width="25%">Edit | Hapus</th> </tr> <?php foreach ($obj->data as $val) { extract($val); ?> <tr align="center"> <td><?php echo $tanggal;
<?php include 'manajemen-gedung.php'; //include_once ('head-back.php'); //echo "<div class='span6 offset1'>"; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['submit'])) { $id_gedung = $_POST['id_gedung']; //$id_kota=$_POST['id_kota']; $tanggal = $_POST['tanggal']; $harga = $_POST['harga']; $id_status = $_POST['id_stat']; if (empty($tanggal) || empty($harga)) { $error_tambah = "Data tidak boleh kosong"; } else { //if(isset($_FILES['image']) && $_FILES['image']['size'] > 0){ //$gambar_gedung= echo $_FILE['image']['name']; extract($_REQUEST); $obj->tambah_detail($id_gedung, $tanggal, $harga, $id_status); } }
<?php include '../model/model-tambah.php'; include_once 'head-back.php'; echo "<div class='span6 offset1'>"; if (isset($error_tambah)) { echo '<div class="alert alert-error" id="alert"><strong>Peringatan !</strong> ' . $error_tambah . ' <button type="button" class="close" data-dismiss="alert" id="close">×</button></div>'; } if (isset($success_tambah)) { echo '<div class="alert alert-success">' . $success_tambah . '<button type="button" class="close" data-dismiss="alert" id="close">×</button></div>'; } $obj = new Gedung("localhost", "root", "", "wedding"); $obj->opsi(); //echo $val['nama_kota']; /* extract ($val); */ ?> <!DOCTYPE html> <html> <div class="span9"> <center><h3><a href='view-gedung.php'>Daftar Gedung</a> | Tambah Gedung</h3></center> <div class="container"> <div style="margin:15px 15px 15px 15px"> <form class="form form-horizontal" method="post" action="#" enctype="multipart/form-data"> <fieldset> <div class="control-group">
<?php include 'manajemen-gedung.php'; //include_once ('head-back.php'); //echo "<div class='span6 offset1'>"; $obj = new Gedung("localhost", "root", "", "wedding"); if (isset($_REQUEST['submit'])) { $nama_gedung = $_POST['nama_gedung']; //$id_kota=$_POST['id_kota']; $kapasitas = $_POST['kapasitas']; $deskripsi = $_POST['deskripsi_gedung']; if (empty($nama_gedung) || empty($kapasitas) || empty($deskripsi)) { $error_tambah = "Data tidak boleh kosong"; } if (isset($_FILES['image']) && $_FILES['image']['size'] > 0) { //$gambar_gedung= echo $_FILE['image']['name']; extract($_REQUEST); $obj->tambah($nama_gedung, $id_kota, $deskripsi_gedung, $kapasitas); } }