Exemplo n.º 1
0
 function index()
 {
     $class_transaccion = new transaccion();
     $data['transacciones'] = $class_transaccion->obtenerTransacciones();
     $data['titulo1'] = "Libreta: ";
     $data['titulo2'] = "Ingresos v/s Egresos, IVA, Becarios";
     $data['usuario'] = $_SESSION['usuario']->login;
     $this->load->view('SEC-libreta_banco', $data);
 }
Exemplo n.º 2
0
<?php

session_start();
require "../main_Lib.php";
session_autorefresh();
include_once '../class/class_mensualidad.php';
include_once '../class/class_alumno.php';
include_once '../class/class_transaccion.php';
$rut = $_GET['rut'];
$class_mensualidad = new mensualidad();
$class_alumno = new alumno();
$class_transaccion = new transaccion();
$transacciones = $class_transaccion->obtenerTransacciones($rut);
$alumno = $class_alumno->obtenerAlumno($rut);
if ($_SESSION['token'] != $token) {
    session_destroy();
    moveLocation("../ingreso.php", 0, 2);
}
if (isset($_POST['trans'])) {
    foreach ($_POST['trans'] as $trans_ID => $datos) {
        $datos_historial['numboleta'] = $datos['trans_num_boleta'];
        $datos_historial['tipo'] = $datos['tipo'];
        if ($datos_historial['numboleta'] > 0) {
            $class_transaccion->actualizarHistorial($datos_historial, array('FK_transaccion_trans_ID' => $trans_ID));
            $class_transaccion->actualizarTransacciones(array("trans_num_boleta" => $datos['trans_num_boleta'], 'trans_tipo_pago' => $datos['tipo']), array('trans_ID' => $trans_ID));
        }
    }
    moveLocation("SEC-historial.php", 0, $rut, "rut");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">