<div id="page-content-wrapper">
<!-- Keep all page content within the page-content inset div! -->
  <div class="page-content inset">
<div class="row">
<div class="col-md-8">
<div class="col-xs-12 "> 
<head>
   <!-- Direcciona al javascript para hacer las validaciones correspondientes -->
   <script type="text/javascript" src="<?php echo base_url()?>assets/dist/js/expediente.js"></script>
   <link rel="stylesheet" href="<?php echo base_url().'assets/dist/css/validacion.css'?>">

  </head>
  <body>
    
  </body>

<center><h1>Modificar Expediente</h1></center>

<Center>
 <ul class="breadcrumb">
  <li><a href="<?php echo base_url();?>expediente/administrador/expedienteA/editarE/<?=$IdClientes?>"> Histórico General</a><span class="divider"></span></li>
  <li><a href="<?php echo base_url();?>expediente/administrador/expedienteA/Corporal/<?=$Idexpediente?>">Histórico Corporal</a> <span class="divider"></span></li>
  <li><a href="<?php echo base_url();?>expediente/administrador/expedienteA/EELigth/<?=$Idexpediente?>">Histórico E-Ligth</a> <span class="divider"></span></li>
  <li><a href="<?php echo base_url();?>expediente/administrador/ExpedienteA/EFacial/<?=$Idexpediente?>"> Histórico Facial</a><span class="divider"></span></li>
  <li><a href="<?php echo base_url();?>expediente/administrador/ExpedienteA/EPestanas/<?=$Idexpediente?>"> Histórico E.Pestañas</a><span class="divider"></span></li>
  <li><a href="<?php echo base_url();?>expediente/administrador/expedienteA/Relajante/<?=$Idexpediente?>"> Histórico Relajante</a><span class="divider"></span></li>

</ul>
</Center></br>
<body onload="mueveReloj()"> 
<form action="<?php echo base_url();?>expediente/administrador/expedienteA/editarenlaceE/<?=$IdClientes?>" method="POST" name="form_reloj">
<table class="table table-striped">

    <td colspan="2"><strong>Folio</strong></td>
     
   <tr class="row2">
    <td colspan="2">
   
   <?php  

 $IdClientes= $this->uri->segment(5);


 $this->db->where('IdClientes', $IdClientes);
      $query=$this->db->get('clientes');



  ?>

<input type="text" class="form-control" id="txt_idcliente" name="Nombre"  value="<?=$IdClientes?>" maxlength='45' placeholder="Id Cliente" required readonly="readonly" >
  
  
  </tr>

<tr class="row1"><td><strong>Nombre:</strong></td>   <td><strong>Fecha Nacimiento: </strong></td></tr>
  <tr class="row2">
   
    <td>
    <input type="text" class="form-control" id="NombreCliente" name="NombreCliente" value="<?=$NombreCliente?>"   maxlength='11' placeholder="Id Cliente" required readonly="readonly" >
    
    </td>
    <td>
    <input type="text" class="form-control" id="FechaNacimientoCliente" name="FechaNacimientoCliente" value="<?=$FechaNacimientoCliente?>"   maxlength='11' placeholder="Id Cliente" required readonly="readonly">
    
    </td>
  </tr>

  <tr class="row1"><td><strong>Sexo:</strong></td>   <td><strong>Edad: </strong></td></tr>
  <tr class="row2">
   
    <td>
    <input type="text" class="form-control" id="SexoCliente" name="SexoCliente" value="<?=$SexoCliente?>"   maxlength='11' placeholder="Id Cliente" required readonly="readonly">
    
    </td>
    <td>
    <input type="text" class="form-control" id="EdadCliente" name="EdadCliente" value="<?=$EdadCliente?>"   maxlength='11' placeholder="Id Cliente" required readonly="readonly">
    
    </td>
  </tr>

        
    </td>
  </tr>
 <tr class="row1"><td><strong>¿Está bajo supervisión médica?</strong></td>   <td><strong>Tratamiento Médico: </strong></td></tr>
  <tr class="row2">

 <td>
      Si <input type="radio" name="SupervisionMedica" value="1"  <?php if ($SupervisionMedica=='1') echo "checked=checked>" ?> </input>

      No <input type="radio" name="SupervisionMedica" value="0" <?php if ($SupervisionMedica=='0') echo "checked=checked>"?>  </input>
    </td>
    <td>
      Si <input type="radio" name="TratamientoMedico" value="1" onclick=" activar(true)"<?php if ($TratamientoMedico=='1') echo "  checked=checked>" ?> </input>
      No <input type="radio" name="TratamientoMedico" value="0" onclick=" activar(false)"<?php if ($TratamientoMedico=='0') echo "  checked=checked>"?> </input> <br> 
      ¿Cuáles? <input type="text" class="form-control" id="CualTratamientoMedico" name="CualTratamientoMedico" maxlength='45' value="<?=$CualTratamientoMedico?>"  >
    </td>
  </tr>

