public function action_task($success = 0) { $deptos = array('ATENDIMENTO' => 'ATENDIMENTO', 'CRIACAO' => 'CRIACAO', 'ESTUDIO' => 'ESTUDIO', 'CONEXÕES' => 'CONEXOES', 'PLANEJAMENTO' => 'PLANEJAMENTO', 'DESENVOLVIMENTO' => 'DESENVOLVIMENTO', 'PE AUTORIZACAO' => 'PROD ELETRONICA', 'PG AUTORIZAÇÃO' => 'PROD GRAFICA'); $fx = new Model_Fixa(); if (count($_POST)) { if ($success) { $fx->update_multi($_POST['item'], $_POST['depto']); echo "<span style='font-weight:bold;'>Alteracao concluida com sucesso.</span><br><br>"; } $fxR = $fx->where('depto', '=', $_POST['depto'])->find_all(); } else { $_POST['depto'] = ""; } $this->request->response = View::factory('admin.task')->bind('fx', $fxR)->bind('deptos', $deptos); }
protected function pitDef($depto) { $fx = new Model_Fixa(); $arDef = $fx->where('depto', '=', $depto)->order_by('task')->find_all()->as_array('nicktask', 'task'); return $arDef; }