]> git.openstreetmap.org Git - nominatim.git/blob - lib/template/deletable-html.php
Merge pull request #1898 from lonvia/show-housenumber-with-housename
[nominatim.git] / lib / template / deletable-html.php
1 <?php
2     header("content-type: text/html; charset=UTF-8");
3     include(CONST_BasePath.'/lib/template/includes/html-header.php');
4 ?>
5     <title>Nominatim Deleted Data</title>    
6     <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
7 </head>
8
9 <body>
10 <div class="container">
11     <h1>Deletable</h1>
12     <p>
13         <?php echo sizeof($aPolygons) ?> objects have been deleted in OSM but are still in the Nominatim database.
14         Also available in <a href="<?php echo CONST_Website_BaseURL; ?>deletable.php?format=json">JSON format</a>.
15     </p>
16
17     <table class="table table-striped table-hover">
18 <?php
19
20 if (!empty($aPolygons)) {
21     echo '<tr>';
22     foreach (array_keys($aPolygons[0]) as $sCol) {
23         echo '<th>'.$sCol.'</th>';
24     }
25     echo '</tr>';
26     foreach ($aPolygons as $aRow) {
27         echo '<tr>';
28         foreach ($aRow as $sCol => $sVal) {
29             switch ($sCol) {
30                 case 'osm_id':
31                     echo '<td>'.osmLink($aRow).'</td>';
32                     break;
33                 case 'place_id':
34                     echo '<td>'.detailsLink($aRow).'</td>';
35                     break;
36                 default:
37                     echo '<td>'.($sVal?$sVal:'&nbsp;').'</td>';
38                     break;
39             }
40         }
41         echo '</tr>';
42     }
43 }
44 ?>
45     </table>
46 </div>
47 </body>
48 </html>