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

产品

... ... @@ -164,8 +164,8 @@ class ProductController extends HomeBaseController{
public function commp(){
$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']));
$data = Db::name('docu_coa') -> where('id',$id['id']) -> find();
$data['content'] = cmf_replace_content_file_url(htmlspecialchars_decode($data['content']));
$this -> assign('data',$data);
return $this -> fetch();
... ...
... ... @@ -21,15 +21,24 @@
<img src="__TMPL__/public/assets/images/aicon09.png" alt="">
<a href="">说明书</a>
<if condition="$data.fenlei eq 1">
<a href="">说明书</a>
</if>
<if condition="$data.fenlei eq 2">
<a href="">文献</a>
</if>
<if condition="$data.fenlei eq 3">
<a href="">COA</a>
</if>
</div>
<div class="product2_mainBox">
<div class="pro2_tit">
<h2>{$data.post_title}</h2>
<p>发布时间:{$data.create_time|date="Y-m-d H:i:s",###}</p>
<h2>{$data.title}</h2>
<p>发布时间:{$data.time|date="Y-m-d H:i:s",###}</p>
</div>
<div class="pro2_Txt">
{$data.post_content}
{$data.content}
</div>
</div>
</div>
... ...