function Multipagos() { session_cache_limiter('private_no_expire'); if (isset($_SESSION['user'])) { $data = new pegaso(); $pagina = $this->load_template('Pedidos'); $html = $this->load_page('app/views/pages/p.multipagos.php'); ob_start(); $efectivos = $data->verEfectivos(); $cheques = $data->verCheques(); $trans = $data->verTrans(); $creditos = $data->verCreditos(); if (count($efectivos) > 0 or count($cheques) > 0 or count($trans) > 0 or count($creditos) > 0) { include 'app/views/pages/p.multipagos.php'; $table = ob_get_clean(); $pagina = $this->replace_content('/\\#CONTENIDO\\#/ms', $table, $pagina); } else { $pagina = $this->replace_content('/\\CONTENIDO\\#/ms', $html . '<div class="alert-danger"><center><h2>Hubo un error al mostrar los datos</h2><center></div>', $pagina); } $this->view_page($pagina); } else { $e = "Favor de iniciar Sesión"; header('Location: index.php?action=login&e=' . urlencode($e)); exit; } }