<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" bgcolor="#F0F0F0"><p><b>&gt;&gt; Новости <? If ($all == "true") { echo "&gt;&gt; Архив новостей"; } ?></b></p></td>
  </tr>
</table>

<p>&nbsp;</p>
<table border="0" width="98%" cellpadding="0" align="center" style="border: 1 solid #0000FF" cellspacing="1">
  <tr>
    <td width="100%" valign="top">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
           <td width="100%" bgcolor="#FBC900"><p><b>Последние <? echo $serv_const_lstcount ?> новостей проекта</b></p></td>
        </tr>
        <tr>
           <td width="100%" valign="top">
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
<?
$ff = @file("tx/news.txt");
if (count($ff) >= $serv_const_lstcount and $all == false) {
 $to = count($ff) - $serv_const_lstcount;
}
else {
 $to = 0;
}
for ($i = count($ff); $i >= $to; $i--) {
 $ar = explode("^", trim($ff[$i]));
 echo "
                <tr>
                  <td width='20%' style='border-bottom: 1 solid #C0C0C0' valign='top'><p><b>$ar[0]</b></p></td>
                  <td width='80%' style='border-bottom: 1 solid #C0C0C0' valign='top'><p>$ar[1]</p></td>
                </tr>";
}
?>
              </table>
           </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<p>&nbsp;&nbsp;<a href="/news.phtml?all=true" class="cap4"><b>Показать архив новостей</b></a></p>

