--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -1,95 +1,110 @@ - - - + + + - - + + - 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']); @@ -106,31 +121,34 @@ s.parentNode.insertBefore(ga, s); })(); - - - - + "; + } + ?> + + + - + - $length) { //limit hit! @@ -146,14 +164,15 @@ return $string; } -function displayLogEntry($row, $idtoname) { +function displayLogEntry($row, $idtoname) +{ $result = ""; $result .= '
'; - $result .= '

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

'; + $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; @@ -163,7 +182,7 @@ if (isset($row->value->links)) { $result .= '

Links/Documents

";