Esempio n. 1
0
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th>First Name</th>
                                            <th>Last Name</th>
                                            <th>Service Number</th>
                                            <th>Place of Birth</th>
                                            <th>Enlistment</th>
                                            <th>Record</th>
                                        </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>
Esempio 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>