更新时间格式bug
This commit is contained in:
@@ -14,7 +14,49 @@ class Form extends Admin {
|
||||
|
||||
//自定义表单
|
||||
public function index(){
|
||||
$this->assign('meta_title','自定义表单');
|
||||
$list = array();
|
||||
|
||||
$data = array(
|
||||
'list' => $list,
|
||||
//'page' => $list->render()
|
||||
);
|
||||
$this->setMeta('自定义表单');
|
||||
$this->assign($data);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加表单
|
||||
*/
|
||||
public function add(){
|
||||
if (IS_POST) {
|
||||
# code...
|
||||
}else{
|
||||
return $this->fetch('public/edit');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑表单
|
||||
*/
|
||||
public function edit(){
|
||||
if (IS_POST) {
|
||||
# code...
|
||||
}else{
|
||||
return $this->fetch('public/edit');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除表单
|
||||
*/
|
||||
public function del(){
|
||||
$id = $this->getArrayParam('id');
|
||||
$result = false;
|
||||
if (false !== $result) {
|
||||
return $this->success('删除成功!');
|
||||
}else{
|
||||
return $this->error('删除失败!');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user