-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin-create-destination.php
186 lines (169 loc) · 9.51 KB
/
admin-create-destination.php
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
require('./destination_process.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Guide_Me | Admin Destination Creation</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Pooled Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="css/morris.css" type="text/css"/>
<link href="css/font-awesome.css" rel="stylesheet">
<script src="js/jquery-2.1.4.min.js"></script>
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet' type='text/css'/>
<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="mother-grid-inner">
<!--header start here-->
<?php include('includes/header.php'); ?>
<div class="clearfix"> </div>
</div>
<!--heder end here-->
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard.php">Home</a><i class="fa fa-angle-right"></i>Create Destination </li>
</ol>
<div class="grid-form">
<div class="grid-form1">
<h3>Create Destination</h3>
<?php if ($error) { ?>
<div class="errorWrap"><strong>ERROR</strong>: <?php echo htmlentities($error); ?> </div>
<?php } else if ($msg) { ?>
<div class="succWrap"><strong>SUCCESS</strong>: <?php echo htmlentities($msg); ?> </div>
<?php } ?>
<div class="tab-content">
<div class="tab-pane active" id="horizontal-form">
<form class="form-horizontal" name="package" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Destination Name</label>
<div class="col-sm-8">
<input type="text" class="form-control1" name="destination_name" id="packagename" placeholder="Create Destination" required>
</div>
</div>
<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Destination Category</label>
<div class="col-sm-8">
<select name="destination_category">
<option value="ART & CULTURE">ART & CULTURE</option>
<option value="FAMILY">FAMILY</option>
<option value="ROAD TRIP">ROAD TRIP</option>
<option value="ADVENTURE">ADVENTURE</option>
</select>
</div>
</div>
<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Destination City</label>
<div class="col-sm-8">
<input type="text" class="form-control1" name="destination_location" id="packagelocation" placeholder=" Destination Location" required>
</div>
</div>
<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Small Description</label>
<div class="col-sm-8">
<input type="text" class="form-control1" name="small_description" id="smalldescription" placeholder=" Small Description" required>
</div>
</div>
<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Destination Details</label>
<div class="col-sm-8">
<textarea class="form-control" rows="5" cols="50" name="destinationdetails" id="packagedetails" placeholder="Destination Details" required></textarea>
</div>
</div>
<div class="form-group">
<label for="focusedinput" class="col-sm-2 control-label">Destination Image</label>
<div class="col-sm-8">
<input type="file" name="destinationimage" id="packageimage" required>
</div>
</div>
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<button type="submit" name="submit" class="btn-primary btn">Create</button>
<button type="reset" class="btn-inverse btn">Reset</button>
</div>
</div>
</div>
</form>
</div>
</div>
<!--//grid-->
<!-- script-for sticky-nav -->
<script>
$(document).ready(function () {
var navoffeset = $(".header-main").offset().top;
$(window).scroll(function () {
var scrollpos = $(window).scrollTop();
if (scrollpos >= navoffeset) {
$(".header-main").addClass("fixed");
} else {
$(".header-main").removeClass("fixed");
}
});
});
</script>
<!-- /script-for sticky-nav -->
<!--inner block start here-->
<div class="inner-block">
</div>
<!--inner block end here-->
<!--copy rights start here-->
<?php include('includes/footer.php'); ?>
<!--COPY rights end here-->
</div>
</div>
<!--//content-inner-->
<!--/sidebar-menu-->
<?php include('includes/sidebarmenu.php'); ?>
<div class="clearfix"></div>
</div>
<script>
var toggle = true;
$(".sidebar-icon").click(function () {
if (toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position": "absolute"});
} else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function () {
$("#menu span").css({"position": "relative"});
}, 400);
}
toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- /Bootstrap Core JavaScript -->
</body>
</html>