| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/laundrypodsac/duoyy-web/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/laundrypodsac/duoyy-web/news-index.php |
<?php include("function.php");
$sql = "select id,title,picture,keywords,des,content,created,type_id,title2,beizu_pid from ".$noe_version."_companynewses where member_id=".$id." and id= '".$_GET['nid']."'";
$res=$db->selectarray($sql);
$res=$db->toarray($res);
$res[0][4]= stripslashes($res[0][4]);
$res[0][4]=html_entity_decode($res[0][4]);
$res[0][5]=str_replace('<','<',str_replace('>','>',str_replace('"','"',$res[0][5])));
$res[0][5]= stripslashes($res[0][5]);
$res[0][5]=html_entity_decode($res[0][5]);
$news=$res[0];
$newstype=$db->selectone("select id,name,name2 from ".$noe_version."_newstypes where member_id=".$id." and id= '".$news[7]."'");
$aa='news.html';
$aaa=$lang['words'][73];
$bb=$db->turn_name($newstype[2]).'_newstype'.$newstype[0].'.html';
$bbb=$newstype[1];
$purl=$db->turn_name($news[8]).'_newsview'.$news[0].'.html';
$feedbacktit='Online inquire from website';
$pageh1=$aaa;
$pagekeyword=$news[1];
$pagekeyword2=$news[1].', '.$news[3];
$pagekeyword3=$news[1].', '.$news[3];
$pagekeyword4=$news[1].', '.$news[3];;
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 class="row gx-5 col-mb-80">
<!-- Post Content
============================================= -->
<main class="postcontent col-lg-9">
<div class="single-post mb-0">
<!-- Single Post
============================================= -->
<div class="entry">
<!-- Entry Title
============================================= -->
<div class="entry-title">
<h2 class="nott"><?=$news[1]?></h2>
</div><!-- .entry-title end -->
<!-- Entry Meta
============================================= -->
<div class="entry-meta">
<ul>
<li><i class="icon-line-calendar"></i> <?=date("d",$news[6])?> <?=date("M",$news[6])?>, <?=date("Y",$news[6])?></li>
</ul>
</div><!-- .entry-meta end -->
<!-- Entry Image
============================================= -->
<div class="entry-image">
<img src="https://<?=$imgprod?>/upload/big/<?=$news[2]?>" alt="<?=$news[1]?>" class="img-responsive">
</div><!-- .entry-image end -->
<div class="entry-content mt-0">
<div class="co-text">
<?=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"',$news[5]))))?>
</div>
<div class="clearfix"></div>
</div>
</div>
<? if ($news[9]!=="") {?>
<div class="w-100 pb-0 mb-0">
<h3 style="color:#3E7981;" class="font-bold"><?=$lang['words'][314]?></h3>
<div class="owl-carousel product-carousel carousel-widget" data-margin="30" data-pagi="false" data-autoplay="5000" data-items-xs="1" data-items-md="2" data-items-lg="3" data-items-xl="3">
<? $reprodsql=$db->selectarray("select id,name,sn,picture,name2,price,sizes from ".$noe_version."_products where member_id=".$id." and id in(".$news[9].") order by id desc LIMIT 0,3");
while(@$reprod=mysqli_fetch_row($reprodsql)){
?>
<div class="oc-item">
<div class="charity-card h-shadow shadow-ts card rounded-5 mb-3">
<div class="product p-3">
<div class="product-image">
<a href="/<?=$db->turn_name($reprod[4])?>_product<?=$reprod[0]?>.html" title="<?=$reprod[1]?>"><img src="https://<?=$imgprod?>/upload/middle/<?=$reprod[3]?>" alt="<?=$reprod[1]?>"></a>
</div>
<div class="product-desc">
<div class="product-title mb-0">
<p class="fw-semibold mb-2 mt-2"><?=$reprod[2]?></p>
<h4 class="mb-0" style="min-height:135px;"><a class="fw-medium" href="/<?=$db->turn_name($reprod[4])?>_product<?=$reprod[0]?>.html" title="<?=$reprod[1]?>"><?=$reprod[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-xs-6 col-sm-6">
<? if ($reprod[6]!=="") {?>
<img src="https://<?=$imgweb?>/pic/sizes-<?=($reprod[6])?>.png" style="max-height:50px; width:auto;">
<? }?>
</div>
<div class="col-md-6 col-xs-6 col-sm-6 text-right">
<a href="/<?=$db->turn_name($reprod[4])?>_product<?=$reprod[0]?>.html#Feedback" class="button button-small button-rounded button-border button-teal">Inquiry</a>
</div>
</div>
</div>
</div>
</div>
<? }?>
</div>
</div>
<? }?>
<div class="line"></div>
<div class="margin-t-20">
<div class="row justify-content-between col-mb-30 post-navigation">
<?
$sql1="select id,title,created,type_id,title2 from ".$noe_version."_companynewses where type_id='".$news[7]."' and id<'".$_GET['nid']."' order by id desc limit 0,1";
$rstmp1=$db->selectone($sql1);
?><? if(!empty($rstmp1[0])) { ?><div class="col-12 col-md-auto text-center">
<a href="<?=$db->turn_name($rstmp1[4])?>_newsview<?=$rstmp1[0]?>.html">⇐ <?=$rstmp1[1]?></a></div>
<? } else { ?><? }?>
<?
$sql2="select id,title,created,type_id,title2 from ".$noe_version."_companynewses where type_id='".$news[7]."' and id>'".$_GET['nid']."' order by id asc limit 0,1";
$rstmp2=$db->selectone($sql2);
?><? if(!empty($rstmp2[0])) { ?><div class="col-12 col-md-auto text-center"><a href="<?=$db->turn_name($rstmp2[4])?>_newsview<?=$rstmp2[0]?>.html"> ⇒ <?=$rstmp2[1]?></a></div><? } else { ?><? }?>
</div>
</div>
</div>
</main>
<aside class="sidebar col-lg-3">
<div class="sidebar-widgets-wrap">
<div id="subscriber" class="widget subscribe-widget">
<h4 class="highlight-me">Search Products</h4>
<form action="#" class="my-0">
<div class="input-group mx-auto">
<input type="text" class="form-control" placeholder="Search..." required="">
<button class="btn btn-success" type="submit"><i class="icon-line-search"></i></button>
</div>
</form>
</div>
<div id="post-lists" class="widget">
<h4>Latest Post</h4>
<div class="posts-sm row col-mb-30" id="post-list-sidebar">
<? $rnewsql=$db->selectarray("select id,title,created,content,picture,title2 from ".$noe_version."_companynewses where member_id=".$id." order by created desc LIMIT 0,6");
while(@$hnew=mysqli_fetch_row($rnewsql)){
?>
<div class="entry col-12">
<div class="grid-inner row g-0">
<div class="col-auto">
<div class="entry-image">
<a href="/<?=$db->turn_name($hnew[5])?>_newsview<?=$hnew[0]?>.html" title="<?=$hnew[1]?>"><img src="https://<?=$imgprod?>/upload/middle/<?=$hnew[4]?>" alt="<?=$hnew[1]?>" class="img-responsive"></a>
</div>
</div>
<div class="col ps-3">
<div class="entry-title">
<h4><a href="/<?=$db->turn_name($hnew[5])?>_newsview<?=$hnew[0]?>.html" title="<?=$hnew[1]?>"><?=$hnew[1]?></a></h4>
</div>
<div class="entry-meta">
<ul>
<li><?=date("d",$hnew[2])?> <?=date("M",$hnew[2])?>, <?=date("Y",$hnew[2])?></li>
</ul>
</div>
</div>
</div>
</div>
<? }?>
</div>
</div> </div>
</aside>
</div></div></div>
</section>
<? include("foot.php");?>