| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/beiresthetic/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/beiresthetic/product_index.php |
<?php include("function.php");
$imgs=$db->selectarray("select img,title from ".$noe_version."_img where member_id=".$id." and product_id='".$_GET['pid']."'");
$imgs=$db->toarray($imgs);
$imgsnum = $db->selectone("select count(id) from ".$noe_version."_img where product_id=".$_GET['pid']);
$product = $db->selectone("select id,name,sn,content,picture,producttype_id,more,name2,price,now_price,member_price,member2_price,beizu_price from ".$noe_version."_products where member_id=".$id." and id= '".$_GET['pid']."'");
$product[3]= stripslashes($product[3]);
$product[3]=html_entity_decode($product[3]);
$product[6]=str_replace('<','<',str_replace('>','>',str_replace('"','"',$product[6])));
$product[6]= stripslashes($product[6]);
$product[6]=html_entity_decode($product[6]);
$product[6]=html_entity_decode($product[6]);
$ptype=$db->selectone("select id,name,level,img,name2 from ".$noe_version."_producttypes where id='".$product[5]."'");
$aa='product.html';
$aaa=$lang['words'][72];
if($ptype[2]==0){
$bb=$db->turn_name($ptype[4]).'_supply'.$ptype[0].'.html';
$bbb=$ptype[1];
$pcateid=$ptype[0];
}
else{
$cc=$db->turn_name($ptype[4]).'_supply'.$ptype[0].'.html';
$ccc=$ptype[1];
$puptybe=$db->selectone("select id,name,img,name2,level from ".$noe_version."_producttypes where id='".$ptype[2]."'");
$bb=$db->turn_name($puptybe[3]).'_supply'.$puptybe[0].'.html';
$bbb=$puptybe[1];
$pcateid=$puptybe[0];
if($puptybe[4]!=0){
$ptoptybe=$db->selectone("select id,name,img,name2,level from ".$noe_version."_producttypes where id='".$puptybe[4]."'");
if(isset($ccc)){$ddd=$ccc;
$dd=$cc;};
if(isset($bbb)){$ccc=$bbb;
$cc=$bb;};
$bb=$db->turn_name($ptoptybe[3]).'_supply'.$ptoptybe[0].'.html';
$bbb=$ptoptybe[1];
}
}
$purl=$db->turn_name($product[7]).'_product'.$product[0].'.html';
$keytit=$product[1];
$feedbacktit=$product[2].' - '.$product[1];
$pagekeyword=$keytit.', '.$lang['words'][1];
$pagekeyword2=$pagekeyword;
$pagekeyword3=$keytit.' '.$lang['words'][159].', '.$lang['words'][194].', '.$lang['words'][193].', '.$lang['words'][191].' '.$keytit.' '.$lang['words'][155].', '.$lang['words'][156].', '.$lang['words'][157];
include("head.php");
?><div class="n_main">
<div class="container">
<? include("a_left.php");?>
<div class="n_right">
<div class="products">
<div class="products_m clearfix"></div>
<h1 class="p-b-20 dark-color font-bold">
<?=$ptype[1]?>
</h1>
<div class="main">
<div class="pro_page p-b-20">
<div class="container">
<div class="pro_main">
<div class="col-md-7 col-xs-12 prom_img">
<div class="swiper zoom-section" id="pro_img_gallery">
<div id="anypos"></div>
<ul class="swiper-wrapper">
<li class="swiper-slide"><a href="https://<?=$imgprod?>/upload/big/<?=$product[4]?>" title="<?=$product[1]?>" class="cloud-zoom" rel="position:'inside',showTitle:false,adjustX:-4,adjustY:-4"><img src="https://<?=$imgprod?>/upload/middle/<?=$product[4]?>" title="<?=$product[1]?>" alt="<?=$product[1]?>"/></a></li>
<? if ($imgsnum[0]!=0){?><? for($i=0;$i<count($imgs);$i++){?>
<li class="swiper-slide"><a href="https://<?=$imgprod?>/upload/big/<?=$imgs[$i][0]?>" title="<?=$product[1]?>" class="cloud-zoom" rel="position:'inside',showTitle:false,adjustX:-4,adjustY:-4"><img src="https://<?=$imgprod?>/upload/middle/<?=$imgs[$i][0]?>" title="<?=$product[1]?>" alt="<?=$product[1]?>"/></a></li>
<? }?><? }?>
</ul>
</div>
<div class="swiper" id="pro_img_thumbs">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="https://<?=$imgprod?>/upload/small/<?=$product[4]?>" title="<?=$product[1]?>" alt="<?=$product[1]?>" /></div>
<? if ($imgsnum[0]!=0){?><? for($i=0;$i<count($imgs);$i++){?>
<div class="swiper-slide"><img src="https://<?=$imgprod?>/upload/small/<?=$imgs[$i][0]?>" title="<?=$product[1]?>" alt="<?=$product[1]?>" /></div>
<? }?><? }?>
</div>
</div>
</div>
<div class="modelTostParents"></div>
<script language="javascript">
var gallerySwiper = new Swiper('#pro_img_gallery',{
autoHeight: true,
effect : 'fade',
thumbs: {
swiper: {
el: '#pro_img_thumbs',
spaceBetween: 5,
slidesPerView: 5,
watchSlidesVisibility: true,
},
autoScrollOffset: 1,
}
})
</script>
</div>
</div>
</div>
<div class="products_main">
<h2 class="p-b-10 dark-color font-bold"><?=$product[1]?></h2>
<h3 class="dark-color font-bold" style="margin-bottom:20px;"><?=$product[2]?></h3>
<h3 class="dark-color font-bold">Price: USD$ <?=$product[12]?></h3>
<div class="pro_more">
<div class="p-b-30 main-more"><a rel="nofollow" href="#Feedback" class="inquiry_pro"><i class="fa fa-commenting"></i>Inquire Now</a></div>
</div>
<div class="tab_wrapper first_tab">
<ul class="tab_list">
<li class="active">Product Details</li>
</ul>
<div class="content_wrapper">
<div class="tab_content active">
<p>
<?=str_replace("\n","<br>",str_replace(' ',' ',$product[3]))?>
</p>
<?=str_replace(' ',' ',str_replace('<table','<table id="mytable" class="table table-bordered co-text font-12px"',str_replace('src="/',' style="margin-bottom:10px;" class="img-responsive" src="https://us3.supplierlist.com/',str_replace('<p','<p class="mb-2"',$product[6]))))?>
<div class="tags_ul">
<p class="margin-t-20"><div class="fa fa-tags" style="margin:5px 10px 0px 0px;"></div><? $sql = "select id,name,name3 from ".$noe_version."_keywords where product_id= '".$_GET['pid']."'";
$res=$db->selectarray($sql);$xx=0;
while(@$d=mysqli_fetch_row($res)){$xx++;if($xx!=1)echo ', ';
?><a href="<?=$d[2]?>_manufacturer.html" class="link2"><?=$d[1]?></a><? }?>
</p>
</div>
<ul class="navigation clearfix">
<?
$sql1="select id,name,sn,name2 from ".$noe_version."_products where id<'".$_GET['pid']."' and member_id=".$id." order by id desc limit 0,1";
$rstmp1=$db->selectone($sql1);
?><? if(!empty($rstmp1[0])) { ?>
<li class="prev_post"><a href="<?=$db->turn_name($rstmp1[3])?>_product<?=$rstmp1[0]?>.html"><span class="meta_nav"><?=$lang['words'][162]?>:</span> <p class="post_title"><?=$rstmp1[1]?></p></a></li>
<? } else { ?><? }?>
<?
$sql2="select id,name,sn,name2 from ".$noe_version."_products where id>'".$_GET['pid']."' and member_id=".$id." order by id asc limit 0,1";
$rstmp2=$db->selectone($sql2);
?><? if(!empty($rstmp2[0])) { ?>
<li class="next_post"><a href="<?=$db->turn_name($rstmp2[3])?>_product<?=$rstmp2[0]?>.html"><span class="meta_nav"><?=$lang['words'][163]?>: </span><p class="post_title"><?=$rstmp2[1]?></p></a></li>
<? } else { ?><? }?>
</ul>
<hr class="divider divider-iron divider-dotted divider-offset-sm">
<? include("a_feedback.php");?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<? include("foot.php");?>