/**
  * Modifica la informacion de un serie/folio
  * @param unknown_type $id_serie_folio
  */
 public function editSerieFolio($id_serie_folio = '')
 {
     $id_serie_folio = $id_serie_folio != '' ? $id_serie_folio : $this->input->get('id');
     $path_img = '';
     //valida la imagen
     $upload_res = UploadFiles::uploadImgSerieFolio();
     if (is_array($upload_res)) {
         if ($upload_res[0] == false) {
             return array(false, $upload_res[1]);
         }
         $path_img = $upload_res[1]['file_name'];
         //APPPATH.'images/series_folios/'.$upload_res[1]['file_name'];
         /*$old_img = $this->db->select('imagen')->from('facturas_series_folios')->where('id_serie_folio',$id_serie_folio)->get()->row()->imagen;
         
         			UploadFiles::deleteFile($old_img);*/
     }
     $data = array('id_empresa' => $this->input->post('fid_empresa'), 'serie' => strtoupper($this->input->post('fserie')), 'no_aprobacion' => $this->input->post('fno_aprobacion'), 'folio_inicio' => $this->input->post('ffolio_inicio'), 'folio_fin' => $this->input->post('ffolio_fin'), 'ano_aprobacion' => $this->input->post('fano_aprobacion'));
     if ($path_img != '') {
         $data['imagen'] = $path_img;
     }
     if ($this->input->post('fleyenda') != '') {
         $data['leyenda'] = $this->input->post('fleyenda');
     }
     if ($this->input->post('fleyenda1') != '') {
         $data['leyenda1'] = $this->input->post('fleyenda1');
     }
     if ($this->input->post('fleyenda2') != '') {
         $data['leyenda2'] = $this->input->post('fleyenda2');
     }
     $this->db->update('facturas_series_folios', $data, array('id_serie_folio' => $id_serie_folio));
     return array(true);
 }