<?php
 
session_start();
$com = "A";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
include("DF30000.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>

<body>
<?php
 
$ayuda = 'DP16000_AG.php';
include("DYAYUDA.php");
?>

<form name="frm1" id="frm1" method="post" action="">
  <table width="578"   align="center">
    <tr>
      <th colspan="4"><span class="Estilo2">AGREGAR DATOS MEDICOS  </span></th>
    </tr>
   
    <tr>
      <td width="81" style="#FFFFFF"><div align="left">Apellido Paterno:</div></td>
      <td width="204" style="#6699CC"><input name="ape_pat_med" type="text" id="ape_pat_med" size="20"></td>
      <td width="108">Apellido Materno:</td>
      <td style="#6699CC"><input name="ape_mat_med" type="text" id="ape_mat_med" size="20"></td>
    </tr>	 
    <tr>
      <td>Nombre:</td>
      <td style="#6699CC"><input name="nom_med" type="text" id="nom_med" size="20"></td>
      <td>Clave del Medico: </td>
      <td style="#6699CC"><label>
        <input name="cve_med" type="text" id="cve_med" size="20">
      </label></td>
    </tr>
    <tr>
      <td>Direccion:</td>
      <td style="#6699CC"><input name="direc" type="text" id="direc" size="20"></td>
      <td>Ciudad: </td>
      <td style="#6699CC"><label>
        <input name="ciudad" type="text" id="ciudad" size="20">
      </label></td>
    </tr>
    <tr>
      <td>Estado:</td>
      <td style="#6699CC"><input name="estado" type="text" id="estado" size="20"></td>
      <td>Rfc:</td>
      <td style="#6699CC"><input name="rfc" type="text" id="rfc" size="20"></td>
    </tr>
    <tr>
      <td>Especialidad:</td>
      <td style="#6699CC">
      <input name="esp_med" type="text" id="esp_med" size="20"></td>
      <td>Fecha de Alta: </td>
      <td style="#6699CC"><input name="fec_alt" type="text" id="fec_alt" size="20" maxlength="20"
			<?php

				if(isset($_post['fec_alt'])){ //este es el truco
					echo 'value="' . $_post['fec_alt'] .  '"';
				}
			?>onkeypress="return soloNumeros(event)"//solo fechas
		/>
      <input name="reset" id="bot" type="button" value=" ... " /><script type="text/javascript">
  Calendar.setup(
    {
      inputField  : "fec_alt",        // ID of the input field
      ifFormat    : "%d/%m/%Y",    // the date format
      button      : "bot"      // ID of the button
    }
  );
        </script></td>
    </tr>
    
    
    
    
    <tr>
      <td>Estatus:</td>
      <td><input name="status" type="text" id="status" size="20"></td>
      <td>Observaciones:</td>
      <td><textarea name="observ" cols="30" id="observ"></textarea></td>
    </tr>
    <tr>
      <td colspan="4"><div align="center" class="inputcodigo">
         
        <input type="button" name="Submit" value="Guardar" onClick="openpage('DG71100_AC.php','_self')"/>
        &nbsp;&nbsp;&nbsp;
		 
		<input type="button" name="Submit2" value="Regresar" onClick="openpage('DG71100_PR.php','_self')"/>
		
      </div></td>
    </tr>
  </table>
</form>
</body>
</html>
