forked from RGClary/ACM-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91b0a63
commit 77c1ac4
Showing
5 changed files
with
42 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,53 +10,20 @@ | |
} | ||
|
||
$recipient = 'ACM-W UTSA'; | ||
if($_POST['recipient'] == 'president'){ | ||
$recipient = 'Austin Carpenter'; | ||
$to = '[email protected]'; | ||
if($_POST['recipient'] == 'acmw'){ | ||
//use defaults | ||
} | ||
else if($_POST['recipient'] == 'vice-president'){ | ||
$recipient = 'Carla Cardenas'; | ||
$to = '[email protected]'; | ||
if($_POST['recipient'] == 'acmw-chair'){ | ||
$recipient = 'Tiffany Tabourne'; | ||
} | ||
else if($_POST['recipient'] == 'secretary'){ | ||
$recipient = 'Tehya Garza'; | ||
$to = '[email protected]'; | ||
else if($_POST['recipient'] == 'acmw-vice-chair'){ | ||
$recipient = 'Anna Arroyo'; | ||
} | ||
else if($_POST['recipient'] == 'treasurer'){ | ||
$recipient = 'Victoria Huerta'; | ||
$to = '[email protected]'; | ||
} | ||
else if($_POST['recipient'] == 'acmw-chair'){ | ||
$recipient = 'ACMW'; | ||
$to = '[email protected]'; | ||
} | ||
else if($_POST['recipient'] == 'rowdyhacks-chair'){ | ||
$recipient = 'Matt Moore'; | ||
$to = '[email protected]'; | ||
} | ||
else if($_POST['recipient'] == 'pr'){ | ||
$recipient = 'Nicholas Rillera'; | ||
$to = '[email protected]'; | ||
} | ||
else if($_POST['recipient'] == 'social'){ | ||
$recipient = 'John Le'; | ||
$to = '[email protected]'; | ||
} | ||
else if($_POST['recipient'] == 'media'){ | ||
$recipient = 'Jeanine Vasquez'; | ||
$to = '[email protected]'; | ||
} | ||
else if($_POST['recipient'] == 'projects'){ | ||
$recipient = 'Gustavo Chavez'; | ||
$to = '[email protected]'; | ||
} | ||
else if($_POST['recipient'] == 'membership'){ | ||
$recipient = 'Samuel Burnett'; | ||
$to = '[email protected]'; | ||
else if($_POST['recipient'] == 'acmw-secretary'){ | ||
$recipient = 'Patricia Lao'; | ||
} | ||
else{ | ||
$recipient = 'undefined recipient'; | ||
$to = '[email protected]'; | ||
} | ||
|
||
$body = 'Message from acm-utsa.org, sent by ' . htmlentities($sender) . '<br />Email: ' . htmlentities($_POST['email']) . '<br />For: '.htmlentities($recipient).'<br />Message: <br />' . htmlentities($text); | ||
|
@@ -151,36 +118,18 @@ | |
<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 value="acmw"> | ||
ACM-W UTSA | ||
</option> | ||
<option value="president"<?php if($position == 'president') echo(' selected');?>> | ||
President | ||
<option value="acmw-chair"<?php if($position == 'president') echo(' selected');?>> | ||
ACM-W Chair | ||
</option> | ||
<option value="vice-president"<?php if($position == 'vice-president') echo(' selected');?>> | ||
Vice President | ||
<option value="acmw-vice-chair"<?php if($position == 'vice-president') echo(' selected');?>> | ||
Vice Chair | ||
</option> | ||
<option value="secretary"<?php if($position == 'secretary') echo(' selected');?>> | ||
<option value="acmw-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="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> | ||
</select> | ||
</div> | ||
<div class="col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl" style="text-align:center;"> | ||
|
@@ -190,36 +139,18 @@ | |
</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 value="acmw"> | ||
ACM-W UTSA | ||
</option> | ||
<option value="president"<?php if($position == 'president') echo(' selected');?>> | ||
President | ||
<option value="acmw-chair"<?php if($position == 'president') echo(' selected');?>> | ||
ACM-W Chair | ||
</option> | ||
<option value="vice-president"<?php if($position == 'vice-president') echo(' selected');?>> | ||
Vice President | ||
<option value="acmw-vice-chair"<?php if($position == 'vice-president') echo(' selected');?>> | ||
Vice Chair | ||
</option> | ||
<option value="secretary"<?php if($position == 'secretary') echo(' selected');?>> | ||
<option value="acmw-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="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> | ||
</select> | ||
</div> | ||
</div> | ||
|