<!--<?php print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<style>
td {font-size: 9pt;line-height: 1.5;}
body {font-size: 9pt;line-height: 1.5;}
a:link { font-size: 9pt; color: #000000; text-decoration: none }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none }
a:hover {font-size: 9pt;color: red}
</style>
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="2"><b>新闻管理</b></td>
  </tr>
<FORM action="addnews.php" method="POST">
<INPUT type="hidden" name="mode" value="add">
<INPUT type="hidden" name="newsid" value="$newsid">
  <tr bgcolor="#FFFFFF">
    <td width="100" height="30">新闻标题：</td>
    <td width="80%"><INPUT type="text" size="60" name="subject" value="$news[subject]">
<!--
EOT;
$yselected = ($news[titleb] == 'Y')?"selected":"";
$nselected = ($news[titleb] == 'N')?"selected":"";
print <<<EOT
-->
加粗：
<select name="titleb">
<option value="N" $nselected>否</option>
<option value="Y" $yselected>是</option>
</select>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td>新闻分类：</td>
    <td>
<SELECT name="listid">
<!--
EOT;
if($lists != ''){
foreach($lists as $lst){
$tlselected = ($lst[listid] == $news[listid] or $listid == $lst[listid])?"selected":'';
print <<<EOT
-->
<OPTION value="$lst[listid]" $tlselected>$lst[name]</OPTION> 
<!--
EOT;
}}print <<<EOT
-->
</SELECT>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td>新闻内容：</td>
    <td><input type="hidden" id="body" name="body" value='$news[body]' style="display:none" /><input type="hidden" id="body___Config" value="" style="display:none" /><iframe id="body___Frame" src="fckeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Normal" width="700" height="350" frameborder="0" scrolling="no"></iframe>    </td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="30">新闻状态：</td> 
    <td>
<!--
EOT;
$yselected = ($news[avail] == "Y")?"selected":"";
$nselected = ($news[avail] == "N")?"selected":"";
print <<<EOT
-->
<SELECT name="avail">
<OPTION value="Y" $yselected>显示</OPTION> 
<OPTION value="N" $nselected>隐藏</OPTION>
</SELECT>
    </td>
  </tr>
  <tr bgcolor="#F0F3F8">
    <td></td>
    <td><INPUT type="submit" value=" 提交 "></td>
  </tr>
</FORM>
</table>
<!--
EOT;
?>-->