[Openfirst-cvscommit] news viewnews.php,1.8,1.9
Brought to you by:
xtimg
From: <i-...@us...> - 2003-10-24 08:14:44
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv23058/news Modified Files: viewnews.php Log Message: No longer shows "blank" image if no image has been assigned to news item. This makes images optional for news. Index: viewnews.php =================================================================== RCS file: /cvsroot/openfirst/news/viewnews.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** viewnews.php 1 Oct 2003 22:51:03 -0000 1.8 --- viewnews.php 23 Oct 2003 21:49:00 -0000 1.9 *************** *** 36,42 **** while($news = ofirst_dbfetch_object($query)){ echo("<br><table width='500'> ! <tr><th><strong>$news->title</strong></th></tr> ! <tr><td><center><img src='$news->image' alt='$news->title'></center></td></tr> ! <tr><td class='sub'>Posted on $news->date by $news->poster</td></tr> <tr><td>$news->news<br><br><center>[ <a href='".$GLOBALS["basepath"]."/news/comments.php?ID=$news->ID'>View Comments</a> ]</center></td></tr>"); if($admin){ --- 36,44 ---- while($news = ofirst_dbfetch_object($query)){ echo("<br><table width='500'> ! <tr><th><strong>$news->title</strong></th></tr>"); ! if($news->image!=""){ ! echo("<tr><td><center><img src='$news->image' alt='$news->title'></center></td></tr>"); ! } ! echo("<tr><td class='sub'>Posted on $news->date by $news->poster</td></tr> <tr><td>$news->news<br><br><center>[ <a href='".$GLOBALS["basepath"]."/news/comments.php?ID=$news->ID'>View Comments</a> ]</center></td></tr>"); if($admin){ |