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

<?php 

include("function.php");

$producttype3=$db->selectarray("select id,name2 from ".$noe_version."_producttypes where member_id='".$id."' ");

$rrr=$db->toarray($producttype3);

	for($ct=0;$ct<count($rrr);$ct++){$_GET['make_s']=$rrr[$ct][1];$_GET['sort_id']=$rrr[$ct][0];

if($_GET['sort_id']!='')

{

$sql = "select id from ".$noe_version."_producttypes where member_id=".$id." and level =".$_GET['sort_id'];

$result=$db->selectarray($sql);

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



$r=$db->array_multi2single($result); 

@$r=array_unique($r);

if($result[0][0]!=''){



$r = implode(",", $r);




$sql = "select count(id) from ".$noe_version."_products where member_id='".$id."' and status = 1 and producttype_id in (".$_GET['sort_id'].",".$r.") ";}

else $sql = "select count(id) from ".$noe_version."_products where member_id='".$id."' and status = 1 and producttype_id = ".$_GET['sort_id'];

}

else $sql = "select count(id) from ".$noe_version."_products where status = 1 and member_id='".$id."' ";





$num = $db->selectarray($sql);

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

$pagecount=$num[0][0];

$page_num=12;

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



	for($_GET['page']=1;$_GET['page']<=ceil($pagecount/$page_num);$_GET['page']++){@ob_start();



if($_GET['page']!='')$st=$_GET['page']-1;



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

$sql = "select id from ".$noe_version."_producttypes where member_id=".$id." and level =".$_GET['sort_id'];

$result=$db->selectarray($sql);

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

if($_COOKIE['creathtml']>0){



	$pages = $db->build_pagelinks(array(	'TOTAL_POSS'  => $num[0][0],

							'PER_PAGE'    => $page_num,

							'CUR_ST'  => $st,

							'BASE_URL'    => "product_sid_".$_GET['sort_id']

							)

);}else{

$pages = $db->build_pagelinks(array(	'TOTAL_POSS'  => $num[0][0],

							'PER_PAGE'    => $page_num,

							'CUR_ST'  => $st,

							'BASE_URL'    => $db->turn_name($_GET['make_s']).'_supply'.$_GET['sort_id']

							)

);}

$number=$st*$page_num+1;

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

if($_GET['sort_id']!=''){

if($result[0][0]!=''){

$sql = "select id,name,sn,picture,name2 from ".$noe_version."_products where member_id='".$id."' and status = 1 and producttype_id in (".$_GET['sort_id'].",".$r.") order by ep_range ASC LIMIT ".$st*$page_num.','.$page_num;}

else $sql = "select id,name,sn,picture,name2 from ".$noe_version."_products where member_id='".$id."' and status = 1 and producttype_id =".$_GET['sort_id']." order by ep_range ASC LIMIT ".$st*$page_num.','.$page_num;

}

else $sql = "select id,name,sn,picture,name2 from ".$noe_version."_products where status = 1 and member_id='".$id."' order by ep_range ASC  LIMIT ".$st*$page_num.','.$page_num;

$res=$db->selectarray($sql);

$products=$res;

$sql="select id,name,level,img,name2 from ".$noe_version."_producttypes where id='".$_GET['sort_id']."'";

$res=$db->selectarray($sql);

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

if($res[0][3]!='')$brand=$res[0][3];

$aa='product.html';

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

if($_GET['sort_id'])$pagekeyword.=$res[0][1];else $pagekeyword.=$company[5].$company[7];

if($res[0][2]==0){

$bb=$db->turn_name($res[0][4]).'_supply'.$res[0][0].'.html';

$bbb=$res[0][1];	$css[0]=$res[0][0];}

else{

	$cc=$db->turn_name($res[0][4]).'_supply'.$res[0][0].'.html';

$ccc=$res[0][1];

	$sql="select id,name,img,name2 from ".$noe_version."_producttypes where id='".$res[0][2]."'";	$css[1]=$res[0][0];

$res=$db->selectarray($sql);

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

if(!isset($brand)){

if($res[0][2]!='')$brand=$res[0][2];}

$bb=$db->turn_name($res[0][3]).'_supply'.$res[0][0].'.html';

	   	$css[0]=$res[0][0];

$bbb=$res[0][1];	

	}

$pagekeyword.=','.$company[1];	

$fb=$_GET['sort_id'];


$sql = "select name,keyword,des from ".$noe_version."_producttypes where id =".$_GET['sort_id'];

$result=$db->selectone($sql);

$pagekeyword=$result['name'].', '.$lang['words'][191].' '.$result['name'].' '.$lang['words'][192].', '.$lang['words'][193];

$pagekeyword2=$result['name'].', '.$lang['words'][191].' '.$result['name'].' '.$lang['words'][192].', '.$lang['words'][193];

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

$pagekeyword4=$result['name'].', '.$lang['words'][191].' '.$result['name'].' '.$lang['words'][192].', '.$lang['words'][193].', '.$company['12'];



include("head.php");
?>
<section class="well">
            <div class="container">
                <h1 class="text-left"><? if($ccc!='')echo $ccc;elseif($bbb!='')echo $bbb;else{?><?=$lang['words'][92]?><? }?>: <span class="en-3"><?=$lang['words'][93]?> <?=$num[0][0]?> | <?=$number?> - <?=$number2?></span></h1>
                <!--Team-->
                <? if($num[0][0]==0){?><div class="row">
                <div class="col-sm-12"><?=$lang['words'][134]?></div></div>
<? }else{?> 
              <div class="row"><? $i=1; while(@$a=mysqli_fetch_row($products)){
?>	
                <div class="col-sm-2">
                        <div class="box__ins2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="150" align="center" valign="middle"><a href="<?=$db->turn_name($a[4])?>_<?=$a[0]?>.html"><img src="upload/middle/<?=$a[3]?>" alt="<?=$result['name']?>: <?=$a[1]?>" title="<?=$result['name']?>: <?=$a[1]?>" style="max-width:auto; max-height:150px;"></a></td>
  </tr>
</table></div>
<p><a href="<?=$db->turn_name($a[4])?>_<?=$a[0]?>.html" alt="<?=$result['name']?>: <?=$a[1]?>" title="<?=$result['name']?>: <?=$a[1]?>"><?=$a[1]?></a></p>
                    </div>
					<? $i++;?>
					<? if(($i-1)%6==0){?></div><div class="row top_offset_2"><? }?><? }?>
                </div>
                
                <? if($num[0][0]>12){?><div class="products_page"><?=str_replace('<a ','<a class="link-page" ',$pages)?></div><? }?>
<? }?>					
                <!--END team-->
            </div>
        </section> 
<? include("foot.php");
$content = ob_get_contents();
if($_GET['page']==1){
$fp =$db->turn_name($_GET['make_s']).'_supply'.$_GET['sort_id'].'.html';}else{$fp =$db->turn_name($_GET['make_s']).'_supply'.$_GET['sort_id'].'_st_'.($_GET['page']-1).'.html';}



$fp = fopen($fp, "w");







fwrite($fp, $content);

fclose($fp);

ob_end_clean();

unset($bb);

unset($bbb);

unset($cc);

unset($ccc);

unset($css);

}unset($_GET['page']);}

echo "<script language=\"javascript\">window.open('./product_index.php?ttt=$_GET[ttt]','_self');</script>";

?>