Exemplo n.º 1
0
                                        </tr>
                                    </thead>
                                    <tbody>
                                      <?php 
$aaa = get_aaa();
foreach ($aaa['ResultSet'] as $fallen) {
    echo '<tr>
                                            <td><a href="person.php?id=aus' . $fallen['person_id'] . '">' . $fallen['first_name'] . '</a></td>
                                            <td>' . $fallen['family_name'] . '</td>
                                            <td>' . implode('," ', $fallen['service_numbers']) . '</td>
                                            <td>' . implode('; ', $fallen['place_of_birth']) . '</td>
                                            <td>' . implode(', ', $fallen['place_of_enlistment']) . '</td>
                                            <td>AUS <a href="http://discoveringanzacs.naa.gov.au/browse/person/' . $fallen['person_id'] . '">' . $fallen['person_id'] . '</a></td>
                                        </tr>';
}
$NZ = get_nz();
foreach ($NZ as $fallenNz) {
    echo '<tr>
                                            <td><a href="person.php?id=nz' . $fallenNz['rec_id'] . '">' . $fallenNz['first_name'] . '</a></td>
                                            <td>' . $fallenNz['last_name'] . '</td>
                                            <td>' . $fallenNz['service_id'] . '</td>
                                            <td></td>
                                            <td></td>
                                            <td>NZ <a href="http://www.aucklandmuseum.com/war-memorial/online-cenotaph/record/' . $fallenNz['rec_id'] . '">' . $fallenNz['rec_id'] . '</a></td>
                                        </tr>';
}
?>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
Exemplo n.º 2
0
<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);
include 'naa-grab.php';
include 'connect.php';
?>
<html>
<head>
  <title>Test Page</title>
</head>
<body>
<?php 
function output($title, $view)
{
    echo '<h2>' . $title . '</h2>';
    echo '<pre>';
    print_r($view);
    echo '</pre>';
}
output('Get aaa', get_aaa());
output('Get nz', get_nz());
?>
</body>
</html>