| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/newfinehome/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/newfinehome/product.php |
<?php
include("function.php");
$page = !empty($_GET['st']) ? (int)$_GET['st'] : 1;
$limit = 20; // 每页显示的数量
$offset = ($page - 1) * $limit; // 计算偏移量
$num =$db->selectone( "select count(id) from ".$noe_version."_products where member_id=".$id." and status = 1 ");
$pagecount=$num[0];
if(!isset($st))$st=1;
$number=($st-1)*$limit+1;
$number2=($st-1)*$limit+$limit;
$total_pages = ceil($pagecount / $limit);
$products=$db->selectarray("select id,name,sn,picture,name2,more,sizes from ".$noe_version."_products where member_id=".$id." and status = 1 order by ep_range desc LIMIT ".($st-1)*$limit.','.$limit);
$aa='product.html';
$aaa=$lang['words'][72];
$urlsort='product';
$purl=$aa;
$pageh1=$aaa;
$feedbacktit='Online inquire from website';
$pagekeyword=$aaa.', '.$company['1'];
$pagekeyword2=$pagekeyword;
$pagekeyword3=$company['12'];
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($num[0][0]==0){?><?php }else{?>
<?php $i=1; while(@$a=mysqli_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="https://<?=$imgprod?>/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>20){?>
<div class="page_num clearfix">
<?php include("page_navigation.php");?>
</div>
<?php }?>
<?php }?>
</div>
</div>
</section>
<?php include("foot.php");?>