--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -1,101 +1,109 @@ - - - + + + - - + + - Australian Disclosure Logs<?php if ($title != "") echo " - $title"; ?> - + Australian Disclosure Logs<?php if ($title != "") echo " - $title"; ?> + - - - - - + + + + + - - - - - - - - - - - - - - - - -
- + + + - - + + + + + + + + + + + +
+ +
+
+ + + var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-12341040-4']); @@ -113,32 +121,33 @@ })(); "; - } - ?> - - - + } + ?> + + + - + - $length) { //limit hit! @@ -154,14 +163,15 @@ return $string; } -function displayLogEntry($row, $idtoname) { +function displayLogEntry($row, $idtoname) +{ $result = ""; $result .= '
'; - $result .= '

: " . truncate($row->value->title, 120) . ""; + $result .= '

: " . truncate($row->value->title, 120) . ""; $result .= ' (' . $idtoname[$row->value->agencyID] . ')

'; $result .= "

Title: " . $row->value->title . "
"; if (isset($row->value->description)) { - $result .= str_replace("\n", "
", preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "",trim($row->value->description))); + $result .= str_replace("\n", "
", preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "", trim($row->value->description))); } if (isset($row->value->notes)) { $result .= "
Note: " . $row->value->notes; @@ -171,7 +181,7 @@ if (isset($row->value->links)) { $result .= '

Links/Documents

";