} if ($group != "") { echo ' with group like "' . $group . '"'; } if ($role != "") { echo ' with role like "' . $role . '"'; } $availability = $_POST['s_day'] . " " . $_POST['s_week']; if ($availability != " ") { echo " with availability " . $availability; } if (sizeof($result) > 0) { echo ' (select a name for more information).'; echo '<p><table> <tr><td>Name</td><td>Phone</td><td>E-mail</td><td>Group(s)</td><td>Role(s)</td><td>Availability</td></tr>'; foreach ($result as $vol) { echo "<tr><td><a href=personEdit.php?id=" . str_replace(" ", "_", $vol->get_id()) . ">" . $vol->get_first_name() . " " . $vol->get_last_name() . "</td><td>" . phone_edit($vol->get_phone1()) . "</td><td>" . $vol->get_email() . "</td><td>" . implode(',', $vol->get_group()) . "</td><td>" . implode(',', $vol->get_role()) . "</td><td>"; foreach ($vol->get_availability() as $availableon) { echo $availableon . ", "; } echo "</td></a></tr>"; } } echo '</table>'; } ?> <!-- below is the footer that we're using currently--> </div> </div> <?php include 'footer.inc'; ?>
} if ($availability == "") { echo " any day "; } $shiftOn = $_POST['s_shift']; if ($shiftOn != " ") { echo " with shift of " . $shiftOn; } if ($shiftOn == "") { echo " any shifts."; } if (sizeof($result) > 0) { echo ' (select one for more info).'; echo '<p><table> <tr><td>Name</td><td>Phone</td><td>E-mail</td><td>Availability</td></tr>'; foreach ($actual_result as $vol) { echo "<tr><td><a href=personEdit.php?id=" . str_replace(" ", "_", $vol->get_id()) . ">" . $vol->get_first_name() . " " . $vol->get_last_name() . "</td><td>" . phone_edit($vol->get_phone1()) . "</td><td>" . $vol->get_email() . "</td><td>" . ($avail = implode(" | ", $vol->get_availability())); } echo "</td></a></tr>"; } } echo '</table>'; ?> <!-- below is the footer that we're using currently--> </div> </div> <?php include 'footer.inc'; ?> </body> </html>