Your IP : 216.73.216.170


Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/beirinmode/
Upload File :
Current File : /home/zqegovsj/www/us3web.haibo.com.cn/beirinmode/search.php

<?php 

include("function.php");

isset($_GET['s'])?$ky=htmlspecialchars($_GET['s']):$ky= NULL;
if(strlen($ky)<3||$ky==""||$ky==$lang['words'][66])
{ echo $lang['words'][67].'. <a href=javascript:history.back(1)>'.$lang['words'][89].'</a>';exit;
}; 

$page = !empty($_GET['st']) ? (int)$_GET['st'] : 1;
$limit = 24; // 每页显示的数量
$offset = ($page - 1) * $limit; // 计算偏移量

$num =$db->selectone( "select count(id) FROM ".$noe_version."_products WHERE member_id=".$id."  and (name LIKE '%".$ky."%' or sn LIKE '%".$ky."%' )");

$pagecount=$num[0];
if(!isset($st))$st=1;
$number=($st-1)*$limit+1;
$number2=($st-1)*$limit+$limit;

$total_pages = ceil($pagecount / $limit);

$products=$db->selectarray("SELECT DISTINCT id,name,sn,picture,name2,price FROM ".$noe_version."_products WHERE member_id=".$id."  and (name LIKE '%".$ky."%' or sn LIKE '%".$ky."%' ) LIMIT ".($st-1)*$limit.','.$limit);

$aa='product.html';
$aaa=$lang['words'][72];
$bb="product.html";
$bbb=$ky;
$urlsort='search.html';
$purl=$bb;

$pagekeyword=$ky;
$pagekeyword2=$pagekeyword; 
$pagekeyword3=$pagekeyword; 

include("head.php");
?><div class="clearfix">
<div class="row margin-top-70">
<div class="column column-3-4">

<h1 class="p-b-20"><?=$ky?>: <span class="en-3"><?=$lang['words'][93]?> <?=$pagecount?> | <?=$number?> - <?=$number2?></span></h1>

<div class="row">
<? if($pagecount==0){?>
<div class="cell-md-12"><?=$lang['words'][134]?></div>
<? }else{?> 

<ul class="blog three-columns clearfix">
<? $i=1; while(@$a=mysqli_fetch_row($products)){
?>	
<li class="column column-1-4">
<a href="/<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html" title="<?=$a[1]?>" class="box__ins1 post-image">
<img src="https://<?=$imgprod?>/upload/middle/<?=$a[3]?>" alt="<?=$a[1]?>" class="img-responsive">
</a>
<h4 class="box-header"><a href="/<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html" title="<?=$a[1]?>"><?=$a[2]?></a></h4>
					<p class="description t1"><a href="/<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html" title="<?=$a[1]?>"><?=$a[1]?></a></p>
</li>

<? $i++;?>
<? if(($i-1)%3==0){?></ul><ul class="blog three-columns clearfix p-t-30"><? }?>
<? }?>
</ul>
  
<? if($pagecount>12){?><div class="cell-md-12">
<? include("page_navigation.php");?></div>
<? }?>
<? }?>					
</div>
</div>


<? include("a_right.php");?>
 
</div>
</div>     
<? include("foot.php");?>