| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/beiresthetic/css/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/beiresthetic/css/product.php |
<?php
include("function.php");
$page = !empty($_GET['st']) ? (int)$_GET['st'] : 1;
$limit = 12; // 每页显示的数量
$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 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;
$feedbacktit='Online inquire from website';
$pagekeyword=$aaa.', '.$company['1'];
$pagekeyword2=$pagekeyword;
$pagekeyword3=$company['12'];
include("head.php");
?>
<section class="section">
<div class="container">
<div class="row">
<div class="col-xl-8 col-lg-8 col-md-12 col-sm-12 col-12">
<h1 class="p-b-20"><?=$lang['words'][94]?>: <span class="en-3"><?=$lang['words'][93]?> <?=$pagecount?> | <?=$number?> - <?=$number2?></span></h1>
<div class="row">
<? if($pagecount==0){?>
<div class="col-md-12"><?=$lang['words'][134]?></div>
<? }else{?>
<? $i=1; while(@$a=mysqli_fetch_row($products)){
?>
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12 p-b-20">
<div class="service-data">
<div class="service-image box__ins2">
<a href="/<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html"><img src="https://<?=$imgprod?>/upload/middle/<?=$a[3]?>" class="common-transition img-fluid" alt="<?=$a[1]?>"> </a>
</div>
<div class="service-name">
<p><?=$a[1]?></p>
</div>
</div>
</div>
<? $i++;?>
<? }?>
<? if($pagecount>12){?><div class="cell-md-12">
<? include("page_navigation.php");?></div>
<? }?>
<? }?>
</div>
</div>
<? include("a_right.php");?>
</div>
</div> </section>
<? include("foot.php");?>