<tr class="row1"><td><strong>Tratamiento Quirúrgico:</strong></td><td><strong>¿Ha padecido alergías?</strong></td></tr>
  <tr class="row2">
    <td>
      Si <input type="radio" name="TratamientoQuirurgico" value="1" onclick=" activarTQui(true)"<?php if ($TratamientoQuirurgico=='1') echo "  checked=checked>"?></input>   
      No <input type="radio" name="TratamientoQuirurgico" value="0" onclick=" activarTQui(false)"<?php if ($TratamientoQuirurgico=='0') echo "  checked=checked>"?> </input>  <br> 
      ¿Cuál? <input type="text" class="form-control" id="CualTratamientoQuirurgico"   name="CualTratamientoQuirurgico" maxlength='45' value="<?=$CualTratamientoQuirurgico?>" >
    </td>
    <td>
      Si <input type="radio" name="TieneAlergias" value="1" onclick=" activarAler(true)" <?php if ($TieneAlergias=='1') echo "  checked=checked>"?> </input> 
      No <input type="radio" name="TieneAlergias" value="0" onclick=" activarAler(false)" <?php if ($TieneAlergias=='0') echo "  checked=checked>"?> </input> <br> 
      ¿Cuáles?<input type="text" class="form-control" id="CualesAlergias" name="CualesAlergias" maxlength='45' value="<?=$CualesAlergias?>" >
    </td>
  </tr>

