--- a/documents/disclogsList.php +++ b/documents/disclogsList.php @@ -1,1 +1,44 @@ + + Agency NameDisclosure Log URL recorded?Do we monitor this URL?"; +$agenciesdb = $server->get_db('disclosr-agencies'); +$docsdb = $server->get_db('disclosr-documents'); +try { + $rows = $agenciesdb->get_view("app", "byCanonicalName", null, true)->rows; + + + if ($rows) { + foreach ($rows as $row) { + + echo "" . $row->value->name . " (".$row->id.")\n"; + + echo ""; + if (isset($row->value->FOIDocumentsURL)) { + echo '' + .$row->value->FOIDocumentsURL.''; + } else { + echo ""; + } + echo "\n"; + if (isset($row->value->FOIDocumentsURL)) { + if (file_exists("./scrapers/".$row->id.'.py')) { + echo ""; + } else if (file_exists("./scrapers/".$row->id.'.txt')){ + echo ""; + } else { + echo ""; + } + } + echo "\n"; + } + } +} catch (SetteeRestClientException $e) { + setteErrorHandler($e); +} +echo ""; +include_footer_documents(); +?>