<?php
	include_once("core/basededatos.php");
	include_once("core/Usuario.php");
	include_once("core/Paciente.php");
	include_once("core/Semana.php");
	include_once("core/Historia.php");
	session_start();	
?>
<!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>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=ISO-8859-1" />
<link type="text/css" rel="stylesheet" media="all" href="../style.css"/>
<link rel="shortcut icon" type="image/x-icon" href="../favicon.ico">
<!-- include jQuery library -->
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/vanadium.js"></script>

<title>CECOM - Centro de Cirugía Oral y Maxilofacial - La Paz B.C.S.</title>
</head>
<body>
	<?
		$id = $_GET['id'];
		if (!$_SESSION['ObjetoUsuario']) { ?>
			 <script language="javascript">window.location="consultorio.php";</script>
		<?php
        } else {
			$usuario = $_SESSION['ObjetoUsuario'];
			$usuario->acceso($id);
		}
	?>
    <div align="center">
    	<div id="container">
        	<div id="cuerpo">
            <!--- Header --->
                <div id="arribapagina"></div>
                <div id="arriba">
                    <div id="fondo_izq"></div>
                    <div id="logo"><img alt="cecom" src="../img/logo_CECOM.jpg" width="400" height="150" /></div>
                    <div id="fondo_izq_sistema"><h2 align="center">Sistema Consultorio</h2>
                    	<div id="menu_sistema"><a class="item_menu" href="paciente.php?id=<?php echo $id; ?>">- Regresar</a> <a class="item_menu_exit" href="consultorio.php">- Salir</a></div>
                    </div>
                    
                </div>
                <div id="separacion_linea"></div>
                
            <!---Cuerpo--->           
            <div id="cuerpo_sistema">
            <h3>Agregar Nuevo Paciente</h3>
            <form action="nuevoHistoriaClinica.php?id=<?php echo $id; ?>" method="post">
           	  <table width="750" border="0">
            	  <tr>
            	    <td width="200">Nombre:</td>
            	    <td width="550" align="left"><input name="txt_nombre" type="text" size="70" maxlength="255" class=":required" /></td>
          	    </tr>
            	  <tr>
            	    <td>Apellido Paterno:</td>
            	    <td align="left"><input name="txt_apellidop" type="text" size="70" maxlength="255" class=":required" /></td>
          	    </tr>
            	  <tr>
            	    <td>Apellido Materno:</td>
            	    <td align="left"><input name="txt_apellidom" type="text" size="70" maxlength="255" /></td>
          	    </tr>
            	<tr>
            	    <td>Sexo:</td>
            	    <td align="left"><select name="txt_sexo">
            	      <option value="M">Masculino</option>
            	      <option value="F">Femenino</option>
            	    </select></td>
          	    </tr>
                <tr>
            	    <td>Fecha Nacimiento:</td>
            	    <td align="left"><select name="txt_dia">
            	      <option value="01" selected="selected">01</option>
            	      <option value="02">02</option>
            	      <option value="03">03</option>
            	      <option value="04">04</option>
            	      <option value="05">05</option>
            	      <option value="06">06</option>
            	      <option value="07">07</option>
            	      <option value="08">08</option>
            	      <option value="09">09</option>
            	      <option value="10">10</option>
            	      <option value="11">11</option>
            	      <option value="12">12</option>
            	      <option value="13">13</option>
            	      <option value="14">14</option>
            	      <option value="15">15</option>
            	      <option value="16">16</option>
            	      <option value="17">17</option>
            	      <option value="18">18</option>
            	      <option value="19">19</option>
            	      <option value="20">20</option>
            	      <option value="21">21</option>
            	      <option value="22">22</option>
            	      <option value="23">23</option>
            	      <option value="24">24</option>
            	      <option value="25">25</option>
            	      <option value="26">26</option>
            	      <option value="27">27</option>
            	      <option value="28">28</option>
            	      <option value="29">29</option>
            	      <option value="30">30</option>
            	      <option value="31">31</option>
           	      </select>
           	      <label>
           	        <select name="txt_mes" id="txt_mes">
           	          <option value="01" selected="selected">Enero</option>
           	          <option value="02">Febrero</option>
           	          <option value="03">Marzo</option>
           	          <option value="04">Abril</option>
           	          <option value="05">Mayo</option>
           	          <option value="06">Junio</option>
           	          <option value="07">Julio</option>
           	          <option value="08">Agosto</option>
           	          <option value="09">Septiembre</option>
           	          <option value="10">Octubre</option>
           	          <option value="11">Noviembre</option>
           	          <option value="12">Diciembre</option>
       	            </select>
           	        <input name="txt_ano" type="text" id="txt_ano" size="10" maxlength="4"  class=":length;4 :integer" />
           	      </label></td>
          	    </tr>
            	  <tr>
            	    <td>Dirección:</td>
            	    <td align="left"><input name="txt_direccion" type="text" size="70" /></td>
          	    </tr>
                <tr>
            	    <td>Estado Civil:</td>
            	    <td align="left"><input name="txt_estadocivil" type="text" size="40" maxlength="255" /></td>
          	    </tr>
            	  <tr>
            	    <td>Teléfono Casa:</td>
            	    <td align="left"><input name="txt_telefonocasa" type="text" size="40" maxlength="12"  class=":integer"/></td>
          	    </tr>
            	  <tr>
            	    <td>Teléfono Oficina:</td>
            	    <td align="left"><input name="txt_telefonooficina" type="text" size="40" maxlength="12" class=":integer"/></td>
          	    </tr>
                <tr>
            	    <td>Celular:</td>
            	    <td align="left"><input name="txt_celular" type="text" size="40" maxlength="12" class=":integer"  /></td>
          	    </tr>
                <tr>
            	    <td>Correo Electronico:</td>
            	    <td align="left"><input name="txt_correo" type="text" size="40" maxlength="255" class=":email"/></td>
          	    </tr>
            	  <tr>
            	    <td>Ocupación:</td>
            	    <td align="left"><input name="txt_ocupacion" type="text" size="40" maxlength="255" /></td>
          	    </tr>
            	  <tr>
            	    <td>Nombre de Responsable:</td>
            	    <td align="left"><input name="txt_nombreresponsable" type="text" size="40" maxlength="255" /></td>
          	    </tr>
                <tr>
            	    <td>Apellido Paterno de Responsable:</td>
            	    <td align="left"><input name="txt_apellidopresponsable" type="text" size="40" maxlength="255" /></td>
          	    </tr>
                <tr>
            	    <td>Apellido Materno de Responsable:</td>
            	    <td align="left"><input name="txt_apellidomresponsable" type="text" size="40" maxlength="255" /></td>
          	    </tr>
            	  <tr>
            	    <td>Paretesco con Responsable:</td>
            	    <td align="left"><input name="txt_parentescoresponsable" type="text" size="40" maxlength="255" /></td>
          	    </tr>
                <tr>
            	    <td></td>
            	    <td align="left"><input name="Enviar" type="submit" value="Siguiente" /></td>
          	    </tr>
          	  </table>
              </form>
            </div>    
            
            <!--Pie-->    
        	<div id="footer">
            <p>CECOM Centro de Cirugía Oral y Maxilofacial</p>
            </div>
       </div>
	</div>
</body>
</html>
