Skip to content
Snippets Groups Projects
Commit 5024272b authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Add Union Plaza; Add email for 2nd backup contact

parent 430165f3
Branches
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ $url = "http://localhost/workspace/ucomm_webforms/landscape/outdoorevents/";
$sendToEmail = "jdoe1@unl.edu"; //Contact person who is collecting data
$sendToEmailBackup = "sdoe2@unl.edu"; //Backup contact, set to NULL if not wanted
$sendToEmailBackup2 = "sdoe2@unl.edu"; //2nd Backup contact, set to NULL if not wanted
$sendToEmailDev= "appdev1@unl.edu"; //Application developer as a backup
$sendFromEmail = $sendToEmail; //Will send email from this address.
$emailSubject = "UNL Outdoor Event Space Request"; //Subject for the email.
......
......@@ -7,7 +7,7 @@ if (file_exists(dirname(__FILE__).'/../../../config-landscape-outdoorevents.inc.
if (!empty($_POST)) {
$error_msg = '';
if (in_array($_POST['location'], array("lied","meier","sheldon","wick"))) {
if (in_array($_POST['location'], array("lied","union","sheldon","wick"))) {
$error_msg .= 'This location\'s outdoor events are not arranged through Landscape Services. Please contact them directly. <a href="http://www.unl.edu/unlspecialevents">Contact info available here</a>';
}
if (($_POST['location'] == 'other' && empty($_POST['location_other'])) ||
......@@ -78,6 +78,11 @@ if (!empty($_POST)) {
$mailer->to_address = $sendToEmailBackup;
$mailer->send();
}
// Send to 2nd backup contact
if (!empty($sendToEmailBackup2)) {
$mailer->to_address = $sendToEmailBackup2;
$mailer->send();
}
// Send another copy to the developer as a backup
$mailer->to_address = $sendToEmailDev;
$mailer->send();
......@@ -100,7 +105,7 @@ $page->head .= <<<EOF
WDN.initializePlugin('notice');
$('#location').change(function() {
if ($(this).val() == 'lied' ||
$(this).val() == 'meier' ||
$(this).val() == 'union' ||
$(this).val() == 'sheldon' ||
$(this).val() == 'wick') {
$('#location_message').show();
......@@ -279,7 +284,8 @@ $page->maincontentarea .= <<<EOF
<option value="kauffman">Kauffman Center North</option>
<option value="lied">Lied Center Plaza</option>
<option value="maxwell">Maxwell Arboretum</option>
<option value="meier">Meier Commons</option>
<option value="meier">Meier Commons (Greenspace)</option>
<option value="union">Nebraska Union Plaza</option>
<option value="porch">The Porch</option>
<option value="sheldon">Sheldon Memorial Art Gallery &amp; Sculpture Garden</option>
<option value="wick">Wick Alumni Center and Holling Garden</option>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment