--- a/documents/disclogsList.php +++ b/documents/disclogsList.php @@ -1,4 +1,5 @@ <?php + include('template.inc.php'); include_header_documents(""); include_once('../include/common.inc.php'); @@ -14,24 +15,31 @@ if ($rows) { foreach ($rows as $row) { - 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).'">' - .$row->value->FOIDocumentsURL.'</a>'; - } else { + echo "<tr><td><b>" . $row->value->name . "</b>"; + if ($ENV == "DEV") + echo "<br>(" . $row->id . ")"; + echo "</td>\n"; + + + echo "<td>"; + if (isset($row->value->FOIDocumentsURL)) { + echo '<a href="' . $row->value->FOIDocumentsURL . '">' + . $row->value->FOIDocumentsURL . '</a>'; + if ($ENV == "DEV") + echo '<br><small>(<a href="viewDocument.php?hash=' . md5($row->value->FOIDocumentsURL) . '">' + . 'view local copy</a>)</small>'; + } else { echo "<font color='red'>✘</font>"; } echo "</td>\n<td>"; if (isset($row->value->FOIDocumentsURL)) { - if (file_exists("./scrapers/".$row->id.'.py')) { - echo "<font color='green'>✔</font>"; - } else if (file_exists("./scrapers/".$row->id.'.txt')){ - echo "<font color='blue'><b>▬</b></font>"; - } else { - echo "<font color='red'>✘</font>"; - } + if (file_exists("./scrapers/" . $row->id . '.py')) { + echo "<font color='green'>✔</font>"; + } else if (file_exists("./scrapers/" . $row->id . '.txt')) { + echo "<font color='blue'><b>▬</b></font>"; + } else { + echo "<font color='red'>✘</font>"; + } } echo "</td></tr>\n"; }