public function test_report() { $row = Lib_Req::post('row'); $O_Ticket = new O_Ticket(); $O_Ticket->init_from_id($row['id']); if (!$O_Ticket->is_in_db()) { $this->on_msg('不存在'); } foreach ($row as $k => $v) { if ($k != $O_Ticket->get_pk_name()) { $O_Ticket->set($k, '=', $v); } } $content = Lib_Req::post('content'); $O_TicketTestReport = new O_TicketTestReport(); $O_TicketTestReport->acter_name = $this->acter->id; $O_TicketTestReport->status = $O_Ticket->test_status; $O_TicketTestReport->content = $content; $O_Ticket->test_report[] = $O_TicketTestReport; $O_Ticket->set('test_report'); $O_Ticket->flush(); $this->view->ticket = $O_Ticket; $this->ajax->add_innerhtml('#ticket_report', 'ticket_report'); $this->ajax->add_eval_js('FCKeditorAPI.GetInstance("ticket_test_report_content").SetData("");'); $this->on_ajax(); }