【php开源代码栏目提醒】:网学会员在php开源代码频道为大家收集整理了showleibie.php提供大家参考,希望对大家有所帮助!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>商品类别管理</title>
<link rel="stylesheet" type="text/css" href="css/font.css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<body topmargin="0" leftmargin="0" bottommargin="0">
<?php
include("conn/conn.php");
$sql=mysql_query("select * from tb_type order by id desc",$conn);
$info=
mysql_fetch_array($
sql);
if($info==false)
{
echo "本站暂无商品类别!";
}
else
{
?>
<div align="center">
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="deletelb.php">
<tr>
<td height="20" bgcolor="#FFCF60"><div align="center" class="style1">商品类别管理</div></td>
</tr>
<tr>
<td height="20" bgcolor="#666666"><table width="400" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="253" height="20" bgcolor="#FFFFFF"><div align="center">类别名称</div></td>
<td width="144" bgcolor="#FFFFFF"><div align="center">操作</div></td>
</tr>
<?php
do
{
?>
<tr>
<td height="20" bgcolor="#FFFFFF"><div align="center"><?php echo $info[typename];?></div></td>
<td height="20" bgcolor="#FFFFFF"><div align="center"><input type="checkbox" value=<?php echo $info[id];?> name="<?php echo $info[id];?>"> </div></td>
</tr>
<?php
}
while($info=mysql_fetch_array($sql));
?>
<tr>
<td height="20" bgcolor="#FFFFFF"><div align="center"></div></td>
<td height="20" bgcolor="#FFFFFF"><div align="center"><input type="submit" value="删除选项" class="buttoncss"></div></td>
</tr>
</table></td>
</tr>
</form>
</table>
</div>
<?php
}
?>
</body>
</html>