?> " /></td> </tr> <tr> <td><label for="username">Username: </label></td> <td><input type="text" name="username" id="username" value="<?php echo $invalidSubmit ? isset($_REQUEST['username']) ? $_REQUEST['username'] : '' : $userEditor->getCurrentUsername(); ?> " placeholder="Login Name" size="25" maxlength="254" required tabindex="<?php echo $tabIndex++; ?> " /></td> <td><label for="isRSVP">RSVP Submitted?</label></td> <td><input type="checkbox" <?php echo $invalidSubmit ? isset($_REQUEST['isRSVP']) ? 'checked' : '' : ($userEditor->getCurrentIsRSVP() ? 'checked' : ''); ?> name="isRSVP" id="isRSVP" tabindex="<?php echo $tabIndex++; ?> " /></td> </tr> <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++; ?>
document.getElementById("notesRSVP").disabled = true; elem.className = "lockedButton"; elem.value = "Locked"; elem.disabled = false; } } </script> <section class=content> <?php require_once "classWeddingUser.inc"; $currentUser = new weddingUser(); $currentUser->setCurrentUser($_SESSION['userID']); if (isset($_REQUEST['submitted'])) { //echo print_r($_REQUEST); $isUpdate = $currentUser->getCurrentIsRSVP(); $oldTotal = $currentUser->getCurrentNumAttending(); $oldSumAttending = $currentUser->getTotalAttending(); if ($isUpdate) { $emailMsg = '<strong>Changed RSVP Submitted</strong><br /> ' . date(DATE_RFC850) . '<br />--------<pre>'; $emailMsg .= 'Name: ' . $currentUser->getCurrentFullName() . "\r\n"; $emailMsg .= 'Username: '******'UserID: ' . $currentUser->getcurrentUserID() . "\r\n\r\n"; } foreach ($_REQUEST['isPlusOne'] as $attID => $isPlusOne) { if ($isUpdate) { $emailMsg .= '[' . ($_REQUEST['isAttending'][$attID] == 'on' ? 'x' : ' ') . '] ' . $_REQUEST['displayName'][$attID] . '(ID: ' . $attID . ")"; $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]);