-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_hotel.php
More file actions
78 lines (58 loc) · 2.26 KB
/
edit_hotel.php
File metadata and controls
78 lines (58 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
include "koneksi.php";
$no = $_GET['no'];
$query = "SELECT * FROM hotel WHERE no='$no'";
$sql = mysqli_query($connect,$query);
$data = mysqli_fetch_array($sql,MYSQLI_BOTH);
?>
<div style='min-height:630px;'>
<br><br><br><br><br>
<form class="form-horizontal" method="post" action="proses_hotel.php" enctype="multipart/form-data" >
<fieldset>
<!-- Form Username -->
<center><legend><h2>Edit Data Hotel</h2></legend></center>
<br><br>
<!-- Text input-->
<input type="hidden" name="no" value="<?php echo $data['no']; ?>" >
<div class="form-group">
<label class="col-md-4 control-label" for="">Daerah</label>
<div class="col-md-4">
<input id="" name="daerah" type="text" placeholder="" class="form-control input-md" value="<?php echo $data['daerah'];?>">
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="">nama hotel</label>
<div class="col-md-4">
<input id="" name="nama_hotel" type="text" placeholder="" class="form-control input-md" value="<?php echo $data['nama_hotel'];?>">
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="">Tarif</label>
<div class="col-md-4">
<input id="" name="tarif" type="text" placeholder="" class="form-control input-md" value="<?php echo $data['tarif'];?>">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="filebutton">Masukkan Gambar</label>
<div class="col-md-4">
<input id="filebutton" name="fileToUpload" class="input-file" type="file" value="<?php echo $data['gambar'];?>">
</div>
</div>
<!-- Button (Double) -->
<div class="form-group">
<label class="col-md-4 control-label" for="simpan"></label>
<div class="col-md-8">
<input type="hidden" name="id" value="<?php echo $data['no'];?>">
<button type="submit" id="simpan" name="edit_hotel" class="btn btn-primary">Simpan</button>
<button id="reset" name="reset" class="btn btn-danger">Back</button>
</div>
</div>
<br><br>
</fieldset>
</form>
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->