Esempio n. 1
0
  <td rowspan="2">RSVP<br />Notes</td>
  <td rowspan="2">Email</td>
  <td rowspan="2">Address</td>
  <td rowspan="2">Gift Notes</td>
  <td rowspan="2">ThYou Notes</td>
  <td rowspan="2">Thank<br />you?</td>
</tr>
<tr>
  <td colspan="2"><a onclick="expandAll()" id="linkExpandAll" href="javascript:void(0)" class="noUnderline"><img src="resources/icons/magnify_plus.png" width="15px" height="15px" />All</a></td>
  <!--<td><small>LastLogin</small></td>-->
</tr>
</thead>
<tbody>
<?php 
$rowCount = 0;
while (!(($currRow = $userManager->getNextUser()) === false)) {
    echo '<tr id="trUser' . $currRow['userID'] . '" class="' . (++$rowCount % 2 == 0 ? 'rowBlue' : 'rowGreen') . '">' . "\r\n";
    if ($currRow['isAdmin']) {
        echo '  <td rowspan="2" colspan="2" style="text-align:center;"><img title="Admin" src="images\\icons\\shield_admin.png" width="20px" height="20px" class="imgGray" /></td>' . "\r\n";
    } else {
        echo '  <td rowspan="2"><a title="Edit User" href="guests_edit.php?userID=' . $currRow['userID'] . '&returnAnchor=trUser' . $currRow['userID'] . '" class="noUnderline"><img src="resources/icons/edit_pencil.png" width="20px" height="20px" /></a></td>' . "\r\n";
        echo '  <td rowspan="2"><a title="Delete User" onclick="deleteUser(' . $currRow['userID'] . ')" href="javascript:void(0)" class="noUnderline"><img src="resources/icons/delete_trash.png" width="20px" height="20px" /></a></td>' . "\r\n";
    }
    echo '  <td rowspan="2">' . $currRow['username'] . "</td>\r\n";
    echo '  <td rowspan="2">' . $currRow['name'] . "</td>\r\n";
    //echo '  <td id="tdIsRSVP' . $currRow['userID'] . '" ' . ((!$currRow['isRSVP'] && (isset($currRow['lastLoginTime']) && $currRow['lastLoginTime'] != "")) ? ' class="cellNegative"' : '') . '><small>' . ($currRow['isRSVP'] ? 'RSVP\'d' : 'No') . "</small></td>\r\n";
    echo '  <td rowspan="2">' . (strlen($currRow['notesRSVP']) < 30 ? $currRow['notesRSVP'] : substr($currRow['notesRSVP'], 0, 30) . '<a title="Edit User (via notes)" href="guests_edit.php?userID=' . $currRow['userID'] . '&returnAnchor=trUser' . $currRow['userID'] . '" class="noUnderline">[...]</a>') . '</td>' . "\r\n";
    echo '  <td rowspan="2">' . $currRow['email'] . "</td>\r\n";
    echo '  <td rowspan="2">' . $currRow['address'] . "</td>\r\n";
    echo '  <td rowspan="2">' . $currRow['gift'] . "</td>\r\n";
    echo '  <td rowspan="2">' . $currRow['thankYouCardNotes'] . "</td>\r\n";