<div id="box_hc"><!---  ############## control 0 ####               -->
	<div id="row">
			<div id="tb_col">
				<span class="subtitle">Control 0	 </span><br>
				<span class="subtitle">Contrato No.</span>		
			</div>
			<div id="tb_col" style="width:20px"></div>
			<div id="tb_col">
				<span class="subtitle">Nombre y apellido:</span>&nbsp;&nbsp;&nbsp;<?php echo $registro['name']?>
				<br />
				<span class="subtitle">Cédula del paciente:</span>  <?php echo $registro['cc']?> 
			</div>
			<div id="tb_col" style="width:20px"></div>
			<div id="tb_col">
				<span class="subtitle">Fecha de control:</span> <?php echo $control0_id['date_control']; ?><br>
				<span class="subtitle">Control creada por:</span> <?php echo $control0_id['hc_creado'] ?>
			</div>
	</div>
<span class="alerta_view"><?php echo $control0_id['riesgo_cardio'] ?></span>

<form action="update_control0.php" method="POST" name="control0">
<input type="hidden" value="<?php echo $id; ?>" name="id" /> 
<br><span class="subtitle2">VALORACIÓN MÉDICA</span>
	<?php 
	if ($_SESSION['type_user_live'] == "Admin") {
		if ($max_control == ""){
		echo "<a class='btn btn-danger btn-xs hidden-print' href='#' onclick='confirm_del_control0($id)'><span class='glyphicon glyphicon-trash'> Eliminar</span></a>";
		};
   	}
?>
<div id="line"></div><br />
<!-- ################ CONTROl 0  ###### -->
<!---  ############## VALORACIÓN MÉDICA ####               -->
	<div id="tb_col" style="width: 220px">
		<span class="subtitle">Distribución de la grasa</span><br />
		Obesidad subjetiva: <?php echo $control0_id['obe_subjetiva']; ?>		 
	</div>
	<div id="tb_col" style="width: 5%"></div>
	<div id="tb_col">
		<span class="subtitle">INDICADORES DE AUMENTO DE RIESGO DE SALUD DEL PACIENTE</span><br />
		<?php echo $control0_id['indicador_aumento']; ?>
	</div>
	<span class="subtitle">EXAMEN FISICO ESPECIAL</span><br />	
		<?php
	    if ($_SESSION['type_user_live'] == "Admin" or $_SESSION['type_user_live'] == "Médico") {
	    	$show_inputs = 1;
	    	echo "<input type='hidden' value='1' name='edit' /> ";
	    	echo "T/A: <input type='text' size='10' name='exa_ta' value='".$control0_id['exa_ta']."'>&nbsp;&nbsp;
				  FC: <input type='text' size='10' name='exa_fc' value='".$control0_id['exa_fc']."'>&nbsp;&nbsp;
				  FR: <input type='text' size='10' name='exa_fr' value='".$control0_id['exa_fr']."'>&nbsp;&nbsp;
				  TO: <input type='text' size='10' name='exa_to' value='".$control0_id['exa_to']."'>&nbsp;&nbsp;";
	    	} else {
	    		$show_inputs = 0;
	    	echo "T/A: ".$control0_id['exa_ta']."&nbsp;&nbsp;
				  FC: ".$control0_id['exa_fc']." &nbsp;&nbsp;
				  FR: ".$control0_id['exa_fr']." &nbsp;&nbsp;
				  TO: ".$control0_id['exa_to']." &nbsp;&nbsp;";
	    	};
	?>
