<?php
  $page_title = 'Ver Recurso';
  require_once('../../includes/load.php');
  // Checkin What level user has permission to view this page
  page_require_level(5);
?>
<?php
  $recurso = find_by_id('detalleprograma',(int)$_GET['id']);
  if(!$recurso){
  $session->msg("d","Error: No se encontr¨® id del recurso.");
  redirect('recurso.php');
}
?>
<?php include_once('../../layouts/header.php'); ?>
<div class="row">
  <div class="col-md-12">
    <?php echo display_msg($msg); ?>
  </div>
</div>
  <div class="row">
  <div class="col-md-16">
      <div class="panel panel-default">
        <div class="panel-heading">
          <strong>
            <span class="glyphicon glyphicon-info-sign"></span>
            <span>Visualizar Recurso</span>
         </strong>
        </div> 
 <!-- FORMULARIO PARA GUARDAR EL PROGRAMA-->
        <form  enctype="multipart/form-data" autocomplete="off" id="form">
          <div class="panel-body">
            <div class="col-md-12">
        		<div class="card-header">
                  <strong>
                     <span>Recursos</span>
                  </strong> 
                </div>

                 <div class="card-body">
		              <div class="form-group">
		                <div class="row">
		                  	<div class="col-md-3">
		                      <label for="programa" class="control-label">Programa:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <span class="form-control" ><?php echo (int)$recurso['IdPrograma'];?></span> 
		                                                                        
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="actividad" class="control-label">Actividad:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <?php
									        $consulta = $db->query("SELECT a.ANombre FROM detalleprograma dt INNER JOIN actividad a ON a.IdActividad  = {$recurso['IdActividad']}");
									        $actividad = $db->fetch_array($consulta);  									        
							            ?>
													<span class="form-control" ><?php echo $actividad['ANombre'];?></span> 
		                                                                        
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="fecha" class="control-label">Fecha:</label>
		                      <div class="input-group"> 
		                      	<span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['FechaRecursoProgramaDiario']); ?></span>                                            
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="operario" class="control-label">Operario:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                           <span class="form-control" ><?php echo remove_junk($recurso['JornalesOperariosProgramaDiario']);?></span>                                             
		                        </div>               
		                    </div>
		                </div>
		               </div>

		               <div class="form-group">
		                <div class="row">
		                    <div class="col-md-3">
		                      <label for="tractorista" class="control-label">Tractorista:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <span class="form-control" ><?php echo remove_junk($recurso['JornalesTractoristaProgramaDiario']);?></span>                                             
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="tractor_75" class="control-label">Tractor 75 Hp:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                             <span class="form-control" ><?php echo remove_junk($recurso['TractorPotencia75HPProgramaDiario']);?></span>                                          
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="trac_95" class="control-label">Tractor 95 Hp:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <span class="form-control" ><?php echo remove_junk($recurso['TractorPotencia95HPProgramaDiario']);?></span>                           
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="trac_110" class="control-label">Tractor 110 Hp:</label>
		                      <div class="input-group">  
		                      	<span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>
		                              <span class="form-control" ><?php echo remove_junk($recurso['TractorPotencia110HPProgramaDiario']);?></span>                             
		                        </div>               
		                    </div>
		                </div>
		              </div>


		              <div class="form-group">
		                <div class="row">
		                  	<div class="col-md-3">
		                      <label for="roturado" class="control-label">Roticultor:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <span class="form-control" ><?php echo remove_junk($recurso['RoticultorInicialProgramaDiario']);?></span>                             
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="rot_final" class="control-label">Roticultor Final:</label>
		                      <div class="input-group">  
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span> 
		                              <span class="form-control" ><?php echo remove_junk($recurso['RoticultorFinalProgramaDiario']);?></span>                          
		                        </div>                
		                    </div>
		                    <div class="col-md-3">
		                      <label for="carreta" class="control-label">Carreta:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span> 
		                              <span class="form-control" ><?php echo remove_junk($recurso['CarretaProgramaDiario']);?></span>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="rufa_inicial" class="control-label">Rufa Inicial:</label>
		                      <div class="input-group">
		                         <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['RufaInicialProgramaDiario'])?></span>                       
		                        </div>               
		                    </div>
		                </div>
		              </div>
		              <div class="form-group">
		              	<div class="row">
		              		<div class="col-md-3">
		                      <label for="ru_tumbado" class="control-label">Rufa Tumbado:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['RufaTumbadoProgramaDiario']); ?></span>                          
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="compostera" class="control-label">Composteadora:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['ComposteadoraProgramaDiario']);?></span>                         
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="airador" class="control-label">Aireador:</label>
		                      <div class="input-group">
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['AireadorProgramaDiario']);?></span>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="motofumigadora" class="control-label">Motofumigadora:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span> 
		                              <span class="form-control" ><?php echo remove_junk($recurso['MotofumigadoraProgramaDiario']);?></span>                           
		                        </div>               
		                    </div>		                		              		
		              	</div>
		              </div>

		              <div class="form-group">
		              	<div class="row">
		              		<div class="col-md-3">
		                      <label for="rebobinadora" class="control-label">Rebobinadora:</label>
		                      <div class="input-group"> 
		                      	<span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                      				<span class="form-control" ><?php echo remove_junk($recurso['RebobinadoraProgramaDiario']);?></span>                                           
		                        </div>               
		                    </div>
												<div class="col-md-3">
		                      <label for="caleadora" class="control-label">Caleadora:</label>
		                      <div class="input-group">  
		                    	  <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <span class="form-control" ><?php echo remove_junk($recurso['CaleadoraProgramaDiario']);?></span>                                           
		                        </div>               
		                    </div>
												<div class="col-md-3">
		                      <label for="trituradora" class="control-label">Trituradora:</label>
		                      <div class="input-group"> 
		                      	<span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['TrituradoraProgramaDiario']);?></span>                                         
		                        </div>               
		                    </div>
												<div class="col-md-3">
		                      <label for="clasificador" class="control-label">Clasificador:</label>
		                      <div class="input-group">
		                      	<span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>    
		                              <span class="form-control" ><?php echo remove_junk($recurso['ClasificadorProgramaDiario']);?></span>                                          
		                        </div>               
		                    </div>		              		
		              	</div>
		              </div>
		              <div class="form-group">
		              	<div class="row">
												<div class="col-md-3">
		                      <label for="lamina" class="control-label">Lamina bordeadora:</label>
		                      <div class="input-group"> 
		                      	<span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['LaminaProgramaDiario']);?></span>                                       
		                        </div>               
		                    </div>
		                    <div class="col-md-3">
		                      <label for="minitractor" class="control-label">Minitractor:</label>
		                      <div class="input-group"> 
		                      	<span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span> 
		                      				<span class="form-control" ><?php echo remove_junk($recurso['MinitractorProgramaDiario']);?></span>                                       
		                        </div>               
		                    </div>		              		   
		                    <div class="col-md-3">
		                      <label for="Observaciones" class="control-label">Observaciones:</label>
		                      <div class="input-group">  
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>   
		                              <span class="form-control" ><?php echo remove_junk($recurso['ObservacionDetallePrograma']);?></span> 
		                        </div>
		                    </div>		              		
		              	</div>
		              </div>
			               <div class="text-center">
	                     		 <a href="listado_recursos.php" class="btn btn-primary"><i class="glyphicon glyphicon-th-list"></i>Listado</a>
	                       </div>
          			  </div>
	          	    </div>
	             </div>
	           </div>   
            </div>
          </div>           
        </form>
     </div>
    </div>
  </div>
</div>
</div>

<?php include_once('../../layouts/footer.php'); ?>




