コード例 #1
0
ファイル: testAppPage.php プロジェクト: themohr/cis665
    $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 />';
    $iterator->next();
コード例 #2
0
ファイル: roster.php プロジェクト: themohr/cis665
                        <th>Date</th>
                        <th>Begin Time</th>
                        <th>End Time</th>
                        <th>Sport Type</th>
                        <th>Street</th>
                        <th>City</th>
                        <th>State</th>
                        <th>Zip</th>
                     </tr>
                  </thead>
			<tbody>
			<tr>
				
			</tr>
			<?php 
    $regList = $regDao->searchRegistrationByTeamId($teamId);
    $iterator = $regList->getIterator();
    while ($iterator->valid()) {
        $reg = $iterator->current();
        $tournament = $reg->get_tournament();
        echo "<tr>";
        echo "<td>" . $tournament->get_tournamentName() . "</td>";
        echo "<td>" . $tournament->get_tournamentDate() . "</td>";
        echo "<td>" . $tournament->get_tournamentBeginTime() . "</td>";
        echo "<td>" . $tournament->get_tournamentEndTime() . "</td>";
        echo "<td>" . $tournament->get_sportTypeName() . "</td>";
        echo "<td>" . $tournament->get_tournamentStreet() . "</td>";
        echo "<td>" . $tournament->get_tourcenameCity() . "</td>";
        echo "<td>" . $tournament->get_tournamentState() . "</td>";
        echo "<td>" . $tournament->get_tournamentZip() . "</td>";
        echo "</tr>";