-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_all_room.php
More file actions
129 lines (82 loc) · 3.67 KB
/
edit_all_room.php
File metadata and controls
129 lines (82 loc) · 3.67 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
include_once 'admin/include/class.user.php';
$user=new User();
$id=$_GET['id'];
$sql="SELECT * FROM rooms WHERE room_id='$id'";
$query=mysqli_query($user->db, $sql);
$row = mysqli_fetch_array($query);
if(isset($_REQUEST[ 'submit']))
{
extract($_REQUEST);
$result=$user->edit_all_room($checkin, $checkout, $name, $phone,$id);
if($result)
{
echo "<script type='text/javascript'>
alert('".$result."');
</script>";
}
}
?>
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Hotel Booking</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="admin/css/reg.css" type="text/css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( ".datepicker" ).datepicker({
dateFormat : 'yy-mm-dd'
});
} );
</script>
</head>
<body>
<div class="container">
<img class="img-responsive" src="images/home_banner.jpg" style="width:100%; height:180px;">
<div class="well">
<h2>EDIT</h2>
<h2><?php echo $row['room_cat']?></h2>h2>
<hr>
<form action="" method="post" name="room_category">
<div class="form-group">
<label for="checkin">Check In :</label>
<input type="text" class="datepicker" name="checkin" value="<?php echo $row['checkin']?>">
</div>
<div class="form-group">
<label for="checkout">Check Out:</label>
<input type="text" class="datepicker" name="checkout" value="<?php echo $row['checkout']?>">
</div>
<div class="form-group">
<label for="name">Enter Your Full Name:</label>
<input type="text" class="form-control" name="name" value="<?php echo $row['name']?>" required>
</div>
<div class="form-group">
<label for="phone">Enter Your Phone Number:</label>
<input type="text" class="form-control" name="phone" value="<?php echo $row['phone']?>" required>
</div>
<button type="submit" class="btn btn-lg btn-primary button" name="submit">Update</button>
<br>
<div id="click_here">
<a href="admin.php">Back to Admin Panel</a>
</div>
</form>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</body>
</html>