admin/goods.php
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
include_once("top.php");
$typeid = !empty($_GET['id']) ? intval($_GET['id']) : '';
$keywords = !empty($_GET['keywords']) ? trim($_GET['keywords']) : '输入商品名称';
?>
<!-- 顶部 -->
<div id="middle">
<?php
include_once("left.php");
?>
<div class="right" id="mainFrame">
<div class="right_cont">
<div class="title_right"><strong>商品管理</strong></div>
<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="abd6fa" style="border:1px solid abd6fa">
<form name="form1" method="get" action=""><tr>
<td width="100" align="center">
<select name="id" id="select" class="form-control">
<option value="">请选择分类</option>
<?php
$sql22=mysql_query("select * from category order by id desc",$conn);
while($row22=mysql_fetch_array($sql22))
{
?>
<option value='<?=$row22['id']?>' <?php if($typeid==$row22['id']) {echo "selected";} ?>><?=$row22['fenleiname']?></option>
<?php
}
?>
</select>
</td>
<td align="left"><input name="keywords" type="text" value="<?=$keywords?>" style="width:20%" class="inputuser" onBlur="this.className='inputuser'" onFocus="this.className='inputuser-bor'; this.value=''">
<input name="Submit" type="submit" class="button" value="立即搜索" onMouseMove="this.className='button-bor'" onMouseOut="this.className='button'" ></td>
<td width="80" align="right"> </td>
</tr></form>
</table>
<?php
$sqlwhere="";
if(!empty($typeid)&&$typeid!='')
{
$sqlwhere.= "and typeid='$typeid'";
}
if(!empty($keywords)&&$keywords!='输入商品名称')
{
$sqlwhere.="and mingcheng like '%$keywords%'";
}
$sql=mysql_query("select count(*) as total from shops where 1=1 $sqlwhere ",$conn);
$info=mysql_fetch_array($sql);
$total=$info['total'];
if($total==0)
{
?>
<table width="100%" cellPadding="6" bgcolor="#cecece" class="table table-bordered">
<tr bgcolor="#cecece"><td>暂时没有内容</td></tr></table>
<?php
}
else
{
?>
<table width="100%" cellPadding="6" bgcolor="#cecece" class="table table-bordered">
<tr bgcolor="#cecece">
后面还有 86 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。