예제 #1
0
 function approve($id)
 {
     if ($_POST) {
         $executive = new Executive($id);
         $_POST['approve_id'] = $this->session->userdata('id');
         $executive->approve_date = date("Y-m-d H:i:s");
         $executive->from_array($_POST);
         $executive->save();
         echo approve_comment($executive);
     }
 }