  <br>
  <table border=1 cellspacing=1 cellpadding=2 width=928 style="border: 1px inset;">
  <tr valign=top>
  <td valign=top width=48 class=listheader>No</td>
  <td valign=top width=150 class=listheader>Date</td>
  <td valign=top width=650 class=listheader>Title</td>
  <td valign=top width=80 class=listheader>Options</td>
  </tr>

  <? foreach ($news_list as $mynews) { ?>

    <? $mystamp = gettimestamp(); ?>
    <? if ((($mynews['news_expirydate']=="")||($mynews['news_expirydate']>$mystamp))||($pubshowallnews==true)) { ?>

      <tr valign=top>
      <td valign=top width=48 class=listnumber><?=$mynews['recordno'];?></td>
      <td valign=top width=150 class=listcontent><?=unconverttounixfullslash($mynews['news_date']);?></td>
      <td valign=top width=650 class=listcontent>
      <?=$mynews['news_title'];?>&nbsp;
      <? if (($mynews['news_expirydate']<$mystamp)&&($mynews['news_expirydate']!="")) echo "<font color='#ff0000'><i>(Expired!)</i></font>"; ?>
      </td>
      <td valign=top width=80 class=listcontent>
      <a href="index.php?module=news&task=view&itemid=<?=$mynews['news_pkey'];?>"><img src="gfx/options/b_view.png" border=0 title="View" alt="View"></a>
      <? if (($pubuseraccess['access_news_managenews']==1)||($pubuserrole>=2)) { ?>
        <a href="index.php?module=news&task=edit&itemid=<?=$mynews['news_pkey'];?>"><img src="gfx/options/b_edit.png" border=0 title="Edit" alt="Edit"></a>
        <a href="index.php?module=news&task=delete&itemid=<?=$mynews['news_pkey'];?>"><img src="gfx/options/b_drop.png" border=0 title="Delete" alt="Delete"></a>
      <? } ?>
      </td>
      </tr>

    <? } ?>

  <? } ?>

  </table>
