-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment_form.html
108 lines (89 loc) · 3.25 KB
/
comment_form.html
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
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<title>
</title>
<style>
body{
font-family: Microsoft JhengHei;
background-color:#EDEDED;
margin: 35px;
color: #6C6C6C;
font-size: 16px;
/*background: #80D1BC url(http://icons.iconarchive.com/icons/pelfusion/long-shadow-media/512/Message-Bubble-icon.png) center center fixed no-repeat; */
}
textarea { width: 270px; height: 8em; }
#Q, #name, #dep,#tel { width: 180px; }
</style>
<body>
<center><h1>Contact Us</h1>
<div style="background-color:#990000;height:3px;width:330px;"> </div>
<br>
<div style="color:#898989;">
Welcome to provide your comments and feedbacks </div>
</center>
<form class="form-horizontal">
<table style="margin-left:1.6cm;margin-left:1cm;">
<tr>
<td width="420px" ><br>
<div class="form-group">
<label for="Q" class="control-label col-xs-3"> Category : </label>
<div class="col-xs-9">
<select class="form-control" id="Q" name="Q">
<option >Feedback</option>
<option >Question</option>
<option >Error report</option>
<option >Others</option>
</select>
</div>
</div>
<div class="form-group">
<label for="name" class="control-label col-xs-3"> Name: </label>
<div class="col-xs-9">
<input id="name" name="name" type="text" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="dep" class="control-label col-xs-3">Department:</label>
<div class="col-xs-9">
<input id="dep" name="dep" type="text" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="tel" class="control-label col-xs-3">Tel:</label>
<div class="col-xs-9">
<input id="tel" name="tel" type="text" class="form-control" />
</div>
</div>
</td>
<td width="47%"><br>
<b>Message: <b> (Required)
<p><textarea id="message" name="message" type="text" cols="30" rows="6" class="form-control" required></textarea></p>
<center>
<input onclick="formSubmit()" type="submit" value="留言" class="btn btn-default" />
</center>
</td>
</tr>
</table>
</form>
</body>
<script type="text/javascript">
function formSubmit() {
var elem = document.getElementById("message");
if(elem.value.length ==0){ }
else{
alert("*****************We Got Your Message******************");
google.script.run.getValuesFromForm(document.forms[0]); //??????
//Refresh the form after submitted
$("form").find(":text,textarea").each(function() {
$(this).val(""); });
}
}
</script>
</form>