<tr class="row1">
    <td colspan="2"><strong>Marque las enfermedades/afecciones que padece o ha padecido:</strong></td>
   </tr>
   <tr class="row2">
    <td colspan="2">
      

    <label class="checkbox-inline">Cuperosis</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Cuperosis" class="form-check-input" value="1"<?php if ($Cuperosis=='1') echo "checked=checked>"?></input> 
    <label class="checkbox-inline">Implantes </label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Implantes" class="form-check-input" value="1" <?php if ($Implantes=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Claustrofobia </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Claustrofobia" class="form-check-input" value="1" <?php if ($Claustrofobia=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Diabetes </label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Diabetes" class="form-check-input" value="1" <?php if ($Diabetes=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Hepatitis</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Hepatitis" class="form-check-input" value="1" <?php if ($Hepatitis=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Cardiopatías </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Cardiopatias" class="form-check-input" value="1" <?php if ($Cardiopatias=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Cicatrización queloide </label>&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Cicatrizacion" class="form-check-input" value="1" <?php if ($Cicatrizacion=='1') echo "checked=checked>"?></input></br>
     <label class="checkbox-inline">Rosácea </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Rosacia" class="form-check-input" value="1" <?php if ($Rosacia=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Vitiligo</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Vitiligo" class="form-check-input" value="1" <?php if ($Vitiligo=='1') echo "checked=checked>"?> </input>
     <label class="checkbox-inline">Hipotensión</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="checkbox" name="THipotension" class="form-check-input" value="1" <?php if ($Migraña=='1') echo "checked=checked>"?> </input>
      <label class="checkbox-inline">Migraña</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Migraña" class="form-check-input" value="1"<?php if ($Migraña=='1') echo "checked=checked>"?></input>
         <label class="checkbox-inline">Miomas  </label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Miomas" class="form-check-input" value="1" <?php if ($Miomas=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Hiportiroidismo</label>
       <input type="checkbox" name="Hiportiroidismo" class="form-check-input" value="1" <?php if ($Hiportiroidismo=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Retencion de liquidos </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="RetencionLiquidos" class="form-check-input" value="1" <?php if ($RetencionLiquidos=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Psoriasis</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Psoriasis" class="form-check-input" value="1" <?php if ($Psoriasis=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Herpes </label>  &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Herpes" class="form-check-input" value="1" <?php if ($Herpes=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Hipertensión</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Hipertension" class="form-check-input" value="1" <?php if ($Hipertension=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Quistes </label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Quistes" class="form-check-input" value="1" <?php if ($Quistes=='1') echo "checked=checked>"?> </input>
     <label class="checkbox-inline">Hernias </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Hernias" class="form-check-input" value="1"<?php if ($Hernias=='1') echo "checked=checked>"?></input> 
     <label class="checkbox-inline">Hipertiroidismo </label>&nbsp;
     <input type="checkbox" name="Hipertiroidismo" class="form-check-input" value="1" <?php if ($Hipertiroidismo=='1') echo "checked=checked>"?></input> 
     <label class="checkbox-inline">Insuficiencia Renal </label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="InsuficienciaRenal" class="form-check-input" value="1" <?php if ($InsuficienciaRenal=='1') echo "checked=checked>"?></input></br>
     <label class="checkbox-inline">Prótesis </label>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Protesis" class="form-check-input" value="1"<?php if ($Protesis=='1') echo "checked=checked>"?> </input>
      <label class="checkbox-inline">Dermatitis </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="checkbox" name="Dermatitis" class="form-check-input" value="1" <?php if ($Dermatitis=='1') echo "checked=checked>"?> </input>
       <label class="checkbox-inline">Marcapasos  </label> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Marcapasos" class="form-check-input" value="1" <?php if ($Marcapasos=='1') echo "checked=checked>"?> </input>
     <label class="checkbox-inline">Cáncer </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Cancer" class="form-check-input" value="1" <?php if ($Cancer=='1') echo "checked=checked>"?></input>
      <label class="checkbox-inline">Artritis</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Artritis" class="form-check-input" value="1" <?php if ($Artritis=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Colesterol Alto </label>  &nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="ColesterolAlto" class="form-check-input" value="1" <?php if ($ColesterolAlto=='1') echo "checked=checked>"?></input>
        <label class="checkbox-inline">Trigliseridos Altos </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox"  name="TrigliseridosAltos" class="form-check-input" value="1" <?php if ($TrigliseridosAltos=='1') echo "checked=checked>"?></input>   
    <label class="checkbox-inline">Alergias </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Alergias" class="form-check-input" value="1" <?php if ($Alergias=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Desajustes Óseos</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="DesajustesOseos" class="form-check-input" value="1" <?php if ($DesajustesOseos=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Acantosis nigricans</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Acantosis"  class="form-check-input" value="1" <?php if ($Acantosis=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Cirugías </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Cirugias" class="form-check-input" value="1" <?php if ($Cirugias=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Epilepsia </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Epilepsia" class="form-check-input" value="1" <?php if ($Epilepsia=='1') echo "checked=checked>"?></input>
     <label class="checkbox-inline">Desajustes Hormonales </label>
     <input type="checkbox" name="ProblemasAuditivos" class="form-check-input" value="1" <?php if ($ProblemasAuditivos=='1') echo "checked=checked>"?></input>

   <label class="checkbox-inline">Placas o metales en el cuerpo </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="checkbox" name="Placas" class="form-check-input" value="1" <?php if ($Placas=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Insuficiencia Hepática</label>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="InsuficienciaHepatica" class="form-check-input" value="1" <?php if ($InsuficienciaHepatica=='1') echo "checked=checked>"?></input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <label class="checkbox-inline">Problemas circulatorios</label>  &nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="ProblemasCirculatorios" class="form-check-input" value="1" <?php if ($ProblemasCirculatorios=='1') echo "checked=checked>"?></input>
      <label class="checkbox-inline">Problemas Auditivos </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="ProblemasAuditivos" class="form-check-input" value="1" <?php if ($ProblemasAuditivos=='1') echo "checked=checked>"?></input>
 </br>
 <label class="checkbox-inline">Otras</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <input type="checkbox" name="Otras" class="form-check-input" value="1" required="" <?php if ($Otras=='1') echo "checked=checked>"?></input></br>

        
   </label><input type="text" class="form-control" " name="CualesOtras" value="<?=$CualesOtras?>"  maxlength='45'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</br>
      Si marcó alguna de las enfermedades/afecciones anteriores favor de describir la situación actual:
      <textarea class="form-control" rows="6" id="name1" name="ComentariosE" > <?php echo $ComentariosE;?> </textarea>
    </td></tr>


<tr class="row1">
  <td colspan="2"><strong>Marque los medicamentos que ha ingerido en los ultimos 6 meses:</strong></td>
  </tr>
  <tr class="row2">
  <td colspan="2">

<label class="checkbox-inline">Antiacnéticos</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <input type="checkbox" id="Antiacneticos" name="Antiacneticos" value="1" <?php if ($Antiacneticos=='1') echo "checked=checked>"?></input>
  <label class="checkbox-inline">Corticoides</label> &nbsp;&nbsp;&nbsp;&nbsp;
  <input type="checkbox" id="Corticoides" name="Corticoides" value="1" <?php if ($Corticoides=='1') echo "checked=checked>"?> </input> 
  <label class="checkbox-inline">Antihistamínicos </label> &nbsp;&nbsp;&nbsp;&nbsp;
  <input type="checkbox" name="Antihismaticos" value="1" <?php if ($Antihismaticos=='1') echo "checked=checked>" ?>  </input>
  <label class="checkbox-inline">Antiarrítmicos </label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Antirritmicos" value="1" <?php if ($Antirritmicos=='1') echo "checked=checked>" ?></input>
  <label class="checkbox-inline">Naturistas</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <input type="checkbox"  name="Naturistas" value="1" <?php if ($Naturistas=='1') echo "checked=checked>"?>  </input>
    <label class="checkbox-inline">Medicamentos orales para deabetes </label>
   <input type="checkbox" name="MDiabetes" value="1" <?php if ($MDiabetes=='1') echo "checked=checked>" ?></input> </br> 
  <label class="checkbox-inline">Antidepresivos </label>&nbsp;&nbsp;&nbsp;&nbsp; 
 <input type="checkbox" name="Antidepresivos" value="1" <?php if ($Antidepresivos=='1') echo "checked=checked>" ?> </input>
    <label class="checkbox-inline">Analgésicos</label> &nbsp;&nbsp;&nbsp;
  <input type="checkbox"  name="Analgesicos" value="1" <?php if ($Analgesicos=='1') echo "checked=checked>"?></input>
    <label class="checkbox-inline">Vitaminas </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="checkbox" name="Vitaminas" value="1" <?php if ($Vitaminas=='1') echo "checked=checked>" ?> </input>
  <label class="checkbox-inline">Homeopáticos </label>&nbsp;&nbsp;&nbsp;
  <input type="checkbox" name="Hemeopaticos" value="1" <?php if ($Hemeopaticos=='1') echo "checked=checked>" ?> </input>
    <label class="checkbox-inline">Antibióticos </label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="checkbox" name="Antibioticos" value="1" <?php if ($Antibioticos=='1') echo "checked=checked>" ?></input>
    <label class="checkbox-inline">Estimulantes de Pigmentación </label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
  <input type="checkbox" name="Pigmentacion" value="1" <?php if ($Pigmentacion=='1') echo "checked=checked>" ?>  </input></br>
  <label class="checkbox-inline">Otros </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <input type="checkbox" name="Otros" value="1"<?php if ($Otros=='1') echo "checked=checked>" ?></input>
  <label class="checkbox-inline">Medicamentos para epilepsia </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   <input type="checkbox" name="MEpilepcia" value="1" <?php if ($MEpilepcia=='1') echo "checked=checked>" ?> 
 </br></br>






      Si marcó alguno de los medicamentos anteriores favor de describir la cantidad,periodicidad y fecha de última toma:
      <textarea class="form-control" rows="6" id="name1" name="Comentarios" required=""  > <?php echo $Comentarios;?> </textarea>
  </tr>







  <tr class="row1">
    <td><strong>Cirugías Plásticas</strong></td>
    <td><strong>Implantes</strong></td>
  </tr>
  <td>
      Si <input type="radio" name="CirugiasPlasticas" value="1" onclick=" activarCPlas(true)" <?php if ($CirugiasPlasticas=='1') echo "  checked=checked>"?> </input> 
      No <input type="radio" name="CirugiasPlasticas" value="0" onclick=" activarCPlas(false)"<?php if ($CirugiasPlasticas=='0') echo "  checked=checked>"?>  </input> <br>
       ¿Cuál? <input type="text" class="form-control" id="CualesCirugiasPlasticas" name="CualesCirugiasPlasticas" maxlength='45' value="<?=$CualesCirugiasPlasticas?>" >
    </td>
    <td>
      Si <input type="radio" name="Implantes" value="1" onclick=" activarImpla(true)"<?php if ($Implantes=='1') echo "  checked=checked>"?> </input> 
      No <input type="radio" name="Implantes" value="0" onclick=" activarImpla(false)"<?php if ($Implantes=='0') echo "  checked=checked>"?> </input> <br> 
      ¿Cuál? <input type="text" class="form-control" id="CualesImplantes" name="CualesImplantes" maxlength='45' value="<?=$CualesImplantes?>" >
    </td>
  
  <tr class="row1">
    <td><strong>Desajustes oseos</strong></td>
    <td><strong>Medicamentos en los últimos 6 meses</strong></td>
  </tr>
  <td>
      Si <input type="radio" name="DesajustesOseos" value="1" onclick=" activarDOse(true)" <?php if ($DesajustesOseos=='1') echo "  checked=checked>"?> </input>
      No <input type="radio" name="DesajustesOseos" value="0" onclick=" activarDOse(false)"<?php if ($DesajustesOseos=='0') echo "  checked=checked>"?>  </input> </br>
      ¿Cuál? <input type="text" class="form-control" id="CualesDesajustesOseos" name="CualesDesajustesOseos" maxlength='45' value="<?=$CualesDesajustesOseos?>" >
    </td>
    <td>
      Si <input type="radio" name="MedicamentosUltimosMeses" value="1" onclick=" activarM(true)"<?php if ($MedicamentosUltimosMeses=='1') echo "  checked=checked>"?>  </input> 
      No <input type="radio" name="MedicamentosUltimosMeses" value="0" onclick=" activarM(false)"<?php if ($MedicamentosUltimosMeses=='0') echo "  checked=checked>"?> </input> <br> 
      ¿Cuál? <input type="text" class="form-control" id="CualesMedicamentos" name="CualesMedicamentos" maxlength='45' value="<?=$CualesMedicamentos?>" >
    </td>
  
  <tr class="row1">
    <td colspan="2"><strong>Autorización médica</strong></td>
  </tr>
  <td>
      Si <input type="radio" name="AutorizaciónMedica" value="1" onclick="activarMed(true)" <?php if ($AutorizaciónMedica=='1') echo "  checked=checked>"?> </input>
      No <input type="radio" name="AutorizaciónMedica" value="0" onclick="activarMed(false)"<?php if ($AutorizaciónMedica=='0') echo "  checked=checked>"?>  </input></br>
     Detalles de autorización <input type="text" class="form-control" id="CualMedico" name="CualMedico" maxlength='45' value="<?=$CualMedico?>"  >
    </td>
    
  <tr class="row1">
    <td colspan="2"><strong>Diagnóstico y observaciones</strong></td>
  </tr>
  <tr class="row2">
    <td colspan="2"> 
      <textarea class="form-control" rows="6" id="DiagnosticoyObservaciones" name="DiagnosticoyObservaciones"  > <?php echo $DiagnosticoyObservaciones;?></textarea>
  </tr>

  
  <tr class="row1" align="left"> <td colspan="2">
      <strong>Historia</strong></td>
  </tr> 
<tr class="row2" align="center">
    <td colspan="2"> 
      <textarea class="form-control" rows="6"  id="Historia" name="Historia"  readonly="readonly"> <?php echo $Historia;?></textarea>

        <br>
    </td>
</tr>

<tr class="row2" align="center">
    <td colspan="2"> 
      <textarea class="form-control" rows="6"  id="HistoriaMAS" name="HistoriaMas"  value="Ningun cambio realizado a historia">  NO SE HIZO NINGÚN CAMBIO EN HISTORIA </textarea>

        <br>
    </td>
</tr>


  </table>

  <a href="<?php echo base_url();?>expediente/administrador/expedienteA/editarE/<?=$this->uri->segment(5);?>"><button type="submit" class="btn btn-primary" name="editar" id="editar" value="editarenlace">Guardar</button></a>
<a href="<?php echo base_url();?>clientes/administrador/clienteA"> <button type="button" class="btn btn-danger">Cancelar</button></a>

</form>
<a onclick= 'if(confirmarE() == false) return false ' href="<?php echo base_url();?>expediente/administrador/expedienteA/eliminar/<?=$IdClientes?>"><button type="submit" class="btn btn-warning"><i class="fa fa-file-excel-o"></i>  Eliminar Expediente</button></a>
<?php $time = time();  date("d-m-Y ", $time);?>
 <input type="text" class="form-control" id="Time" name="Time" value="<?=date("d-m-Y ", $time);?>"   style="visibility:hidden;" >

   <input type="text" name="reloj" size="10" style="visibility:hidden;" > 

</div>
</div>
</div>
</div>
</div>

</body>

</html>


