|
@@ -72,9 +72,15 @@ class Vplatform extends Backend
|
|
|
public function edit($ids = NULL)
|
|
public function edit($ids = NULL)
|
|
|
{
|
|
{
|
|
|
$row = $this->model->get($ids);
|
|
$row = $this->model->get($ids);
|
|
|
- if (!$row)
|
|
|
|
|
|
|
+ if (!$row){
|
|
|
$this->error(__('No Results were found'));
|
|
$this->error(__('No Results were found'));
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if ($this->request->isPost()) {
|
|
|
|
|
+ $params = $this->request->post("row/a");
|
|
|
|
|
+ if($params['max']<$params['min']){
|
|
|
|
|
+ $this->error('最大值不能小于最小值');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
$vid = $this->model->where('id', $ids)->value('vid');
|
|
$vid = $this->model->where('id', $ids)->value('vid');
|
|
|
$platform_id = $this->model->where('id', $ids)->value('platform_id');
|
|
$platform_id = $this->model->where('id', $ids)->value('platform_id');
|
|
|
$this->view->assign("vid", $vid);
|
|
$this->view->assign("vid", $vid);
|