Пример #1
0
    echo '<br />';
    $iterator->next();
}
$locDAO = new LocationsDAO();
$locList = $locDAO->getTournaments("baseball");
$iterator = $locList->getIterator();
echo '<br />';
echo 'Location List test';
echo '<br />';
while ($iterator->valid()) {
    $loc = $iterator->current();
    echo 'TOURNAMENT_NAME: ' . $loc->get_tournamentName();
    echo '<br />';
    $iterator->next();
}
$regDAO = new RegistrationDAO();
$regList = $regDAO->searchRegistrationByTeamId(17);
$iterator = $regList->getIterator();
echo '<br />';
echo 'Registration List test';
echo '<br />';
while ($iterator->valid()) {
    $reg = $iterator->current();
    $loc = $reg->get_tournament();
    $team = $reg->get_team();
    echo '###Registration id##: ' . $reg->get_registrationId() . '##activity-date=' . $reg->get_activityDate();
    echo '<br />';
    echo '==TOURNAMENT_NAME==: ' . $loc->get_tournamentName();
    echo '<br />';
    echo '**teamID:*** ' . $team->get_teamId() . ', **Team Name**: ' . $team->get_teamName();
    echo '<br />';
Пример #2
0
        echo "<td>" . $record->get_lname() . "</td>";
        echo "<td>" . $record->get_height() . "</td>";
        echo "<td>" . $record->get_weight() . "</td>";
        echo "<td>" . $record->get_gender() . "</td>";
        echo "<td>" . $record->get_dob() . "</td>";
        echo "<td>" . $record->get_email() . "</td>";
        echo "<td><a onclick=\"subForm('Edit','" . $record->get_playerId() . "')\" href=\"#\">Edit</a>" . " / <a onclick=\"subForm('Delete','" . $record->get_playerId() . "')\" href=\"#\">Delete</a>" . "</td>";
        echo "</tr>";
    }
    ?>
			
			</tbody>
		</table>
	<?php 
    $locDAO = new LocationsDAO();
    $regDao = new RegistrationDAO();
    $tournaments = $locDAO->getAllTournaments();
    ?>
            <h1>Registration</h1>
            <!--a href="<//?php echo $_SERVER['PHP_SELF']; ?>?page=registration" >Register</a-->
            <div class="forms">
               <form name="tournamentRegister" action="<?php 
    echo $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];
    ?>
" method="post">
                    <input type="hidden" name="Action"/>
                    <select name="sTournament" id="sTournament">
                       
                            <?php 
    foreach ($tournaments as $tournament) {
        extract($tournament);