From: Maxious Date: Mon, 03 Dec 2012 05:26:52 +0000 Subject: beginning semantic markup X-Git-Url: https://maxious.lambdacomplex.org/git/?p=disclosr.git&a=commitdiff&h=ffb630b58b78314af4fbd440790d54c627731304 --- beginning semantic markup Former-commit-id: a5eba7337e3796c4f37731406127e5df85c440fa --- --- a/documents/rss.xml.php +++ b/documents/rss.xml.php @@ -14,6 +14,7 @@ $TestFeed->setDescription('Latest entries'); $TestFeed->setChannelElement('language', 'en-us'); $TestFeed->setChannelElement('pubDate', date(DATE_RSS, time())); + //Retriving informations from database $idtoname = Array(); $agenciesdb = $server->get_db('disclosr-agencies'); @@ -31,6 +32,7 @@ $newItem->setLink("view.php?id=".$row->value->_id); $newItem->setDate(date("c", strtotime($row->value->date))); $newItem->setDescription(displayLogEntry($row,$idtoname)); + $newItem->setAuthor($idtoname[$row->value->agencyID]); $newItem->addElement('guid', $row->value->_id,array('isPermaLink'=>'true')); //Now add the feed item $TestFeed->addItem($newItem); --- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -1,164 +1,169 @@ - - - - - - - - - + header('X-UA-Compatible: IE=edge,chrome=1'); + ?> + + + + + + + + + - Australian Disclosure Logs<?php if ($title != "") echo " - $title";?> - + Australian Disclosure Logs<?php if ($title != "") echo " - $title"; ?> + - - - - - + + + + + - - - - + + + + - - - + + + - - - - - - - -
- -
-
+ + +