Your IP : 216.73.216.170


Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/
Upload File :
Current File : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/search2.php

<?php 

include("function.php");


$productkey=$db->selectone("select name,name2,name3 from ".$noe_version."_keywords where name3='".$_GET['searchkey']."' ");


$products=$db->selectarray("SELECT DISTINCT p.id,p.name,p.sn,p.picture,p.name2,p.price FROM ".$noe_version."_products as p left join ".$noe_version."_keywords as k on p.id=k.product_id WHERE (p.name2 LIKE '%".$productkey[1]."%' or k.name2 LIKE '%".$productkey[1]."%') LIMIT 0,30");

$product_count=30;

$pagecount=count($product_count);

if($pagecount==0)$pagecount=1;

$page_num=30;

$st=$_GET['st'];

if(!isset($st))$st=0;



	$pages = $db->build_pagelinks2(array(	'TOTAL_POSS'  => count($product_count),

							'PER_PAGE'    => $page_num,

							'CUR_ST'  => $st,

							'BASE_URL'    => "search/".$_GET['searchkey']

							)

);



$number=$st*$page_num+1;

$number2=$st*$page_num+$page_num;

/*$result=$products;

$result=$db->toarray($result);



if(count($result)==0)$pagekeyword.=$company[5];

for ($i = 0; $i < count($result); $i++){

   $pagekeyword.=$result[$i][1].",";

   $result[$i][4]=stripslashes($result[$i][4]);

   $result[$i][4]=html_entity_decode($result[$i][4]);



}*/


$pagekeyword=$productkey[0].', '.$lang['words'][191].' '.$productkey[0].' '.$lang['words'][192].', '.$lang['words'][193];

$pagekeyword2=$productkey[0].', '.$lang['words'][191].' '.$productkey[0].' '.$lang['words'][192].', '.$lang['words'][193];

$pagekeyword3=$productkey[0].', '.$lang['words'][191].' '.$productkey[0].' '.$lang['words'][192].', '.$lang['words'][193].', '.$lang['words'][191].' '.$productkey[0].' '.$lang['words'][156].', '.$lang['words'][191].' '.$productkey[0].' '.$lang['words'][157].', '.$lang['words'][191].' '.$productkey[0].' '.$lang['words'][158];



$product_count=count($product_count);
$aa="product.html";

$aaa="Product";

$bb=$_GET['searchkey'].'_manufacturer.html';
$bbb=$productkey[0];
include("head.php");
?><section class="nei margin-t-40 margin-b-80">
<div class="container co-text">
<div class="tittle">
<h3><?=$productkey[0]?></h3>
</div>


<div class="products">
<ul class="row"><? $i=1; while(@$a=mysqli_fetch_row($products)){
?>	
<li class="col-sm-6 col-md-3">
<div class="prodct"> 
<a href="<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html">
<img class="img-responsive" src="/upload/middle/<?=$a[3]?>" alt="<?=$a[1]?>" title="<?=$a[1]?>">
</a>
<div class="pro-info"> 
<a href="<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html" class="btn btn-1"><?=$a[2]?></a>
<hr>
<a href="<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html"><?=$a[1]?></a>
</div>
</div>
</li>
<? $i++;?>
<? if(($i-1)%4==0){?></ul><ul class="row"><? }?>
<? }?>
</ul>
</div>               
				

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