+ Check out our subsites on:
+ Government Agencies
+ • Political Lobbyists
+ • Government Contracts and Spending
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+ $length) {
//limit hit!
- $string = substr($string,0,($length -3));
+ $string = substr($string, 0, ($length - 3));
if ($stopanywhere) {
//stop anywhere
$string .= '...';
- } else{
+ } else {
//stop on a word.
- $string = substr($string,0,strrpos($string,' ')).'...';
+ $string = substr($string, 0, strrpos($string, ' ')) . '...';
}
}
return $string;
}
+
function displayLogEntry($row, $idtoname) {
$result = "";
- $result .= "
".$row->value->date.": ".truncate($row->value->title, 120)." (".$idtoname[$row->value->agencyID].")
";
- $result .= "
Title".$row->value->title."
".str_replace("\n","
",$row->value->description);
-if (isset($row->value->notes)) {
-$result .= "
Note: ".$row->value->notes;
-}
-$result .= "
";
+ $result .= '
';
+ $result .= '
' . $row->value->date . ": " . truncate($row->value->title, 120)."";
+ $result .= '(' . $idtoname[$row->value->agencyID] . ')
';
+ $result .= "
Title" . $row->value->title . "
" . str_replace("\n", "
", $row->value->description);
+ if (isset($row->value->notes)) {
+ $result .= "
Note: " . $row->value->notes;
+ }
+ $result .= "
";
-if (isset($row->value->links)){
-$result .= "
Links/Documents
";
-foreach ($row->value->links as $link) {
- $result .= "- ".urlencode($link)."
";
+ if (isset($row->value->links)) {
+ $result .= 'Links/Documents
";
+ }
+ $result .= "View original source... ID: " . strip_tags($row->value->docID) . "";
+ $result .= "
";
+ return $result;
}
- $result .= "";
-}
- $result .= "
View original source... ID: ".strip_tags($row->value->docID)."";
-$result .= "