Your IP : 216.73.216.34


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

<?php 

include("function.php");

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

$ky=htmlspecialchars($_GET['s']); 


$product_count=30;

$pagecount=count($product_count);

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

$page_num=24;

$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.php?searchkey=".$ky

							)

);



$number=$st*$page_num+1;

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


$products=$db->selectarray("SELECT DISTINCT p.id,p.name,p.sn,p.picture,p.content FROM ".$noe_version."_products as p left join ".$noe_version."_keywords as k on p.id=k.product_id WHERE (p.name LIKE '%".$ky."%' or p.sn LIKE '%".$ky."%' or k.name LIKE '%".$ky."%') LIMIT ".$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=$ky.', '.$lang['words'][1].', '.$lang['words'][156].', '.$lang['words'][157].', '.$lang['words'][158];

$pagekeyword2=$ky.', '.$lang['words'][1].', '.$lang['words'][156].', '.$lang['words'][157].', '.$lang['words'][158].', '.$company['1'].','.$company['12']; 

$pagekeyword3=$ky.', '.$lang['words'][1].', '.$lang['words'][156].', '.$lang['words'][157].', '.$lang['words'][158].', '.$company['1'].','.$company['12']; 

$product_count=count($product_count);

$aa="product.html";

$aaa=$lang['words'][72];

$bb="search.php?s=".$ky;

$bbb=$ky;

 include("head.php");
?>
<section class="section-70 section-md-114">
          <div class="shell"> 
            <div class="offset-top-20 range range-xs-center">
              <div class="range range-lg-condensed offset-top-20 range-xs-left section-products">
			 <?php if($pagecount==0){?><?php }else{?>
			<?php $i=1; while(@$a=mysql_fetch_row($products)){
?>	
                <div class="cell-xs-10 cell-lg-3 cell-sm-6 cell-md-4">
                  <div class="product">
                    <div class="product-body"><a href="product_<?=$a[0]?>_<?=$db->turn_name($a[1])?>.html"><img src="upload/middle/<?=$a[3]?>" alt="<?=$a[1]?>" class="img-responsive reveal-inline-block"></a>
                      <div class="offset-top-20">
                        <P class="text-primary"><a href="product_<?=$a[0]?>_<?=$db->turn_name($a[1])?>.html"><?=$a[1]?></a></P>
                      </div>
                      
                      </div>
                    
                  </div>
                </div> 
				<?php $i++;?>
				<?php if(($i-1)%4==0){?>
              </div><div class="range range-lg-condensed offset-top-20 range-xs-left section-products"><?php }?><?php }?>
                </div>
			  <?php if($pagecount>$page_num){?><div class="products_page"><?=str_replace('<a ','<a class="link-page" ',$pages)?></div><?php }?>
<?php }?>					
			  
            </div>

          </div>
        </section>



<?php include("foot.php");?>