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


<? 
    /* ====================================== 
	 * ******smartstar firm wap system****** 
	 * ====================================== 
	 * AUTHOR : 
     * ======= 
     * Copyright (C) 2006 Wap-system - A wap system designed for firm 
     * by smartstar. 
	 */ 
?> 
<? 
include("function.inc.php"); 
?> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<link href=js/common.css rel=stylesheet type=text/css> 
<title>admin menu</title></head> 
<body> 
<table width="100%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#DEDFDE"> 
<tr> 
    <td bgcolor="#F7F7F7"><div align="center"><strong>首页菜单</strong></div></td> 
    <td bgcolor="#F7F7F7"><div align="center"><strong>修改</strong></div></td> 
    <td bgcolor="#F7F7F7"><div align="center"><strong>删除</strong></div></td> 
  </tr> 
<? 
	include("../db_connect.php"); 
	   include("../chinese/class.Chinese.php"); 
   $result=mysql_query("select * from wap_newssort order by sortid asc",$db) or die ("query failed"); 
   $num=mysql_num_rows($result); 
   if($num == 0) 
   { 
?> 
	   <tr><td colspan='6' bgcolor='#FFFFFF'><div align='center'>暂无菜单!</div></td></tr> 
<? 
   } 
   else 
   { 
   while($row=mysql_fetch_row($result)) 
   { 
	 $menu=$row[2]; 
	$chs_m = new Chinese("UTF8","GB2312",trim($menu)); 
	$menu = $chs_m->ConvertIT(); // 将UTF8转换为GB2312 
?> 
   <tr> 
    <td bgcolor="#FFFFFF"><? echo $menu; ?></a></td> 
    <td bgcolor="#FFFFFF"><div align="center">[<a href="edit_menu.php?sortid=<? echo $row[0]; ?>">修改</a>]</div></td> 
    <td bgcolor="#FFFFFF"><div align="center">[<a href="del_menu.php?sortid=<? echo $row[0]; ?>">删除</a>]</div></td> 
  </tr> 
<? 
   } 
   } 
   mysql_close($db); 
?> 
</table></body></html>