<tr> <td><label for="passwordPlaintext">Password: </label></td> <td><input type="text" name="passwordPlaintext" id="passwordPlaintext" value="<?php echo $invalidSubmit ? isset($_REQUEST['passwordPlaintext']) ? $_REQUEST['passwordPlaintext'] : '' : $userEditor->getCurrentPasswordPlaintext(); ?> " placeholder="Fun Password" size="25" required maxlength="254" tabindex="<?php echo $tabIndex++; ?> " /></td> <td><label for="notesRSVP">User RSVP Notes: </label></td> <td><textarea name="notesRSVP" id="notesRSVP" cols="20" rows="1" placeholder="User-Submitted Notes" tabindex="<?php echo $tabIndex++; ?> "><?php echo $invalidSubmit ? isset($_REQUEST['notesRSVP']) ? $_REQUEST['notesRSVP'] : '' : $userEditor->getCurrentNotesRSVP(); ?> </textarea></td> </tr> <tr> <td><label for="name">Display Name: </label></td> <td><input type="text" name="name" id="name" value="<?php echo $invalidSubmit ? isset($_REQUEST['name']) ? $_REQUEST['name'] : '' : $userEditor->getCurrentFullName(); ?> " placeholder="Name Shown to User" size="25" maxlength="254" required tabindex="<?php echo $tabIndex++; ?> " /></td> <td><label for="gift">Admin Gift Notes: </label></td> <td><textarea name="gift" id="gift" cols="20" rows="3" placeholder="Our gift notes" tabindex="<?php
$emailMsg .= ' - Previous: [' . ($currentUser->getAttendeeIsAttending($attID) ? 'x' : ' ') . '] ' . $currentUser->getAttendeeDisplayName($attID) . "\r\n"; } if ($_REQUEST['displayName'][$attID] != '') { $currentUser->updateAttendeeRSVP($attID, $_REQUEST['isAttending'][$attID] == 'on' ? true : false, $isPlusOne, $_REQUEST['displayName'][$attID]); } else { $currentUser->updateAttendeeRSVP($attID, $_REQUEST['isAttending'][$attID] == 'on' ? true : false, $isPlusOne); } } $currentUser->updateCurrentRSVP($_REQUEST['email'], $_REQUEST['notesRSVP']); if ($isUpdate) { $emailMsg .= 'TotalAttending: ' . $currentUser->getCurrentNumAttending() . "\r\n"; $emailMsg .= 'Previous Total: ' . $oldTotal . "\r\n"; $delta = -($oldTotal - intval($currentUser->getCurrentNumAttending())); $emailMsg .= 'Delta: ' . ($delta >= 0 ? '+' : '') . $delta . "\r\n\r\n"; $emailMsg .= 'Email: ' . $currentUser->getcurrentUserEmail() . "\r\n"; $emailMsg .= "\r\n\r\nNotes: \r\n" . $currentUser->getCurrentNotesRSVP(); $emailMsg .= '</pre>--------<br />'; $emailMsg .= 'Total Currently RSVP\'d: ' . $currentUser->getTotalAttending() . '<br />'; $emailMsg .= 'Before this update: ' . $oldSumAttending; require_once "emailDetails.inc"; //echo 'DEBUG:<br />Mailto: ' . $mailto . '<br />Subject: ' . 'Updated RSVP - ' . $currentUser->getCurrentFullName() . '<br />Headers: ' . $headers . '<br />Email Body:<br />' . $emailMsg . '<br /><br />'; mail($mailto, 'Updated RSVP - ' . $currentUser->getCurrentFullName(), $emailMsg, $headers); } echo '<p>Thanks for the ' . ($isUpdate ? 'update' : 'response') . '! We have ' . $currentUser->getCurrentAmountAttending() . ' confirmed guests in your party. '; if ($currentUser->getCurrentNumAttending() == 0) { echo 'That\'s a <em>little</em> bit sad, but it will be OK.</p>'; } else { echo 'Huzzah!</p>'; } if ($isUpdate) { echo '<p>An email has been sent for you.</p>';