Your IP : 216.73.216.34


Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/beirmgroup/
Upload File :
Current File : /home/zqegovsj/www/us3web.haibo.com.cn/beirmgroup/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="boss_article-item boss_article-detail">
                        <div class="content_bg">

<h1 class="article-title-boss"><? if($_GET['ntid']==''){?><?=$lang['words'][73]?><? }else{?><?=$newstype[0][1]?><? }?></h1>

                <div class="row"><? $i=1; while(@$b=mysqli_fetch_row($news)){
?>	

<article class="event-post col-md-6 bottom_offset_2">
                        <!--Box-->
                        <div class="box-md">
                            <div class="box_left">
                            
                            <? if ($b[4]!="") {?>
<div><a href="<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html">
<img src="https://<?=$imgweb?>/upload/big/<?=$b[4]?>" alt="<?=$b[1]?>" title="<?=$b[1]?>"></a>
</div>
<? }?> 


                                <time datetime="<?=date("y",$b[2])?>-<?=date("m",$b[2])?>-<?=date("d",$b[2])?>" class="heading-2"><span><?=date("d",$b[2])?></span> <?=date("M",$b[2])?> / <?=date("Y",$b[2])?></time>
                            </div>
                            <div class="box_cnt">
                                <h2><a href="<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><?=$b[1]?></a></h2>

                                <p><?=$db->mystrcut(html_entity_decode($b[3]),100)?>...</p>
                                <a href="<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html" class="btn" data-text="<?=$lang['words'][153]?>">
                                    <?=$lang['words'][153]?>
                                </a>
                            </div>
                        </div>
                        <!--END box-->
                    </article><? $i++;?>
							
<? }?>  

<? if($pagecount>12){?>
<? include("page_navigation.php");?>
<? }?>
  </div>

                </div>

            </div>

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