[Wuug-cvs] wuug archives.php,1.2,1.3 wuug.class.php,1.24,1.25
Status: Inactive
Brought to you by:
loginx
From: <lo...@us...> - 2003-04-05 21:14:24
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv22063 Modified Files: archives.php wuug.class.php Log Message: archiving support Index: archives.php =================================================================== RCS file: /cvsroot/wuug/wuug/archives.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** archives.php 5 Apr 2003 21:10:36 -0000 1.2 --- archives.php 5 Apr 2003 21:14:22 -0000 1.3 *************** *** 5,14 **** $events = new NewsClass(); ! $ids = $events->getAll(); ! ! if (sizeof($ids) == 0) { echo "There are no archives available at the moment"; } ! for ($i = sizeof($ids)-1; $i >= 1 ; $i--) { ! $events->shortView($ids[$i][id]); } - ?> --- 5,17 ---- $events = new NewsClass(); ! if (!$_GET[item]) { ! $ids = $events->getAll(); ! ! if (sizeof($ids) == 0) { echo "There are no archives available at the moment"; } ! for ($i = sizeof($ids)-1; $i >= 1 ; $i--) { ! $events->shortView($ids[$i][id]); ! } ! } else { ! $events->detailedView($_GET[item]); } ?> Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** wuug.class.php 3 Apr 2003 23:03:31 -0000 1.24 --- wuug.class.php 5 Apr 2003 21:14:22 -0000 1.25 *************** *** 714,718 **** /** * @return void ! * @param event_id unknown * @desc Displays a short view of the news identified by $id or the news in object properties */ --- 714,718 ---- /** * @return void ! * @param event_id int * @desc Displays a short view of the news identified by $id or the news in object properties */ *************** *** 721,725 **** ?> ! <a href="<?=$cf[top_level_url] . "/?content=news&item=" . $event_id?>"> <B><?=$this->title?></B></a>, by <?=$this->author_lname . " " . $this->author_lname?> - <i><font color="#bbbbbb">on <?=date("Y-m-d", strtotime($this->timestamp))?></font></i>.<br> --- 721,725 ---- ?> ! <a href="<?=$cf[top_level_url] . "/?content=archives&item=" . $event_id?>"> <B><?=$this->title?></B></a>, by <?=$this->author_lname . " " . $this->author_lname?> - <i><font color="#bbbbbb">on <?=date("Y-m-d", strtotime($this->timestamp))?></font></i>.<br> |