<!--<?php
$topnews = ng_query("SELECT $sql_tbl[newsletter].newsid, $sql_tbl[newsletter].subject, $sql_tbl[newsletter].titleb, $sql_tbl[newsletter].titlecolor FROM $sql_tbl[newsletter] $txtsou $txtorderby LIMIT $intjilu");
print <<<EOT
-->
<table width="100%" border="0" class="biaoge" cellspacing="0" cellpadding="0">
  <tbody>
  <tr>
    <td class="biaoge_biaoti">$listname</td>
  </tr>
<!--
EOT;
foreach($topnews as $nl){

$nl[subject] = msubstr($nl[subject],0,32);
$titleb = ($nl[titleb] == 'Y')?'<b>':'';
$titlebend = ($nl[titleb] == 'Y')?'</b>':'';
$titlefont = ($nl[titlecolor] != '')?"<font color='$nl[titlecolor]'>":"";
$titlefontend = ($nl[titlecolor] != '')?"</font>":"";

$txtsubject = $titlefont.$titleb.$nl[subject].$titlebend.$titlefontend;
print <<<EOT
-->
  <tr>
    <td class="biaoge_td"><img src="$temp_img/leftarrow.gif" width="9" height="9" border="0"><a href="$form_dir/news.php?nid=$nl[newsid]" target="_blank">$txtsubject</a></td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
  </tbody>
</table>
<!--
EOT;
?>