<?php require_once './initSmarty.php'; require_once './datos.php'; try { session_start(); if (isset($_SESSION['usuario'])) { $smarty->assign('nombreUsuario', get_nombre_usuario()); $smarty->assign('admin', es_admin()); $smarty->assign('movimientos', get_movimientos_cuenta(0, 8, 0)); $smarty->assign('id', $_GET['cuenta']); agregar_ingreso_seccion(date('Y-m-d'), get_nombre_usuario(), 'Detalle de cuenta', 'Cuenta ' . $_GET['cuenta']); $smarty->display('detalleCuenta.tpl.html'); } else { header('location: ./index.php'); } } catch (Exception $ex) { echo $ex->getMessage(); }
session_start(); if (isset($_SESSION['usuario'])) { $smarty->assign('nombreUsuario', get_nombre_usuario()); $smarty->assign('admin', es_admin()); $smarty->assign('cuentas', get_cuentas()); if (isset($_GET['ctaOrigen'])) { $smarty->assign('existeCtaOrigen', true); } if (isset($_GET['ctaDestino'])) { $smarty->assign('existeCtaDestino', true); } if (isset($_GET['monedasDistintas'])) { $smarty->assign('monedasDistintas', true); } if (isset($_GET['montoNegativo'])) { $smarty->assign('montoNegativo', true); } if (isset($_GET['saldoInsuficiente'])) { $smarty->assign('saldoInsuficiente', true); } if (isset($_GET['cuentasIguales'])) { $smarty->assign('cuentasIguales', true); } agregar_ingreso_seccion(date('Y-m-d'), get_nombre_usuario(), 'Realizar transferencia', 'Detalle'); $smarty->display('realizarTransferencia.tpl.html'); } else { header('location: ./index.php'); } } catch (Exception $ex) { echo $ex->getMessage(); }
<?php require_once './initSmarty.php'; require_once './datos.php'; try { session_start(); if (isset($_SESSION['usuario'])) { if (es_admin()) { $smarty->assign('nombreUsuario', get_nombre_usuario()); $smarty->assign('admin', es_admin()); agregar_ingreso_seccion(date('Y-m-d'), get_nombre_usuario(), 'EstadÃsticas', 'Detalle'); $smarty->display('estadisticas.tpl.html'); } else { header('location: ./main.php'); } } else { header('location: ./index.php'); } } catch (Exception $ex) { echo $ex->getMessage(); }
<?php require_once './initSmarty.php'; require_once './datos.php'; try { session_start(); if (isset($_SESSION['usuario'])) { $smarty->assign('nombreUsuario', get_nombre_usuario()); $smarty->assign('admin', es_admin()); $smarty->assign('cuentas', get_cuentas()); $movimientos = array(); foreach (get_cuentas() as $cuenta) { $movimientos[$cuenta[cuenta_codigo]] = get_movimientos_cuenta($cuenta[cuenta_codigo], 5); } $smarty->assign('movimientos', $movimientos); agregar_ingreso_seccion(date('Y-m-d'), get_nombre_usuario(), 'Consulta de saldo', 'Detalle'); $smarty->display('consultarSaldo.tpl.html'); } else { header('location: ./index.php'); } } catch (Exception $ex) { echo $ex->getMessage(); }
if (isset($_SESSION['usuario'])) { $smarty->assign('nombreUsuario', get_nombre_usuario()); $smarty->assign('admin', es_admin()); $smarty->assign('cuentas', get_cuentas()); $smarty->assign('monedas', get_monedas()); if (isset($_GET['ctaOrigen'])) { $smarty->assign('existeCtaOrigen', true); } if (isset($_GET['ctaDestino'])) { $smarty->assign('existeCtaDestino', true); } if (isset($_GET['cuentaUYU'])) { $smarty->assign('cuentaUYU', true); } if (isset($_GET['montoNegativo'])) { $smarty->assign('montoNegativo', true); } if (isset($_GET['saldoInsuficiente'])) { $smarty->assign('saldoInsuficiente', true); } if (isset($_GET['cuentasIguales'])) { $smarty->assign('cuentasIguales', true); } agregar_ingreso_seccion(date('Y-m-d'), get_nombre_usuario(), 'Realizar cambio', 'Detalle'); $smarty->display('realizarCambio.tpl.html'); } else { header('location: ./index.php'); } } catch (Exception $ex) { echo $ex->getMessage(); }
<?php require_once './initSmarty.php'; require_once './datos.php'; try { session_start(); if (isset($_SESSION['usuario'])) { if (es_admin()) { $smarty->assign('nombreUsuario', get_nombre_usuario()); $smarty->assign('admin', es_admin()); agregar_ingreso_seccion(date('Y-m-d'), get_nombre_usuario(), 'Log de auditorÃa', 'detalle'); $smarty->display('logDeAuditoria.tpl.html'); } else { header('location: ./main.php'); } } else { header('location: ./index.php'); } } catch (Exception $ex) { echo $ex->getMessage(); }