Your IP : 216.73.216.34


Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/topsignal/
Upload File :
Current File : /home/zqegovsj/www/us3web.haibo.com.cn/topsignal/news-index.php

<?php include("function.php");

$sql = "select id,title,picture,keywords,des,content,created,type_id,title2,beizu_pid,beizu_youtube 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('&lt;','<',str_replace('&gt;','>',str_replace('&quot;','"',$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;
$topbg='about';

$pagekeyword=$news[1];
$pagekeyword2=$news[1].', '.$news[3];
$pagekeyword3=$news[1].', '.$news[3];
$pagekeyword4=$news[1].', '.$news[3];;

include("head.php");
?>

<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">
                                    <? if ($news[7]=="5267") {?>
                                    <iframe title="<?=$news[1]?>" width="980" height="550" src="https://www.youtube.com/embed/<?=$news[10]?>" allowfullscreen style="border: 0;"></iframe>
                                    <? } else { ?>
										<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('<table','<table id="mytable" class="table table-bordered co-text font-12px"',str_replace('src="/',' style="margin-bottom:10px;" 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 class="font-bold">Related Products</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");
while(@$reprod=mysqli_fetch_row($reprodsql)){
?>
<div class="oc-item">
<div class="charity-card h-shadow shadow-ts card rounded-0">
<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" style="min-height:120px;">
<div class="product-title mb-0">
<p class="fw-semibold mb-2 mt-2"><?=$reprod[2]?></p>
<h3 class="mb-0 font-14px"><a class="fw-medium" href="/<?=$db->turn_name($reprod[4])?>_product<?=$reprod[0]?>.html" title="<?=$reprod[1]?>"><?=$reprod[1]?></a></h3></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">&lArr;  <?=$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"> &rArr; <?=$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-dark" type="submit"><i class="bi-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");?>