Esempio n. 1
0
      <td><label for="thankYouCardNotes">Notes for Thank You: </label></td>
      <td><textarea name="thankYouCardNotes" id="thankYouCardNotes" cols="20" rows="3" placeholder="Thank you card notes" tabindex="<?php 
echo $tabIndex++;
?>
"><?php 
echo $invalidSubmit ? isset($_REQUEST['thankYouCardNotes']) ? $_REQUEST['thankYouCardNotes'] : '' : $userEditor->getCurrentThankYouCardNotes();
?>
</textarea></td>
      
      
    </tr>
  <tr>
    <td colspan="4"><hr /></td>
  </tr>
<?php 
$arrayAtt = $userEditor->getCurrentAttendeesArray();
foreach ($arrayAtt as $attID => $attendee) {
    //$arr[$row['attendeeID']] = array(
    // 'displayName' => $row['displayName'],
    // 'isPlusOne' => $row['isPlusOne'],
    // 'isAttending' => $row['isAttending'],
    // 'isInfant' => $row['isInfant'],
    // 'isChild' => $row['isChild']);
    ?>
    <tr>
      <td><label for="attendeeID[<?php 
    echo $attID;
    ?>
]">Attendee ID: </label></td>
      <td><input type="text" name="attendeeID[<?php 
    echo $attID;
Esempio n. 2
0
        echo 'Huzzah!</p>';
    }
    if ($isUpdate) {
        echo '<p>An email has been sent for you.</p>';
    }
}
if (!$currentUser->getCurrentIsRSVP()) {
    echo '<p>Hello, ' . $currentUser->getCurrentFullName() . '! Are you ready to create your adventuring group for our wedding?</p><hr style="width:65%;margin-top:20px;margin-bottom:20px;" /><p>Please check off who can attend:</p>';
} else {
    echo '<p>You can unlock your RSVP to edit at any time. We\'ll get an email that you\'ve made changes so we can take note of it, no worries.</p>';
    echo '<p><input type="button" id="lockButton" class="lockedButton" onclick="toggleLock()" value="Locked" /></p>';
}
?>
<form action="rsvp.php" method="post" id="rsvpForm">
<?php 
$attendees = $currentUser->getCurrentAttendeesArray();
foreach ($attendees as $attID => $attendee) {
    //note: placing a single space after each element.
    echo '<div class="' . ($attendee['isAttending'] ? 'a' : 'nonA') . 'ttendeeBox" id="attendeeBox[' . $attID . ']">' . "\n  ";
    echo '<input tabindex="1" type="checkbox" name="isAttending[' . $attID . ']" id="isAttending[' . $attID . ']" ' . ($attendee['isAttending'] ? 'checked ' : '') . 'onClick="changeAttStyle(' . $attID . ')" class="isAttending"' . ($currentUser->getCurrentIsRSVP() ? ' disabled' : '') . ' /> ';
    if ($attendee['isPlusOne']) {
        echo '<label for="isAttending[' . $attID . ']">Plus One! (Name):</label> ';
        echo '<input type="text" name="displayName[' . $attID . ']"  id="displayName[' . $attID . ']" value="' . (isset($attendee['displayName']) ? $attendee['displayName'] : '') . '" size="30" placeholder="Leave blank to be called \'Guest\'"' . ($currentUser->getCurrentIsRSVP() ? ' disabled' : '') . ' /> ';
    } else {
        echo '<label for="isAttending[' . $attID . ']">' . $attendee['displayName'] . '</label> ';
        echo '<input type="hidden" name="displayName[' . $attID . ']" id="displayName[' . $attID . ']" value="' . (isset($attendee['displayName']) ? $attendee['displayName'] : '') . '" /> ';
    }
    if ($attendee['isInfant']) {
        echo '<img src="resources/icons/rsvp_pacifier.png" /> ';
    }
    if ($attendee['isChild']) {