Example #1
0
 function repoauto2()
 {
     //ORDeR BY envia,recibe
     $this->load->library('encrypt');
     $this->load->library("XLSReporte");
     $mSQL = $this->input->post("mSQL");
     //$consulta="SELECT codigo,grupo,descrip,margen1,margen2,margen3,base1,base2,base3,base4 FROM sinv";
     $consulta = $this->encrypt->decode($mSQL);
     $xls = new xlsreporte($consulta);
     $xls->tcols();
     $xls->Table();
     $xls->Output();
 }
Example #2
0
 function repo64($mSQL = null)
 {
     if (empty($mSQL)) {
         $mSQL = $this->input->get_post('mSQL');
     } else {
         $mSQL = str_replace("-porce-", "%", $mSQL);
         $mSQL = urldecode($mSQL);
     }
     if ($mSQL === false) {
         return false;
     }
     $this->load->library('encrypt');
     $this->load->library('XLSReporte');
     $mSQL = base64_decode($mSQL);
     $consulta = $this->encrypt->decode($mSQL);
     $xls = new xlsreporte($consulta);
     $xls->tcols();
     $xls->Table();
     $xls->Output();
     return true;
 }