--- a/documents/disclogsList.php +++ b/documents/disclogsList.php @@ -1,10 +1,10 @@ <?php - +include('template.inc.php'); +include_header_documents(""); include_once('../include/common.inc.php'); -include_header('Webserver and Accessiblity'); echo "<table> - <tr><th>name</th><th>disclog</th><th>scraper?</th></tr>"; + <tr><th>Agency Name</th><th>Disclosure Log URL recorded?</th><th>Do we monitor this URL?</th></tr>"; $agenciesdb = $server->get_db('disclosr-agencies'); $docsdb = $server->get_db('disclosr-documents'); try { @@ -14,7 +14,8 @@ if ($rows) { foreach ($rows as $row) { - echo "<tr><td>" . $row->value->name . " (".$row->id.")</td>\n"; + echo "<tr><td><b>" . $row->value->name . "</b> (".$row->id.")</td>\n"; + echo "<td>"; if (isset($row->value->FOIDocumentsURL)) { echo '<a href="viewDocument.php?hash='.md5($row->value->FOIDocumentsURL).'">' @@ -27,7 +28,7 @@ if (file_exists("./scrapers/".$row->id.'.py')) { echo "<font color='green'>✔</font>"; } else if (file_exists("./scrapers/".$row->id.'.txt')){ - echo "pass"; + echo "<font color='blue'><b>▬</b></font>"; } else { echo "<font color='red'>✘</font>"; } @@ -38,5 +39,6 @@ } catch (SetteeRestClientException $e) { setteErrorHandler($e); } -include_footer(); +echo "</table>"; +include_footer_documents(); ?>