作者 anyv
1 个管道 的构建 通过 耗费 0 秒

跳转

... ... @@ -27,6 +27,16 @@ class NewController extends HomeBaseController{
}
public function indu_new_content(){
$id = $this -> request -> param();
$data = Db::name('portal_post') -> where('id',$id['id']) -> find();
$data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($data['post_content']));
$this -> assign('data',$data);
return $this -> fetch();
}
//显示行业动向新闻列表
public function indu_new(){
... ...
... ... @@ -38,7 +38,7 @@
<ul>
<volist name="data" id="vo">
<li>
<a href="{:url('New/new_content',array('id'=>$vo.post_id))}">
<a href="{:url('New/indu_new_content',array('id'=>$vo.post_id))}">
<div class="inform_box1">
<div class="inform_box1_rq">
<div class="inform_box1_rq1">
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>澳德新聞--详情</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
</head>
<body>
<div class="box2">
<!--header-->
<header>
<include file="public@nav"/>
</header>
<!-- 侧边导航-->
<div class="banner_aside banner_aside2">
<include file="public@header"/>
</div>
<!--main-->
<div class="ab2_main">
<div class="ab2_main_box">
<div class="ab2_title">
<a href="{:url('Index/index')}">首頁</a>
<span> > </span>
<a href="">澳德資訊</a>
<span> > </span>
<a href="{:url('New/indu_new')}">行业动向</a>
</div>
<div class="ab2_con">
<div class="ab2_con_tit">
<h2>{$data.post_title}</h2>
<p>發佈時間:{$data.create_time|date="Y-m-d H:i:s",###}</p>
</div>
<div class="ab2_con_txt">
{$data.post_content}
</div>
</div>
</div>
</div>
<!--footer-->
<footer>
<include file="public@footer"/>
</footer>
</div>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="__TMPL__/public/assets/js/index.js"></script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -23,7 +23,7 @@
<span> > </span>
<a href="">澳德資訊</a>
<span> > </span>
<a href="">澳德新聞</a>
<a href="{:url('New/aonew')}">澳德新聞</a>
</div>
<div class="ab2_con">
<div class="ab2_con_tit">
... ...