$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"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href="../jquery.tablesorter/css/jq.css" type="text/css" media="print, projection, screen" /> <link rel="stylesheet" href="../jquery.tablesorter/themes/blue/style.css" type="text/css" id="" media="print, projection, screen" /> <link rel="stylesheet" href="../css/main.css" type="text/css" id="" media="print, projection, screen" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Historial</title> <link href="../css/dock_menu.css" rel="stylesheet" type="text/css" />