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

跳转

@@ -27,6 +27,16 @@ class NewController extends HomeBaseController{ @@ -27,6 +27,16 @@ class NewController extends HomeBaseController{
27 27
28 } 28 }
29 29
  30 + public function indu_new_content(){
  31 +
  32 + $id = $this -> request -> param();
  33 + $data = Db::name('portal_post') -> where('id',$id['id']) -> find();
  34 + $data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($data['post_content']));
  35 + $this -> assign('data',$data);
  36 + return $this -> fetch();
  37 +
  38 + }
  39 +
30 //显示行业动向新闻列表 40 //显示行业动向新闻列表
31 public function indu_new(){ 41 public function indu_new(){
32 42
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <ul> 38 <ul>
39 <volist name="data" id="vo"> 39 <volist name="data" id="vo">
40 <li> 40 <li>
41 - <a href="{:url('New/new_content',array('id'=>$vo.post_id))}"> 41 + <a href="{:url('New/indu_new_content',array('id'=>$vo.post_id))}">
42 <div class="inform_box1"> 42 <div class="inform_box1">
43 <div class="inform_box1_rq"> 43 <div class="inform_box1_rq">
44 <div class="inform_box1_rq1"> 44 <div class="inform_box1_rq1">
  1 +<!DOCTYPE html>
  2 +<html lang="en">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <title>澳德新聞--详情</title>
  6 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  7 +</head>
  8 +<body>
  9 +<div class="box2">
  10 + <!--header-->
  11 + <header>
  12 + <include file="public@nav"/>
  13 + </header>
  14 + <!-- 侧边导航-->
  15 + <div class="banner_aside banner_aside2">
  16 + <include file="public@header"/>
  17 + </div>
  18 + <!--main-->
  19 + <div class="ab2_main">
  20 + <div class="ab2_main_box">
  21 + <div class="ab2_title">
  22 + <a href="{:url('Index/index')}">首頁</a>
  23 + <span> > </span>
  24 + <a href="">澳德資訊</a>
  25 + <span> > </span>
  26 + <a href="{:url('New/indu_new')}">行业动向</a>
  27 + </div>
  28 + <div class="ab2_con">
  29 + <div class="ab2_con_tit">
  30 + <h2>{$data.post_title}</h2>
  31 + <p>發佈時間:{$data.create_time|date="Y-m-d H:i:s",###}</p>
  32 + </div>
  33 + <div class="ab2_con_txt">
  34 + {$data.post_content}
  35 + </div>
  36 + </div>
  37 + </div>
  38 + </div>
  39 + <!--footer-->
  40 + <footer>
  41 + <include file="public@footer"/>
  42 + </footer>
  43 +</div>
  44 +<script src="__TMPL__/public/assets/js/jquery.js"></script>
  45 +<script src="__TMPL__/public/assets/js/index.js"></script>
  46 +</body>
  47 +</html>
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 <span> > </span> 23 <span> > </span>
24 <a href="">澳德資訊</a> 24 <a href="">澳德資訊</a>
25 <span> > </span> 25 <span> > </span>
26 - <a href="">澳德新聞</a> 26 + <a href="{:url('New/aonew')}">澳德新聞</a>
27 </div> 27 </div>
28 <div class="ab2_con"> 28 <div class="ab2_con">
29 <div class="ab2_con_tit"> 29 <div class="ab2_con_tit">