<br /><br />
<div id="wrapper">
		<div id="row">
			<div id="tb_col">
				<?php
			    if ($show_inputs == 1) {
			    echo "<p class='bloque_input'>Cráneo y cuello <input type='tel' size='10' name='craneo' class='right' value='".$control0_id['craneo']."' /> </p>
					  <p class='bloque_input'>Abdomen <input type='tel' size='10' name='abdomen' class='right' value='".$control0_id['abdomen']."' /> </p>
					  <p class='bloque_input'>Muscular <input type='tel' size='10' name='muscular' class='right' value='".$control0_id['muscular']."' /> </p>";
			  	} else {
			  	echo "<p class='bloque_input'>Cráneo y cuello ".$control0_id['craneo']."</p>
					  <p class='bloque_input'>Abdomen ".$control0_id['abdomen']."</p>
					  <p class='bloque_input'>Muscular ".$control0_id['muscular']."</p>";
				}
				?>
			</div>
			<div id="tb_col" style="width: 3%"></div>
			<div id="tb_col">
				<?php
			    if ($show_inputs == 1) {
			    echo "<p class='bloque_input'>Tórax - Pulmón y corazón <input type='tel' size='10' name='torax' class='right' value='".$control0_id['torax']."' /></p>
					  <p class='bloque_input'>Genitales <input type='text' size='10' name='genitales' class='right' value='".$control0_id['genitales']."' /></p>
					  <p class='bloque_input'>Neurológicos y reflejos <input type='tel' size='10' name='reflejos' class='right' value='".$control0_id['neurologicos']."' /></p>";
			  	} else {
			  	echo "<p class='bloque_input'>Tórax - Pulmón y corazón ".$control0_id['torax']."</p>
					  <p class='bloque_input'>Genitales ".$control0_id['genitales']."</p>
					  <p class='bloque_input'>Neurológicos y reflejos ".$control0_id['neurologicos']."</p>";
				}
				?>
			</div>
			<div id="tb_col" style="width: 3%"></div>
			<div id="tb_col">
				<?php
			    if ($show_inputs == 1) {
			    echo "<p class='bloque_input'>Osteoarticular <input type='tel' size='10' name='osteoarticular' class='right' value='".$control0_id['osteoarticular']."' /> </p>
					  <p class='bloque_input'>Piel <input type='tel' size='10' name='piel' class='right' value='".$control0_id['piel']."' /> </p>";
			  	} else {
			  	echo "<p class='bloque_input'>Osteoarticular ".$control0_id['osteoarticular']."</p>
					  <p class='bloque_input'>Piel ".$control0_id['piel'];
				}
				?>				
			</div>
		</div>
	</div>
<!---  ############## END VALORACIÓN MÉDICA ####               -->
<br />
<!---  ############## ESTADO GENERAL ####               -->
<span class="subtitle2">estado general</span><div id="line"></div>
		<div id="row">
			<div id="tb_col">
				<p>Talla (Altura "cms") <?php echo $control0_id['talla'] ?> </p>
				<p>Peso (kgrs) <?php echo $control0_id['peso'] ?></p>
				<p>% de agua Corporal <?php echo $control0_id['porc_agua'] ?> </p>
				<p>Abdomen Alto <?php echo $control0_id['abdomen_alto'] ?> </p>
				<p>Pierna Derecha <?php echo $control0_id['pierna_right'] ?> </p>
				<p>Brazo Derecho <?php echo $control0_id['brazo_right'] ?> </p>
			</div>
			<div id="tb_col" style="width: 3%"></div>
			<div id="tb_col">
				<p>IMC [5]<?php echo $control0_id['imc'] ?> </p>
				<p>% De Grasa <?php echo $control0_id['porc_grasa'] ?> </p>
				<p>% de masa muscular  <?php echo $control0_id['porc_masamuscular'] ?> </p>
				<p>Abdomen medio <?php echo $control0_id['abdomen_medio'] ?> </p>
				<p>Pierna Izquierda <?php echo $control0_id['pierna_left'] ?> </p>
				<p>Brazo Izquierdo <?php echo $control0_id['brazo_left'] ?> </p>
			</div>
			<div id="tb_col" style="width: 3%"></div>
			<div id="tb_col">
				<p>Estado [6]: <?php echo $control0_id['estado'] ?> </p>
				<p>Peso Ideal [7] <?php echo $control0_id['peso_ideal'] ?> </p>
				<p>% de masa  Osea <?php echo $control0_id['porc_masaosea'] ?> </p>
				<p>Abdomen Bajo <?php echo $control0_id['abdomen_bajo'] ?> </p>
			</div>
		</div>

<span class="subtitle">Observaciones:</span><br />
	<textarea name="obser" rows="5" cols="100%"><?php echo $control0_id['obser'] ?></textarea>	
	<br />
	<span class="subtitle">Prescripción:</span><br />
		<?php
	    if ($_SESSION['type_user_live'] == "Admin" or $_SESSION['type_user_live'] == "Médico") {
	    	echo "<textarea name='pres' rows='5' cols='100%'>".$control0_id['pres']."</textarea>";
	    	} else {
	    		echo $control0_id['pres'];
	    	}
		?>
	<center><button type="submit" class="btn btn-default hidden-print"><span class='glyphicon glyphicon-floppy-disk '></span> Guardar cambios</button></center>

	</form>
 <!-- end  ESTADO GENERAL -->
 <!-- ################ END CONTROl 0  ###### -->
</div><!---  ############## end control 0 ####               -->