www.pudn.com > smartstarwap.rar > display_news.php, change:2005-10-04,size:1566b


<? 
while($row=mysql_fetch_row($result)) 
   { 
	   $news=$row[2]; 
		$chs_n = new Chinese("UTF8","GB2312",trim($news)); 
		$news = $chs_n->ConvertIT(); // 将UTF8转换为GB2312 
	?> 
<tr> 
    <td width="40" bgcolor="#FFFFFF"><div align="center"> 
      <input name="id[<?echo $row[0];?>]" type="checkbox" onClick="unselectall()" id="id" value="<? echo $row[0]; ?>"> 
    </div></td> 
    <td bgcolor="#FFFFFF"><a href="edit_news.php?id=<? echo $row[0]; ?>"><? echo $news; ?></a></td> 
    <td bgcolor="#FFFFFF"><div align="center">[<a href="edit_news.php?id=<? echo $row[0]; ?>">修改</a>]</div></td> 
    <td bgcolor="#FFFFFF"><div align="center">[<a href="del_news.php?id=<? echo $row[0]; ?>">删除</a>]</div></td> 
  </tr> 
<? 
   } 
?> 
<tr> 
    <td colspan="6" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
        <td width="40"><div align="center"> 
            <input name="chkAll" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox"> 
        </div></td> 
        <td>选中本页显示的所有内容</td> 
        <td><div align="right"> 
		<input name="Action" type="hidden" id="Action2" value="Del"> 
        <input type="submit" name="Submit" value=" 删 除 " onClick="document.myform.Action.value='Delall'" class="input_submit"> 
   </div></td> 
      </tr> 
    </table></td> 
  </tr></form> 
</table> 
<table width="100%"  border="0" cellspacing="0" cellpadding="0"> 
  <tr> 
    <td height="30"><div align="center"> 
        共 <font color='#FF0000'><? echo $num; ?></font> 条新闻