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/search2.php

<?php 

include("function.php");


$productkey=$db->selectone("select name from ".$noe_version."_keywords where id='".$_GET['kid']."' ");


$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 '%".$productkey[0]."%' or k.name LIKE '%".$productkey[0]."%') 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'][1].', '.$lang['words'][156].', '.$lang['words'][157].', '.$lang['words'][158];

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

$pagekeyword3=$productkey[0].', '.$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="Product";

$bb='manufacturer_'.$_GET['searchkey'].'_'.$_GET['kid'].'.html';
$bbb=$productkey[0];
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 }?>					
			  
            </div>

          </div>
        </section>



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