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

公司介绍

@@ -37,6 +37,18 @@ class AboutController extends HomeBaseController{ @@ -37,6 +37,18 @@ class AboutController extends HomeBaseController{
37 } 37 }
38 38
39 39
  40 + //公司介绍显示页
  41 + public function about(){
  42 +
  43 + $data = Db::name('portal_category_post') -> where('category_id',15) -> find();
  44 + $shuju = Db::name('portal_post') -> where('id',$data['post_id']) -> find();
  45 + $shuju['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($shuju['post_content']));
  46 + $this -> assign('data',$shuju);
  47 + return $this -> fetch();
  48 +
  49 + }
  50 +
  51 +
40 //显示关于我们 52 //显示关于我们
41 public function index(){ 53 public function index(){
42 54
@@ -81,6 +81,9 @@ class NewController extends HomeBaseController{ @@ -81,6 +81,9 @@ class NewController extends HomeBaseController{
81 81
82 82
83 83
  84 +
  85 +
  86 +
84 } 87 }
85 88
86 89
  1 +<!doctype html>
  2 +<html lang="en">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <meta name="viewport"
  6 + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8 + <title>公司介绍</title>
  9 + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
  10 +</head>
  11 +<body class="pro2_box">
  12 +
  13 +
  14 +<include file="public@nav"/>
  15 +
  16 +
  17 + <div class="product2_main">
  18 + <div class="prp_tit">
  19 + <a href="">首页</a>
  20 + <img src="__TMPL__/public/assets/images/aicon09.png" alt="">
  21 + <a href="">公司介绍</a>
  22 + </div>
  23 + <div class="product2_mainBox">
  24 + <div class="pro2_tit">
  25 + <h2>{$data.post_title}</h2>
  26 + <p>发布时间:{$data.create_time|date="Y-m-d H:i:s",###}</p>
  27 + </div>
  28 +
  29 + <div class="pro2_Txt">
  30 + {$data.post_content}
  31 + </div>
  32 + </div>
  33 + </div>
  34 +
  35 +
  36 + <include file="public@footer" />
  37 +
  38 +
  39 + <script type="text/javascript" src="__TMPL__/public/assets/js/jquery.js"></script>
  40 + <script>
  41 + // 头部下拉
  42 + $('.header2_box>ul>li').each(function () {
  43 + $(this).mouseover(function () {
  44 + $(this).children('.header2_box2').show();
  45 + }).mouseout(function () {
  46 + $(this).children('.header2_box2').hide();
  47 + })
  48 + });
  49 + </script>
  50 +</body>
  51 +</html>