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

产品

... ... @@ -39,7 +39,8 @@ class CoaController extends AdminBaseController{
//点击编辑显示列表
public function list(){
$data = $this->request->param();
$this -> assign('data',$data);
return $this -> fetch();
... ... @@ -47,7 +48,8 @@ class CoaController extends AdminBaseController{
//显示添加页
public function add(){
$data = $this->request->param();
$this -> assign('data',$data);
return $this -> fetch();
... ... @@ -57,6 +59,7 @@ class CoaController extends AdminBaseController{
public function wzadd(){
$data = $this->request->param();
dump($data);die;
}
... ...
... ... @@ -61,7 +61,7 @@
id="title" required value="" placeholder="请输入标题"/>
</td>
</tr>
<input type="hidden" name="post[post_id]" value="{$data.id}">
<tr>
<th>内容</th>
<td>
... ...
<include file="public@header" />
</head>
<body>
<a href="{:url('Coa/add')}"><button type="button" class="btn btn-default" style="margin:10px 10px;">添加</button></a>
<a href="{:url('Coa/add',array('id'=>$data.id))}"><button type="button" class="btn btn-default" style="margin:10px 10px;">添加</button></a>
<table class="table table-bordered" style="margin:10px 10px;">
<caption>列表</caption>
<thead>
... ...