| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/laundrypodsac/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/laundrypodsac/brands.php |
<?php
include("function.php");
$page = !empty($_GET['st']) ? (int)$_GET['st'] : 1;
$limit = 12; // 每页显示的数量
$offset = ($page - 1) * $limit; // 计算偏移量
isset($_GET['st'])?$st=$_GET['st']:$st=1;
$sql = "select count(id) from ".$noe_version."_products where member_id=".$id." and colors LIKE '%".$_GET['sort_id']."%' ";
$products =$db->selectarray( "select id,name,sn,picture,name2,price,sizes from ".$noe_version."_products where member_id=".$id." and colors LIKE '%".$_GET['sort_id']."%' order by ep_range desc LIMIT ".($st-1)*$limit.','.$limit);
$num = $db->selectarray($sql);
$num = $db->toarray($num);
isset($num[0][0])?$pagecount=$num[0][0]:$st=1;
$number=($st-1)*$limit+1;
$number2=($st-1)*$limit+$limit;
$total_pages = ceil($pagecount / $limit);
$tit=$db->selectone("select id,name,name2 from en_colors where id='".$_GET['sort_id']."'");
$bb=$db->turn_name($tit[2]).'_brands'.$tit[0].'.html';
$bbb=$tit[1];
$aa='product.html';
$aaa=$lang['words'][72];
$urlsort=$db->turn_name($tit[2]).'_brands'.$tit[0];
$purl=$bb;
$feedbacktit=$tit[1];
$pageh1=$tit[1];
$pagekeyword=$tit['1'].', '.$lang['words'][1];
$pagekeyword2=$pagekeyword;
$pagekeyword3=$tit['1'].' '.$lang['words'][159].', '.$lang['words'][194].', '.$lang['words'][193].', '.$lang['words'][191].' '.$tit['1'].' '.$lang['words'][156].', '.$lang['words'][157].', '.$lang['words'][158];
include("head.php");
?>
<section id="page-title" class="parallax page-title-center center" style="background-image: url('https://<?=$imgweb?>/pic/top-bg.jpg'); background-size: cover; padding: 100px 0;" data-100-bottom-top="background-position:0px 200px;" data-top-bottom="background-position:0px -200px;">
<div class="container clearfix" style="z-index: 2">
<h1><?=$pageh1?></h1>
<span><?=$lang['words'][231]?></span>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="https://<?=$company2[13]?>/"><i class="icon-home"></i> <?=$lang['words'][70]?></a>
</li>
<? if($aaa!=''){?>
<li class="breadcrumb-item"><a href="https://<?=$company2[13]?>/<?=$aa?>"><?=ucfirst(strtolower($aaa))?></a></li>
<? if($bbb!=''){?><li class="breadcrumb-item"><a href="https://<?=$company2[13]?>/<?=$bb?>"><?=$bbb?></a></li><? if($ccc!=''){?><li class="breadcrumb-item"><a href="https://<?=$company2[13]?>/<?=$cc?>"><?=$ccc?></a></li><? if($ddd!=''){?><li class="breadcrumb-item"><a href="https://<?=$company2[13]?>/<?=$dd?>"><?=$ddd?></a></li><? } } } }?>
</ol>
</div>
</section>
<section id="content">
<div class="content-wrap">
<div class="container">
<div id="shop" class="shop row gutter-30">
<? $i=1; while(@$a=mysqli_fetch_row($products)){
?><div class="product col-lg-3 col-md-4 col-sm-6 col-6">
<div class="charity-card h-shadow shadow-ts card rounded-5">
<div class="product p-3">
<div class="product-image">
<a href="/<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html" title="<?=$a[1]?>"><img src="https://<?=$imgprod?>/upload/middle/<?=$a[3]?>" alt="<?=$a[1]?>"></a>
</div>
<div class="product-desc">
<div class="product-title mb-0">
<p class="fw-semibold mb-2 mt-2"><?=$a[2]?></p>
<h4 class="mb-0" style="min-height:135px;"><a class="fw-medium" href="/<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html" title="<?=$a[1]?>"><?=$a[1]?></a></h4></div>
</div>
<div class="row justify-content-between align-items-center pb-0 mb-0 pt-3">
<div class="col-md-6 col-4 col-sm-6">
<? if ($a[6]!=="") {?>
<img src="https://<?=$imgweb?>/pic/sizes-<?=($a[6])?>.png" style="max-height:50px; width:auto;">
<? }?>
</div>
<div class="col-md-6 col-8 col-sm-6 text-right">
<a href="/<?=$db->turn_name($a[4])?>_product<?=$a[0]?>.html#Feedback" class="button button-small button-rounded button-border button-teal"><?=$lang['words'][316]?></a>
</div>
</div>
</div>
</div></div>
<? $i++;?>
<? }?>
</div>
<? if($pagecount>12){?>
<div class="page_num clearfix">
<? include("page_navigation.php");?>
</div>
<? }?>
</div>
</div>
</section>
<? include("foot.php");?>