forked from RGClary/ACM-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.php
230 lines (230 loc) · 13.1 KB
/
contact.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
<!DOCTYPE html>
<html>
<head>
<?php
require('common/head-includes.php');
?>
<title>Contact Us | Association for Computing Machinery UTSA</title>
<style type="text/css">
select, input[type="text"], input[type="password"], textarea {
background-color: #DFDFDF;
border-radius: 3px;
border-style: none;
outline-color: #204972;
outline-width: 1px;
outline-style: none;
padding-left: 10px;
padding-right: 10px;
}
select:focus, input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
outline-style: none;
box-shadow: 0px 0px 0px 3px #204972;
}
/*
select::selection, input[type="text"]::selection, input[type="password"]::selection, textarea::selection {
background:#204972;
color: #FFFFFF;
}
*/
</style>
<script type="text/javascript">
$(document).ready(function(){
<?php
if(isset($_GET['message_stat'])){
echo('$("#stat-modal").modal("show");');
}
?>
});
</script>
</head>
<body>
<?php
require('common/menu.php');
$message_stat = '';
$message_stat_title = '';
if(isset($_GET['message_stat'])){
if($_GET['message_stat'] == 1){
$message_stat_title = 'Thanks';
$message_stat = 'Your message has successfully been sent';
}
else if($_GET['message_stat'] == 2){
$message_stat_title = 'Error';
$message_stat = 'Error: message failed to send';
}
else{
$message_stat_title = 'Error';
$message_stat = 'Message Status: unknown';
}
}
?>
<div class="modal fade" id="stat-modal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<div type="button" class="close" data-dismiss="modal">×</div>
<h4 class="modal-title">
<?php
echo(htmlentities($message_stat_title));
?>
</h4>
</div>
<div class="modal-body">
<p>
<?php
echo(htmlentities($message_stat));
?>
</p>
</div>
<!--
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<div>
-->
</div>
</div>
</div>
<div id="content" class="container">
<div class="row">
<div class="col-sm-12">
<div class="row section-container group">
<div class="col-sm-12">
<h1>Contact Us</h1>
<br />
<div class="row">
<div class="col-sm-8">
<p>
ACM's primary form of communication is through <a href="index#slack-container">Slack</a> at <a href="http://acm-utsa.slack.com">acm-utsa.slack.com</a> but you can contact us directly through the form below.
</p>
</div>
<div class="col-sm-4" style="text-align:center;">
<a class="link" href="slack_invite.php" target="_blank">
<input type="button" style="outline-style: none;" value="Request Slack Invite" />
</a>
</div>
</div>
<br />
<form action="send_message" method="post">
<?php
$position = '';
if(isset($_GET['position'])){
$position = $_GET['position'];
}
?>
<div class="row">
<div class="hidden-xs col-sm-12" style="text-align:left;margin-bottom:10px;">
<input type="text" name="name" placeholder="Your Name" aria-required="true" style="margin-right: 10px; width: 260px;" />
<input type="text" name="email" placeholder="Your Email" aria-required="true" style="width: 260px;" />
</div>
<div class="col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl" style="text-align:center;margin-top:10px;">
<input type="text" name="m-name" placeholder="Your Name" aria-required="true" style="width:100%;" />
</div>
<div class="col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl" style="text-align:center;margin-top:10px;margin-bottom:10px;">
<input type="text" name="m-email" placeholder="Your Email" aria-required="true" style="width:100%;" />
</div>
</div>
<div class="row">
<div class="col-md-12">
<textarea name="text" placeholder="Your Message" style="width:100%;height:400px;"></textarea>
</div>
</div>
<div class="row">
<div class="col-sm-12 hidden-xs" style="text-align:right;">
<input type="submit" value="Send" id="contact-form-submit-button" /> to
<select name="recipient" style="margin-left:10px;">
<option value="acm">
ACM UTSA
</option>
<option value="president"<?php if($position == 'president') echo(' selected');?>>
President
</option>
<option value="vice-president"<?php if($position == 'vice-president') echo(' selected');?>>
Vice President
</option>
<option value="secretary"<?php if($position == 'secretary') echo(' selected');?>>
Secretary
</option>
<option value="treasurer"<?php if($position == 'treasurer') echo(' selected');?>>
Treasurer
</option>
<option value="acmw-chair"<?php if($position == 'acmw-chair') echo(' selected');?>>
ACMW Chair
</option>
<option value="rowdyhacks-chair"<?php if($position == 'rowdyhacks-chair') echo(' selected');?>>
RowdyHacks Chair
</option>
<option value="pr"<?php if($position == 'pr') echo(' selected');?>>
Public Relations
</option>
<option value="social"<?php if($position == 'social') echo(' selected');?>>
Social Events
</option>
<option value="media"<?php if($position == 'media') echo(' selected');?>>
Media
</option>
<option value="projects"<?php if($position == 'projects') echo(' selected');?>>
Projects
</option>
<option value="membership"<?php if($position == 'membership') echo(' selected');?>>
Membership
</option>
</select>
</div>
<div class="col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl" style="text-align:center;">
<input type="submit" value="Send" id="contact-form-submit-button" />
<br />
to
</div>
<div class="col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl" style="text-align:center;margin-top:10px;">
<select name="recipient">
<option value="acm">
ACM UTSA
</option>
<option value="president"<?php if($position == 'president') echo(' selected');?>>
President
</option>
<option value="vice-president"<?php if($position == 'vice-president') echo(' selected');?>>
Vice President
</option>
<option value="secretary"<?php if($position == 'secretary') echo(' selected');?>>
Secretary
</option>
<option value="treasurer"<?php if($position == 'treasurer') echo(' selected');?>>
Treasurer
</option>
<!--
<option value="acmw-chair"<?php if($position == 'acmw-chair') echo(' selected');?>>
ACMW Chair
</option>
-->
<option value="rowdyhacks-chair"<?php if($position == 'rowdyhacks-chair') echo(' selected');?>>
RowdyHacks Chair
</option>
<option value="pr"<?php if($position == 'pr') echo(' selected');?>>
Public Relations
</option>
<option value="social"<?php if($position == 'social') echo(' selected');?>>
Social Events
</option>
<option value="media"<?php if($position == 'media') echo(' selected');?>>
Media
</option>
<option value="projects"<?php if($position == 'projects') echo(' selected');?>>
Projects
</option>
<option value="membership"<?php if($position == 'membership') echo(' selected');?>>
Membership
</option>
</select>
</div>
</div>
<form>
</div>
</div>
</div>
</div>
</div>
<?php
require('common/footer.php');
?>
</body>
</html>