-
Notifications
You must be signed in to change notification settings - Fork 2
/
PostReview.php
234 lines (198 loc) · 9.76 KB
/
PostReview.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE html>
<!--[if IE 9]>
<html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<?php include 'Controller.php'; ?>
<meta charset="utf-8">
<title>GoDude</title>
<meta name="description" content="Worthy a Bootstrap-based, Responsive HTML5 Template">
<meta name="author" content="htmlcoder.me">
<!-- Mobile Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="shortcut icon" href="images/favicon.ico">
<!-- Web Fonts -->
<link
href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700,300&subset=latin,latin-ext'
rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:700,400,300' rel='stylesheet' type='text/css'>
<!-- Font Awesome CSS -->
<link href="fonts/font-awesome/css/font-awesome.css" rel="stylesheet">
<!-- Plugins -->
<link href="css/animations.css" rel="stylesheet">
<!-- Worthy core CSS file -->
<link href="css/style.css" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom css -->
<link href="css/custom.css" rel="stylesheet">
<script>
$(document).ready(function () {
$('#add').click(function () {
$("#add").click(function () {
$(this).hide();
});
});
</script>
<script type="text/javascript" src='//cdn.tinymce.com/4/tinymce.min.js'></script>
<script type="text/javascript">
tinymce.init({
selector: '#myTextarea',
theme: 'modern',
height: 400,
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
'save table contextmenu directionality template paste textcolor'
],
content_css: 'css/content.css',
toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image'
});
</script>
</head>
<body class="no-trans">
<!-- scrollToTop -->
<!-- ================ -->
<div class="scrollToTop"><i class="icon-up-open-big"></i></div>
<!-- header start -->
<!-- ================ -->
<div class="header fixed clearfix navbar navbar-fixed-top" style="background-color:black;">
<div class="container">
<div class="row">
<div class="col-md-4">
<!-- header-left start -->
<!-- ================ -->
<div class="header-left clearfix">
<!-- logo -->
<div class="logo smooth-scroll">
<a href="#banner"><img id="logo" src="images/favicon.ico" alt="Worthy"></a>
</div>
<!-- name-and-slogan -->
<div class="site-name-and-slogan smooth-scroll">
<div class="site-name"><a href="index.html">GoDude</a></div>
<!--<div class="site-slogan">Free Bootstrap Theme by <a target="_blank" href="http://htmlcoder.me">HtmlCoder</a></div>-->
</div>
</div>
<!-- header-left end -->
</div>
<div class="col-md-8">
<!-- header-right start -->
<!-- ================ -->
<div class="header-right clearfix">
<!-- main-navigation start -->
<!-- ================ -->
<div class="main-navigation animated">
<!-- navbar start -->
<!-- ================ -->
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse scrollspy smooth-scroll" id="navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html">Home</a></li>
<li ><a href="Topic.php">Review</a></li>
<li class="active"><a href="PostReview.php">Add Review</a></li>
</ul>
</div>
</div>
</nav>
<!-- navbar end -->
</div>
<!-- main-navigation end -->
</div>
<!-- header-right end -->
</div>
</div>
</div>
</div>
<!-- header end -->
<!-- section start -->
<!-- ================ -->
<div class="section translucent-bg bg-image-2 pb-clear">
<!--<div class="section">-->
<div class="container" style="padding-top: 5%;padding-bottom: 5%">
<h1 class="text-center title" id="review">Write Your Story</h1>
<br>
<div class="separator"></div>
<div class="row object-non-visible" data-animation-effect="fadeIn">
<div class="col-md-12">
<!-- portfolio items start -->
<script>
function isNumberKey(evt){
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && charCode != 46 &&(charCode < 48 || charCode > 57))
return false;
return true;
}
</script>
<span> suggest to upload image in google Drive</span>
<form action="Controller.php" method="post" id="form1" enctype="multipart/form-data">
<div class="form-group">
<label for="inputImage" style="font-size: 22px"> Image Cover Url:<FONT COLOR="#F00">*</FONT></label>
<input type="text" name="image" size="51" placeholder="https://url" required="true" class="form-control">
</div>
<div class="form-group">
<label for="inputTopic" style="font-size: 22px"> Topic :<FONT COLOR="#F00">*</FONT></label>
<input type="text" name="topic" placeholder="Topic" size="51" required="true" class="form-control">
</div>
<div class="form-group">
<label for="inputDetail" style="font-size: 22px"> Story : <FONT COLOR="#F00">*</FONT></label>
<textarea class="form-control" id="myTextarea" name="detail"></textarea>
</div>
<div class="form-group">
<label for="inputLocation" style="font-size: 22px"> Location : <FONT COLOR="#F00">*</FONT></label>
<input type="text" name="location" placeholder="เกาะล้าน ภูกระดึง" size="51" required="true" class="form-control">
</div>
<div class="form-group">
<label for="exampleInputEmail1" style="font-size: 22px">Tag : <FONT COLOR="#F00">*</FONT></label>
<select name="tag" required="true" onchange="this.form.submit()" style="color:black">
<option value="town" style="color:black;" selected="selected">Town</option>
<option value="forest" style="color:black;">Forest</option>
<option value="mountain" style="color:black;">Mountain</option>
<option value="sea" style="color:black;">Sea</option>
</select>
</div>
<button type="submit" name="submit" class="btn btn-success" >Submit</button>
</form>
<!-- portfolio items end -->
</div>
</div>
</div>
</div>
<!-- section end -->
<?php $s = "20%" ;
if((int)$s == 20)
echo '3333';
?>
<!-- JavaScript files placed at the end of the document so the pages load faster
================================================== -->
<!-- Jquery and Bootstap core js files -->
<script type="text/javascript" src="plugins/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<!-- Modernizr javascript -->
<script type="text/javascript" src="plugins/modernizr.js"></script>
<!-- Isotope javascript -->
<script type="text/javascript" src="plugins/isotope/isotope.pkgd.min.js"></script>
<!-- Backstretch javascript -->
<script type="text/javascript" src="plugins/jquery.backstretch.min.js"></script>
<!-- Appear javascript -->
<script type="text/javascript" src="plugins/jquery.appear.js"></script>
<!-- Initialization of Plugins -->
<script type="text/javascript" src="js/template.js"></script>
<!-- Custom Scripts -->
<script type="text/javascript" src="js/custom.js"></script>
</body>
</html>