if (!isset($_SESSION['sesion_id_usuario'])) { die("No tiene acceso a esta seccion"); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>NUEVO SEGURO</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../estilos/css_sistema.css" rel="stylesheet" type="text/css" /> <link href="../imagenes/logo.ico" type="image/x-icon" rel="shortcut icon"> </head> <?php if ($_REQUEST['id'] === '1') { $rs = $paciente->seguro_nuevo($_REQUEST['seguro'], '0'); if ($rs) { if (!isset($_REQUEST['valor'])) { echo "<script LANGUAGE='JavaScript'> window.opener.location.href = 'paciente_nuevo.php?seguro=" . $_SESSION['seguro_id'] . "&tipo=" . $_REQUEST['tipo'] . "&departamento=" . $_REQUEST['departamento'] . "&provincia=" . $_REQUEST['provincia'] . "&historia=" . $_REQUEST['historia'] . "&fecha=" . $_REQUEST['fecha'] . "&historia=" . $_REQUEST['historia'] . "&nombres=" . $_REQUEST['nombres'] . "&apellidos=" . $_REQUEST['apellidos'] . "&fecha2=" . $_REQUEST['fecha2'] . "&estadocivil=" . $_REQUEST['estadocivil'] . "&sexo=" . $_REQUEST['sexo'] . "&direccion=" . $_REQUEST['direccion'] . "&ocupacion=" . $_REQUEST['ocupacion'] . "&email=" . $_REQUEST['email'] . "&telefono=" . $_REQUEST['telefono'] . "&celular=" . $_REQUEST['celular'] . "';\r\nwindow.close(); </script>"; } else { echo "<script LANGUAGE='JavaScript'> window.opener.location.href = 'paciente_editar.php?seguro=" . $_SESSION['seguro_id'] . "';\r\nwindow.close(); </script>"; } } } ?> <body onload="centrar_pagina()"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr>