} ?> </select> <input type="text" name="pay"> <input type="submit" name="button222" value="Booking"/> <input type="submit" name="button111" value="Batal"/> </form> <?php } ?> <?php if (isset($_POST['button222'])) { $q = mysql_query("INSERT INTO `vcorners`.`reservations` (`resv_date`,`resv_date2`,`title`, `name`, `identify_kinds`, `identify_value`, `payment_kinds`, `payment_value`, `idclass`) VALUES ( '" . $_SESSION['tgl1'] . "', '" . $_SESSION['tgl2'] . "', '" . $_POST['title'] . "', '" . $_POST['nama'] . "', '" . $_POST['identitas'] . "', '" . $_POST['iden'] . "', '" . $_POST['payment'] . "', '" . $_POST['pay'] . "', '" . $_SESSION['rm'] . "')"); if ($q) { unset($_SESSION['interval']); unset($_SESSION['tgl1']); unset($_SESSION['tgl2']); unset($_SESSION['rm']); unset($_SESSION['ada']); _direct("?y=" . session_id() . "&page=" . _encodeParam("about")); } } if (isset($_POST['button111'])) { unset($_SESSION['interval']); unset($_SESSION['tgl1']); unset($_SESSION['tgl2']); unset($_SESSION['rm']); unset($_SESSION['ada']); _direct("?y=" . session_id() . "&page=" . _encodeParam("reservasi")); }
} if ($fc6) { $sql6 = "Insert into facilities values ('" . $nid . "','" . $fc6 . "','Makan Malam','1')"; } else { $sql6 = "Insert into facilities values ('" . $nid . "','dinner','Makan Malam','0')"; } if ($fc7) { $sql7 = "Insert into facilities values ('" . $nid . "','" . $fc7 . "','Tempat Parkir','1')"; } else { $sql7 = "Insert into facilities values ('" . $nid . "','parking','Tempat Parkir','0')"; } if ($fc8) { $sql8 = "Insert into facilities values ('" . $nid . "','" . $fc8 . "','Cuci Gratis','1')"; } else { $sql8 = "Insert into facilities values ('" . $nid . "','laundry','Cuci Gratis','0')"; } $a1 = mysql_query($sql1); $a2 = mysql_query($sql2); $a3 = mysql_query($sql3); $a4 = mysql_query($sql4); $a5 = mysql_query($sql5); $a6 = mysql_query($sql6); $a7 = mysql_query($sql7); $a8 = mysql_query($sql8); if ($a8) { _direct("?p=class"); } } } } ob_end_flush();
<?php echo strtoupper(str_replace("_", " ", $r['options_name'])); ?> </label> <input name="config[]" value="<?php echo $r['value']; ?> "><hr> <?php } ?> <input type="submit" class="btn btn-primary btn-large" value="Simpan" name="button"> </form> <?php if (isset($_POST['button'])) { // _RunSQL("Update options SET value='".$_POST[$b]."' Where idoptions='".$_POST[$b]."'","Berhasil diupdate","?p=appconfig"); //echo $_POST[$b].name; $i = 0; foreach ($_POST['config'] as $value) { $i = $i + 1; // add to the database $sql = "Update options SET value = '" . mysql_real_escape_string($value) . "' Where idoptions='" . $i . "'"; _RunSQL($sql); } _direct("?p=appconfig"); _setsession("add", "1"); } ?> </fieldset> </div>
echo $r['title']; ?> "/> <label>Diskon (dalam persen)</label> <input type="text" name="diskon" class="input-small" value="<?php echo $r['discount']; ?> "/>%<br /> Dari <input name="tgl1" type="date" id="datepicker" value="<?php echo $r['start_date']; ?> "> Hingga <input name="tgl2" type="date" id="datepicker2" value="<?php echo $r['end_date']; ?> "> <label>Deskripsi</label> <textarea id="editor1" name="editor1" rows="10" cols="80"> <?php echo $r['description']; ?> </textarea> <input type="submit" class="btn btn-primary" name="button" id="button" value="Update"> </form> <?php if (isset($_POST['button'])) { $q = mysql_query("Update promote SET idclass='" . $_POST['jenis'] . "',description='" . $_POST['editor1'] . "',title='" . $_POST['judul'] . "',start_date='" . $_POST['tgl1'] . "',end_date='" . $_POST['tgl2'] . "',discount='" . $_POST['diskon'] . "'"); if ($q) { _direct("?p=promo"); } }
ob_start(); ?> <form name="form1" method="post" action=""> <label>Judul</label> <input type="text" name="judul" id="judul"> <label>Feature Image (akan ditampilkan sebagai thumbnails)</label> <input type="text" name="photo" id="photo" onClick="window.open('<?php echo $base_url; ?> includes/imguploads/index.php','popuppage','width=600,toolbar=0,resizable=0,scrollbars=no,height=400,top=100,left=100');"> <input type="hidden" name="ext" id="ext" /> <input type="hidden" name="nfile" id="nfile" /> <p></p> <label>Isi Berita</label> <textarea id="editor1" name="editor1" rows="10" cols="80"></textarea> <p></p> <input type="submit" class="btn btn-primary" name="button" id="button" value="Tambah"> </form> <?php if (isset($_POST["button"])) { date_default_timezone_set('Asia/Jakarta'); $skrg = date("Y-m-d"); $rs = mysql_query("INSERT INTO post_article (`title`, `featurephoto`, `post_entry`, `create_date`,`create_by`,`hit`) VALUES ('" . $_POST['judul'] . "','" . $_POST['photo'] . "', '" . $_POST['editor1'] . "','" . $skrg . "','admin','0')") or die(mysql_error()); if ($rs) { _direct("?p=news"); } } ob_end_flush();
?> </select> <?php if (isset($_GET['id'])) { $p = mysql_query("Select count(idrooms) as nr,namespace from rooms where idclass='" . $_GET['id'] . "'"); $nr = mysql_fetch_array($p); $rs = $nr['nr']; echo '<label>Banyak villa</label>'; echo '<input type="text" name="jumlah" class="input-xxlarge" value="' . $rs . '">'; echo '<label>Nama Villa</label>'; echo '<input type="text" name="nspace" class="input-xxlarge" value="' . $nr['namespace'] . '">'; echo '<p></p><p></p>'; echo '<input type="submit" value="Update" name="button">'; } ?> </form> <?php if (isset($_POST['button'])) { mysql_query("Delete from rooms where idclass='" . $_GET['id'] . "'"); $jml = $_POST['jumlah']; for ($i = 1; $i <= $jml; $i++) { $sp = $_POST['nspace'] . $i; mysql_query("Insert into rooms (`numbers`,`idclass`,`status`,`namespace`) values ('" . $sp . "','" . $_GET['id'] . "','0','" . $_POST['nspace'] . "')"); } _direct("?p=room"); }