Your IP : 216.73.216.170


Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/biguo/
Upload File :
Current File : /home/zqegovsj/www/us3web.haibo.com.cn/biguo/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");
?><section class="content">

<h2 class="p-b-20 font-bold"><span><?=$aaa?></span></h2>

<section class="postlist" style="margin-top:0px;">
<? $i=1; while(@$b=mysqli_fetch_row($news)){
?><article class="post" style="margin-top:0px;">
<h2 style="margin-top:0px;"><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><?=$b[1]?></a></h2>
				<p class="post-meta"><?=date("d",$b[2])?> <?=date("M",$b[2])?>, <?=date("Y",$b[2])?></p>
				<div class="img medium"><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><img src="https://<?=$imgprod?>/upload/middle/<?=$b[4]?>" alt="<?=$b[1]?>"></a></div>
				<p><?=$db->mystrcut(html_entity_decode($b[3]),260)?>...</p>
				
				<p class="more"><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html">Read more</a></p>
			</article><? $i++;?><? }?>  

<? if($pagecount>12){?><div class="cell-md-12">
<? include("page_navigation.php");?></div>
<? }?>

</section>
</section>     
<? include("foot.php");?>