| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/beirlaser/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/beirlaser/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;
$pagekeyword=$aaa.', '.$company['1'];
$pagekeyword2=$aaa.', '.$company['1'];
$pagekeyword3=$aaa.', '.$company['1'].', '.$company['12'];
$pagekeyword4=$company['12'];
include("head.php");
?><div class="shell section-bottom-60">
<div class="range">
<div class="cell-md-8 text-xs-left">
<h1 class="p-b-20 text-italic"><?=$aaa?></h1>
<div class="range offset-top-10">
<? $i=1; while(@$b=mysqli_fetch_row($news)){
?>
<div class="p-b-20 cell-xs-6 cell-sm-6 cell-md-6 blog-post blog-post-grid">
<div class="blog-post-media"><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><img src="https://<?=$imgprod?>/upload/middle/<?=$b[4]?>" alt="<?=$b[1]?>" class="img-responsive">
<div class="blog-post-caption">
<div class="blog-post-meta-date"><span class='blog-post-meta-date-big reveal-block'><?=date("d",$b[2])?></span> <?=date("M",$b[2])?></div>
</div></a></div>
<div class="blog-post-meta">
<h5 class="blog-post-meta-title"><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html" class="text-base"><?=$b[1]?></a></h5>
</div>
<p><?=$db->mystrcut(html_entity_decode($b[3]),80)?>...</p>
<div><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html" class="btn btn-link"><span class="btn-text">read more</span></a>
</div>
</div>
<? $i++;?>
<? }?>
<? if($pagecount>12){?><div class="cell-md-12">
<? include("page_navigation.php");?></div>
<? }?>
</div>
</div>
<? include("a_right.php");?>
</div>
</div>
<? include("foot.php");?>