| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/topsignal/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/topsignal/news.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."_companynewses where member_id=".$id." ");
$pagecount=$num[0];
if(!isset($st))$st=1;
$number=($st-1)*$limit+1;
$number2=($st-1)*$limit+$limit;
$total_pages = ceil($pagecount / $limit);
$sql = "select id,title,created,content,picture,title2 from ".$noe_version."_companynewses where member_id=".$id." order by created desc LIMIT ".($st-1)*$limit.','.$limit;
$res=$db->selectarray($sql);
$news=$res;
$aa='news.html';
$aaa=$lang['words'][73];
$urlsort='news';
$purl=$aa;
$pageh1=$aaa;
$feedbacktit='Online inquire from website';
$topbg='about';
$pagekeyword=$aaa.', '.$company['1'];
$pagekeyword2=$aaa.', '.$company['1'];
$pagekeyword3=$aaa.', '.$company['1'].', '.$company['12'];
$pagekeyword4=$company['12'];
include("head.php");
?>
<section id="content">
<div class="content-wrap">
<div class="container">
<div id="posts" class="post-grid row gutter-40">
<? $i=1; while(@$b=mysqli_fetch_row($news)){
?> <div class="entry col-md-4 col-sm-6 col-12">
<div class="grid-inner">
<div class="entry-image">
<a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><img src="https://<?=$imgprod?>/upload/middle/<?=$b[4]?>" alt="<?=$b[1]?>"></a>
</div>
<div class="entry-title">
<h2 class="nott"><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><?=$b[1]?></a></h2>
</div>
<div class="entry-meta">
<ul>
<li><i class="icon-line-calendar"></i> <?=date("d",$b[2])?> <?=date("M",$b[2])?>, <?=date("Y",$b[2])?></li>
</ul>
</div>
<div class="entry-content">
<p><?=$db->mystrcut(html_entity_decode($b[3]),80)?>...</p>
<a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html" class="more-link"><?=$lang['words'][219]?></a>
</div>
</div>
</div>
<? $i++;?>
<? }?>
</div>
<? if($pagecount>12){?>
<div class="page_num clearfix">
<? include("page_navigation.php");?>
</div>
<? }?>
</div>
</div>
</section>
<? include("foot.php");?>