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

产品

... ... @@ -88,7 +88,8 @@ class CoaController extends AdminBaseController{
$data = $this->request->param();
$this -> assign('data',$data);
$shuju = Db::name('docu_coa') -> where('id',$data['id']) -> find();
dump($shuju);die;
$shuju['content'] = cmf_replace_content_file_url(htmlspecialchars_decode($shuju['content']));
$this -> assign('shuju',$shuju);
return $this-> fetch();
}
... ...
... ... @@ -58,14 +58,15 @@
<th>标题<span class="form-required">*</span></th>
<td>
<input class="form-control" type="text" name="post[post_title]"
id="title" required value="" placeholder="请输入标题"/>
id="title" required value="{$shuju.title}" placeholder="请输入标题"/>
</td>
</tr>
<input type="hidden" name="post[post_id]" value="{$data.id}" class="form-control">
<input type="hidden" name="post[id]" value="{$shuju.id}" class="form-control">
<tr>
<th>内容</th>
<td>
<script type="text/plain" id="content" name="post[post_content]"></script>
<script type="text/plain" id="content" name="post[post_content]" value="{$shuju.content}"></script>
</td>
</tr>
... ...