public function actions() { $this->years = Common::years(date("Y"), "1995"); //get Years $this->toolBar = $this->toolBar(); //get toolbar $request = Yii::$app->request; /* * get action */ $this->_action = $request->get("action"); $className = "\\app\\module\\input\\models\\" . ucfirst($this->_action); $class = new \ReflectionClass($className); $this->_model = $class->newInstanceArgs(); /* * and where */ if ($request->isPost) { $this->andwhere = $this->andwhere($request->post(ucfirst($this->_action))); //get andwhere } elseif ($request->get("year") && $request->get("year") != "all") { $this->andwhere[] = ["like", "Year", $request->get("year")]; $this->_year = $request->get("year"); } }
echo $utype; ?> "> <input type="hidden" disabled id="action" value="assess"> <?php echo $form->field($model, 'EntrustCycle', ['template' => '{input}{error}'])->hiddenInput(["data-entrust-cycle" => "entrust-cycle"]); echo $form->field($model, 'GetbackCycle', ['template' => '{input}{error}'])->hiddenInput(["data-getback-cycle" => "getback-cycle"]); echo $form->field($model, 'PutOnRecordCycle', ['template' => '{input}{error}'])->hiddenInput(["data-puton-cycle" => "puton-cycle"]); ?> <tr> <td><?php echo $form->field($model, 'Year', ['template' => '{label}'])->label("年度"); ?> </td> <td><?php echo $form->field($model, 'Year', ['template' => '{input}{error}'])->dropDownList(Common::years(date("Y"), "1995")); ?> </td> <td><?php echo $form->field($model, 'FlowNumber', ['template' => '{label}']); ?> </td> <td><?php echo $form->field($model, 'FlowNumber', ['template' => '{input}{error}'])->textInput(["readonly" => "readonly", "data-flow-number" => "flow-number"]); ?> </td> <td><?php echo $form->field($model, 'Supervise', ['template' => '{label}']); ?> </td> <td><?php