GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 01275822 authored by Yonathan suarez's avatar Yonathan suarez
Browse files

base

parents

Too many changes to show.

To preserve performance only 3000 of 3000+ files are displayed.
<?xml version="1.0" encoding="utf-8" ?>
<info>
<infoitem key="MMGuideColor" value="#00FF00" />
<infoitem key="MMGuideVisible" value="true" />
<infoitem key="MMGuideLocked" value="false" />
<infoitem key="MMSnapToGuide" value="false" />
<infoitem key="MMGuidesSnapToElements" value="true" />
<infoitem key="MMDistanceColor" value="#0000FF" />
<infoitem key="MMGuideCount" value="0" />
</info>
// JavaScript Document
function objetoAjax(){
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
function formulario(){
divContenido=document.getElementById('mensaje')
var xn1=document.registro.cedula.value;
var xn2=document.registro.nombre.value;
var xn3=document.registro.user.value;
var xn4=document.registro.pw.value;
var xn5=document.registro.pw2.value;
var xn6=document.registro.email.value;
var url;
url="registrar_c.php?n1="+xn1+"&n2="+xn2+"&n3="+xn3+"&n4="+xn4+"&n5="+xn5+"&n6="+xn6;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
function eliminar(){
divContenido=document.getElementById('mensaje')
var xn1=document.eliminarusu.nombre.value;
var url;
url="eliminar.php?n1="+xn1;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
function ingresarpro(){
divContenido=document.getElementById('mensaje')
var xn1=document.formpro.codigo.value;
var xn2=document.formpro.despro.value;
var xn3=document.formpro.cantidad.value;
var xn4=document.formpro.precio.value;
var url;
url="reg_pro.php?n1="+xn1+"&n2="+xn2+"&n3="+xn3+"&n4="+xn4;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
function actualizarusu(){
divContenido=document.getElementById('mensaje')
var xn1=document.formactusu.viejo.value;
var xn2=document.formactusu.nuevo.value;
var url;
url="modificar.php?n1="+xn1+"&n2="+xn2;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
function mostrar(){
divContenido=document.getElementById('mensaje')
var xn1=document.buscarr.codigo.value;
var url;
url="compra.php?n1="+xn1;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
function principal(){
divContenido=document.getElementById('mensaje')
var xn1=document.prin.user.value;
var xn2=document.prin.pw.value;
var url;
url="verificar.php?n1="+xn1+"&n2="+xn2;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
var res=trim(ajax.responseText);
if(res=="si")
{
document.location.href="index.php";
}
if(res=="si1")
{
document.location.href="index.php";
}
else
{
divContenido.innerHTML =res;
}
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
//eliminar campos vacios
function trim (myString)
{
return myString.replace(/^\s+/g,'').replace(/\s+$/g,'')
}
function mostrar2(){
divContenido=document.getElementById('mensaje')
var xn1=document.buscarr.codigo.value;
var url;
url="compra2.php?n1="+xn1;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
function formularioo(){
divContenido=document.getElementById('mensaje')
var xn1=document.registroo.cedula.value;
var xn2=document.registroo.nombre.value;
var xn3=document.registroo.user.value;
var xn4=document.registroo.pw.value;
var xn5=document.registroo.pw2.value;
var xn6=document.registroo.email.value;
var url;
url="registrar_admin.php?n1="+xn1+"&n2="+xn2+"&n3="+xn3+"&n4="+xn4+"&n5="+xn5+"&n6="+xn6;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
function cambiarclaveadmin(){
divContenido=document.getElementById('mensaje')
var xn1=document.formclaveadmin.claveant.value;
var xn2=document.formclaveadmin.clavenue.value;
var xn3=document.formclaveadmin.claveconfir.value;
var url;
url="clave_nueva_admin.php?n1="+xn1+"&n2="+xn2+"&n3="+xn3;
ajax=objetoAjax();
ajax.open("GET",url);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
if (ajax.status==200)
{
divContenido.innerHTML = ajax.responseText
}
else
{
alert("error =" +ajax.statusText);}
}
}
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null)
}
\ No newline at end of file
<?php
session_start();
include("conexion.php");
session_destroy();
header("location: principal.php");
?>
<?
session_start();
if(!isset($_SESSION['admin']))header("location: ../principal.php");
require '../conectar.php';
date_default_timezone_set('America/caracas');
$hora = date('H:i:s a');
$fecha = date('d-m-Y ');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>historia clinica</title>
<meta charset="utf-8">
<link rel="stylesheet" href="reset.css" type="text/css" media="all">
<link rel="stylesheet" href="../css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="../css/style.css" type="text/css" media="all">
<script type="text/javascript" src="../js/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="../js/cufon-yui.js"></script>
<script type="text/javascript" src="../js/cufon-replace.js"></script>
<script type="text/javascript" src="../js/Myriad_Pro_300.font.js"></script>
<script type="text/javascript" src="../js/Myriad_Pro_400.font.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script>
<script type="text/javascript" src="js/html5.js"></script>
<![endif]-->
</head>
<body id="page5">
<div class="body2">
<div class="main"><div class="ic"> </div>
<!--header -->
<header>
<div class="wrapper">
<nav>
<ul id="menu">
<li><center><figure class="left marg_right1"> </figure></center>
<div class="text1"></span></div>
</li>
<li ><a href="../index.php">Inicio</a></li>
<li ><a href="../historiap/pacienteslista.php">Historias Pediatricas </a></li>
<li id="menu_active"><a href="#">Pabellon</a></li>
<li ><a href="../inventario/indexinventario.php">Inventario</a></li>
<li><a href="../sistema/sistemamenu.php">Sistema</a></li>
<li class="bg_none"><a href="../cerrar.php">Salir</a></li>
</ul>
</nav>
<?//?>
</div>
</header>
</div>
</div>
<!--header end-->
<!--content -->
<?php
//guardaR evoluciones ACTUALIZADAS
//guardaR evoluciones ACTUALIZADAS
if($btn=="Actualizar"){
$cod=$_POST["txtcod"];
$fecha=$_POST["f_ingreso"];
$evolucion=$_POST["evolucion"];
$serv=$_POST["serv"];
if($cod=="")
{
echo "
<script> alert('campos vacios')</script>
";
echo "<br>";
}
else
{
$sql="INSERT INTO `clinica`.`evolucionc` (`cod_alu` ,`fecha` ,`servicio` ,`evolucion`)VALUES ('$cod', '$fecha', '$serv','$evolucion')";
$cs=mysql_query($sql,$cn);
}}
//GUARDAR EVOLUCIONES ACTUALIZADAS
if($btn=="Actualizar"){
$cod=$_POST["txtcod"];
$serv=strtoupper($_POST["serv"]);
$nom = strtoupper($_POST["txtnom"]); //guardar en mayusculas
$ape=strtoupper($_POST["txtape"]);
$sex=strtoupper($_POST["sex"]);
$pedad=strtoupper($_POST["p_edad"]);
$edoc=strtoupper($_POST["e_civil"]);
$ocu=strtoupper($_POST["ocupacion"]);
$p_lugarn=strtoupper($_POST["l_nacimiento"]);
$b1=strtoupper($_POST["$b"]);
$nacio=strtoupper($_POST["nacio"]);
$direc=strtoupper($_POST["direc_actual"]);
$avisara=strtoupper($_POST["avisara"]);
$parentesco=strtoupper($_POST["parentesco"]);
$direc2=strtoupper($_POST["direc2"]);
$f_ingreso=strtoupper($_POST["f_ingreso"]);
$f_admi_ante=strtoupper($_POST["f_admi_ante"]);
$m_consul=strtoupper($_POST["m_consul"]);
$e_actual=strtoupper($_POST["e_actual"]);
$diacno_p=strtoupper($_POST["diacno_p"]);
$diac_p_f=strtoupper($_POST["diac_p_f"]);
$d_anatomo=strtoupper($_POST["d_anatomo"]);
$d_asoc=strtoupper($_POST["d_asoc"]);
$inter_p=strtoupper($_POST["inter_p"]);
$inter_s=strtoupper($_POST["inter_s"]);
$hora=strtoupper($_POST["hora"]);
$agre_c=strtoupper($_POST["agre_c"]);
if($cod=="" or $nom=="" )
{
echo "
<script> alert('campos vacios')</script>
";
echo "<br>";
}
else
{
$sql="update pabellonp set servicio='$serv',p_ape='$ape',p_nom='$nom',p_sex='$sex',e_civil='$edoc'
,ocupacion='$ocu',l_nacimiento='$p_lugarn',f_nacimiento='$b',nacio='$nacio',direc_actual='$direc',f_ingreso='$f_ingreso',f_admi_ante='$f_admi_ante',m_consul='$m_consul',e_actual='$e_actual'
,diacno_p='$diacno_p',agre_c='$agre_c',diac_p_f='$diac_p_f',d_anatomo='$d_anatomo',d_asoc='$d_asoc',inter_p='$inter_p',inter_s='$inter_s',p_edad='$p_edad',avisara='$avisara',parentesco='$parentesco',direc2='$direc2',hora='$hora' where cod_alu='$cod'";
$cs=mysql_query($sql,$cn);
echo "<script> alert('se actualiso correctamente')</script>";
}
}
if($btn=="Eliminar Paciente Actual"){
$cod=$_POST["txtcod"];
$sql="delete from evolucionc where cod_alu='$cod'";
$cs=mysql_query($sql,$cn);
}
if($btn=="Eliminar Paciente Actual"){
$cod=$_POST["txtcod"];
$sql="delete from pabellonp where cod_alu='$cod'";
$cs=mysql_query($sql,$cn);
echo "<script> alert('Se Elimino Correctamente')</script>";
}
?>
<?php
include_once('../inventario/conexion.php');
$link=conectarse() ;
if(isset($_POST["submit"])){
$query = "UPDATE pabellonp SET p_nom='".$_POST["p_nom"]."' , p_ape='".$_POST["p_ape"]."' WHERE cod_alu='".$_POST["cod_alu"]."'";
$result=mysql_query($query,$link) or die("Error: ".mysql_error());
echo"</br>";
echo"</br>";
echo"<center>";
echo "Se ha modificado el producto con exito ".$x1;
echo"</center>";
}else{
$x1=$_GET['codigo'];
$query="SELECT * FROM pabellonp WHERE cod_alu='".$x1."'";
$result=mysql_query($query,$link) or die("Error: ".mysql_error());
if(mysql_num_rows($result) > 0){
while($Rs=mysql_fetch_array($result)) {
?>
<center>
<br>
<table width="90%" border="0">
<tr style="background: #CCCCCC">
<form name="fe" action="" method="post" >
<TD width="100%" >Codigo de Paciente:<input name="txtcod" type=text value='<? echo $Rs['cod_alu'] ?>'>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SERVICIO
<input name='serv' placeholder=".........................................................................................................." type='text' maxlength='55' required value="<?php echo $Rs['servicio']; ?>">
</td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td width="50%"> APELLIDO
<input name='txtape' type='text' maxlength='80' required size='74' value="<?php echo $Rs['p_ape']; ?>"></td>
<td width="50%"> NOMBRE
<input name='txtnom' type='text' maxlength='98' required size='76' value="<?php echo $Rs['p_nom']; ?>"></td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td width="10%">
SEXO <?php echo $Rs['p_sex']; ?>
</td>
<td width="40%"> ESTADO CIVIL <input name='e_civil' type='text' size='53' maxlength='98' value="<?php echo $Rs['e_civil']; ?>"></td>
<td width="50%"> OCUPACION <input name='ocupacion' type='text' size='72' maxlength='98' value="<?php echo $Rs['ocupacion']; ?>"></td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td>LUGAR DE NACIMIENTO<input name='l_nacimiento' type='text' size='40' maxlength='98' value="<?php echo $Rs['l_nacimiento']; ?>"></td>
<td> FECHA DE NACIMIENTO <input name='b' type='text' maxlength='98' size='76' value="<?php echo $Rs['f_nacimiento']; ?>">
</td>
<td> EDAD:
<input name='p_edad' type='text' size='40' maxlength='98' value="<?php echo $Rs['p_edad']; ?>"> </td>
<td> NACIONALIDAD:<input name='nacio' type='text' size='40' maxlength='98' value="<?php echo $Rs['nacio']; ?>">
</td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td width="100%">DIRECCION ACTUAL COMPLETA
<input name='direc_actual' type='text' size='142' maxlength='98' value="<?php echo $Rs['direc_actual']; ?>"></td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td width="50%">AVISAR EN CASO DE EMERGENCIAS A: <input name='avisara' type='text' size='45' maxlength='98' value="<?php echo $Rs['avisara']; ?>"></td>
<td width="50%">PARENTESCO <input name='parentesco' type='text' size='72' maxlength='98' value="<?php echo $Rs['parentesco']; ?>"></td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td width="100%" > DIRECCION <input name='direc2' type='text' size='162' maxlength='98' value="<?php echo $Rs['direc2']; ?>"></td>
</tr>
</table>
<table width="90%" border="0">
<tr >
<td width="30%">FECHA DE INGRESO <input name='f_ingreso' type='text' size='' maxlength='98' required value="<?php echo $Rs['f_ingreso']; ?>"></td>
<td width="30%">HORA<input name='hora' type='hora' size='' maxlength='98' value="<?php echo $Rs['hora']; ?>"> </td>
<td width="30%">FECHA DE ADMISION ANTERIOR <input name='f_admi_ante' type='text' size='' maxlength='98' value="<?php echo $Rs['f_admi_ante']; ?>"></td>
</tr>
</table>
<table width="90%" border="0">
<tr style="background: #CCCCCC">
<td>&nbsp;&nbsp;&nbsp;MOTIVO DE LA CONSULTA</td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td><input name='m_consul' type='text' size='180' maxlength='98' value="<?php echo $Rs['m_consul']; ?>"></td>
</tr>
</table>
<table width="90%" border="0">
<tr style="background: #CCCCCC">
<td>&nbsp;&nbsp;&nbsp;ENFERMEDAD ACTUAL &nbsp;&nbsp;&nbsp;&nbsp;(hacer relato conciso y completo de las dolencias. indicando fecha de comienzo duracion y tratamento de cada una de ella)</td>
</tr>
</table>
<table width="90%" border="0">
<tr>
<td width="100%" ><textarea name="e_actual" class="element textarea medium" value="<?php echo $var14?>" > <?php echo $Rs['e_actual']; ?></textarea></td>
</tr>
</table >
<table width="90%" border="0">
<tr style="background: #CCCCCC">