Your IP : 216.73.216.170


Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/
Upload File :
Current File : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/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="container custom-margin-1">
					<div class="row gy-5 gy-lg-0">
						<div class="col-lg-9 order-lg-1 mt-0" >
							<div class="row">
								<div class="col">									
									<h2 class="text-color-dark font-weight-bold text-7 line-height-1 mb-4"><? if($_GET['ntid']==''){?><?=$lang['words'][73]?><? }else{?><?=$newstype[0][1]?><? }?></h2>
                                    
<div class="blog-posts">
<? $i=1; while(@$b=mysqli_fetch_row($news)){
?>
<article class="post post-medium">
									<div class="row mb-3">
										<div class="col-lg-5">
											<div class="post-image">
												<a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html">
													<img src="https://<?=$imgprod?>/upload/middle/<?=$b[4]?>" alt="<?=$b[1]?>" class="img-fluid img-thumbnail img-thumbnail-no-borders rounded-0" />
												</a>
											</div>
										</div>
										<div class="col-lg-7">
											<div class="post-content">
												<h2 class="font-weight-semibold pt-4 pt-lg-0 text-5 line-height-4 mb-2"><a href="/<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><?=$b[1]?></a></h2>
												<div class="post-meta">
												<span><i class="far fa-calendar-alt"></i> <?=date("M",$b[2])?> <?=date("d",$b[2])?>, <?=date("Y",$b[2])?></span></div>
                                                
                                                <p class="mb-0"><?=$db->mystrcut(html_entity_decode($b[3]),140)?>...</p>
											</div>
										</div>
									</div>
								
								</article>

<? $i++;?>
<? }?>  
</div>

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

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