 
<form name="form1" method="post" action="?action=add_ann">
  <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
    <tr> 
      <td bgcolor="#FFFFFF" colspan="2">公告添加程式</td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" width="19%">标题</td>
      <td bgcolor="#FFFFFF" width="81%">
        <input type="text" name="title" value="" size="40">
      </td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" width="19%" height="15">内容</td>
      <td bgcolor="#FFFFFF" width="81%" height="15">
        <textarea name="content" cols="45" rows="5"></textarea>
      </td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" colspan="2" height="2"> 
        <input type="submit" name="Submit" value="提交">
        <input type="reset" name="Submit2" value="重置">
      </td>
    </tr>
  </table>
</form>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
  <tr bgcolor="#FFFFFF"> 
    <td width="17%" height="15">公告序号</td>
    <td width="32%" height="15">公告标题</td>
    <td width="25%" height="15">删除</td>
    <td width="26%" height="15">修改</td>
  </tr>
  <?php
    for($i=sizeof($arr)-2;$i>=0;$i--){
	list($date,$title,$content)=explode("|%|",$arr[$i]);
  ?>
  <tr bgcolor="#FFFFFF"> 
    <td width="17%"><?=$i?></td>
    <td width="32%"><?=$title?></td>
    <td width="25%"><?echo"<a href=\"?action=del_ann&id=$i\">删除</a>";?></td>
    <td width="26%"><?echo"<a href=\"?action=edit_ann&id=$i\">修改</a>";?></td>
  </tr>
  <?php
  }
  ?>
</table>
