| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/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 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="container custom-margin-1">
<div class="row gy-5 gy-lg-0">
<div class="col-lg-9 order-lg-1 mt-0" >
<div class="row">
<div class="col">
<h2 class="text-color-dark font-weight-bold text-7 line-height-1 mb-4"><?=$bbb?></h2>
<div class="row">
<div class="col-lg-6">
<a href="https://<?=$imgprod?>/upload/big/<?=$product[4]?>" title="<?=$product[1]?>" alt="<?=$product[1]?>" class="img-thumbnail d-block lightbox" data-plugin-options="{'type':'image'}"><img class="img-fluid" src="https://<?=$imgprod?>/upload/middle/<?=$product[4]?>" alt="<?=$product[1]?>" ></a>
</div>
<div class="col-lg-6">
<div class="summary entry-summary position-relative">
<div class="position-absolute top-0 right-0">
<div class="products-navigation d-flex">
<?
$sql1="select id,name,sn,name2 from ".$noe_version."_products where member_id=".$id." and id<'".$_GET['pid']."' order by id desc limit 0,1";
$rstmp1=$db->selectone($sql1);
?><? if(!empty($rstmp1[0])) { ?>
<a href="/<?=$db->turn_name($rstmp1[3])?>_product<?=$rstmp1[0]?>.html" class="prev text-decoration-none text-color-dark text-color-hover-primary border-color-hover-primary" data-bs-toggle="tooltip" data-bs-animation="false" data-bs-original-title="<?=$rstmp1[1]?>"><i class="fas fa-chevron-left"></i></a>
<? } else { ?><? }?>
<?
$sql2="select id,name,sn,name2 from ".$noe_version."_products where member_id=".$id." and id>'".$_GET['pid']."' order by id asc limit 0,1";
$rstmp2=$db->selectone($sql2);
?><? if(!empty($rstmp2[0])) { ?>
<a href="/<?=$db->turn_name($rstmp2[3])?>_product<?=$rstmp2[0]?>.html" class="next text-decoration-none text-color-dark text-color-hover-primary border-color-hover-primary" data-bs-toggle="tooltip" data-bs-animation="false" data-bs-original-title="<?=$rstmp2[1]?>"><i class="fas fa-chevron-right"></i></a>
<? } else { ?><? }?>
</div>
</div>
<h1 class="mb-0 font-weight-bold text-7"><?=$product[1]?></h1>
<div class="divider divider-small">
<hr class="bg-color-grey-scale-4">
</div>
<p class="text-3-5 mb-3">
<?=str_replace("\n","<br>",str_replace(' ',' ',$product[3]))?>
</p>
</div> </div></div> </div></div>
<hr class="solid my-5">
<h4 class="mb-3">Related <strong>Products</strong></h4>
<div class="products row">
<div class="col">
<div class="owl-carousel owl-theme show-nav-title nav-dark mb-0" data-plugin-options="{'loop': false, 'autoplay': false,'items': 4, 'nav': true, 'dots': false, 'margin': 20, 'autoplayHoverPause': true, 'autoHeight': true}">
<? $reprodsql=$db->selectarray("select id,name,sn,picture,name2 from ".$noe_version."_products where member_id=".$id." and producttype_id=".$product[5]." order by rand() LIMIT 0,4");
while(@$reprod=mysqli_fetch_row($reprodsql)){
?>
<div class="product mb-0">
<div class="product-thumb-info border-all mb-3 ">
<a href="/<?=$db->turn_name($reprod[4])?>_product<?=$reprod[0]?>.html" title="<?=$reprod[1]?>">
<div class="product-thumb-info-image">
<img class="img-fluid" src="https://<?=$imgprod?>/upload/middle/<?=$reprod[3]?>" alt="<?=$reprod[1]?>">
</div>
</a>
</div>
<div class="d-flex justify-content-between">
<div>
<h3 class="text-3-5 font-weight-medium font-alternative text-transform-none line-height-3 mb-0"><a href="/<?=$db->turn_name($reprod[4])?>_product<?=$reprod[0]?>.html" class="text-color-dark text-color-hover-primary"><?=$reprod[1]?></a></h3>
</div>
</div>
</div>
<? }?>
</div></div></div>
</div><? include("a_right.php");?>
</div>
</div>
<? include("foot.php");?>