<?php
  $page_title = 'Editar Programacion';
  require_once('../../includes/load.php');
  // Checkin What level user has permission to view this page
  page_require_level(5);
?>
<?php
  $operacion = find_by_id('operacion',(int)$_GET['id']);
  //variables para los select
  $operacionid = $operacion['id'];
  $programaid = $operacion['IdPrograma'];

  if(!$operacion){
  $session->msg("d","Error: No se encontró id del operacion.");
  redirect('operacion.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-edit"></span>
            <span>Registrar Fechas</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>Operacion</span>
                  </strong> 
                </div>
                 <div class="card-body">
                 	<div class="form-group">
		                <div class="row">
		                  	<div class="col-md-2">
		                      <label for="galpones" class="control-label">Programa:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <input type="text" name="programa" id="programa" class="form-control" value="<?php echo (int)$operacion['IdPrograma'];?>" readonly>		                                                                        
		                      </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="galpon" class="control-label">Galpones:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <select id="galpon" name="galpon" class="form-control">
																	 	  <?php
																	        $consulta = $db->query("SELECT * FROM operacion WHERE id = $operacionid");
																	        while ($galpon = $db->fetch_array($consulta)) {
																	        $def='';
																	        if($galpon['Galpon']==true){
																	            $def='selected';
																	        }
																	   ?>
																				    <?php 
																			      for ($i=0; $i<=18; $i++){
																			          echo '<option ' . ($galpon['Galpon'] == $i ? $def : ''). ' value="'.$i.'">'.$i.'</option>';
																			        
																			      }
																			        ?>

																				    <?php
																	        }
																	   ?>
																	  </select>                                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ano" class="control-label">Año:</label>
		                      <div class="input-group">   
																	 <select id="ano" name="ano" class="form-control" disabled>
																	 	  <?php
																	        $consulta = $db->query("SELECT * FROM operacion WHERE id = $operacionid");
																	        while ($ano = $db->fetch_array($consulta)) {
																	        $def='';
																	        $year = date("Y");
																	        if($ano['Anio']==true){
																	            $def='selected';
																	        }
																	   ?>
																				    <?php 
																			      for ($i=2020; $i<=$year; $i++){
																			          echo '<option ' . ($ano['Anio'] == $i ? $def : ''). ' value="'.$i.'">'.$i.'</option>';
																			        
																			      }
																			        ?>

																				    <?php
																	        }
																	   ?>
																	  </select>                         
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ini_limpieza" class="control-label">Inicio Limpieza:</label>
		                      <div class="input-group">   
		                              <input type="date" id="ini_limpieza" name="ini_limpieza" class="form-control" value="<?php echo remove_junk($operacion['FechaInicioLimpieza']); ?>" readonly>                           
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ter_compost" class="control-label">Termino compost:</label>
		                      <div class="input-group">   
		                              <input type="date" id="ter_compost" name="ter_compost" class="form-control" value="<?php echo remove_junk($operacion['FechaTerminoCompost']); ?>">                           
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="red_dragon" class="control-label">Red Dragon:</label>
		                      <div class="input-group">   
		                              <input type="date" id="red_dragon" name="red_dragon" class="form-control" value="<?php echo remove_junk($operacion['FechaRedDragon']); ?>">                           
		                        </div>               
		                    </div>
		                </div>
		               </div>
		              <div class="form-group">
		                <div class="row">
		                  	<div class="col-md-2">
		                      <label for="operacion" class="control-label">Operación:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <input type="text" name="operacion" id="operacion" class="form-control" value="<?php echo (int)$operacion['id'];?>" readonly>			                                                                        
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="reuso" class="control-label">Reuso:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <select id="reuso" name="reuso" class="form-control">
																		<?php
																	        $consulta = $db->query("SELECT * FROM operacion WHERE id = $operacionid");
																	        while ($reuso = $db->fetch_array($consulta)) {
																	        $def='';
																	        $year = 11;
																	        if($reuso['Reuso']==true){
																	            $def='selected';
																	        }
																	   ?>
																				    <?php 
																			      for ($i=1; $i<=$year; $i++){
																			          echo '<option ' . ($reuso['Reuso'] == $i ? $def : ''). ' value="'.$i.'">'.$i.'</option>';
																			        
																			      }
																			        ?>

																				    <?php
																	        }
																	   ?>
		                              </select>                                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="mes" class="control-label">Mes:</label>
		                      <div class="input-group">  
		                              <select id="mes" name="mes" class="form-control" disabled>
																	 	  <?php
																	        $consulta = $db->query("SELECT * FROM operacion WHERE id = $operacionid");
																	        while ($mesconsul = $db->fetch_array($consulta)) {
																	        $def='';
																	        if($mesconsul['Mes']==true){
																	            $def='selected';
																	        }
																	   ?>
																				    <?php 
																			      for ($i=1; $i<=12; $i++){
																			      	$value = ($i < 10)?'0'.$i:$i;
																				       switch ($value) {
																				         case '01': $mes = 'Enero';break;
																				         case '02': $mes = 'Febrero';break;
																				         case '03': $mes = 'Marzo';break;
																				         case '04': $mes = 'Abril';break;
																				         case '05': $mes = 'Mayo';break;
																				         case '06': $mes = 'Junio';break;
																				         case '07': $mes = 'Julio';break;
																				         case '08': $mes = 'Agosto';break;
																				         case '09': $mes = 'Septiembre';break;
																				         case '10': $mes = 'Octubre';break;
																				         case '11': $mes = 'Noviembre';break;
																				         case '12': $mes = 'Diciembre';break;
																				         default: $mes = 'Non'; break;
																				       }
																			          echo '<option ' . ($mesconsul['Mes'] == $i ? $def : ''). ' value="'.$i.'">'.$mes.'</option>';
																			        
																			      }
																			        ?>

																				    <?php
																	        }
																	   ?>
																	  </select>                           
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ini_recepcion" class="control-label">Inicio Recepción:</label>
		                      <div class="input-group">  
		                              <input type="date" id="ini_recepcion" name="ini_recepcion" class="form-control" value="<?php echo remove_junk($operacion['FechaInicioRecepcion']); ?>">                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ter_limpieza" class="control-label">T. Limpieza Inicial:</label>
		                      <div class="input-group">  
		                              <input type="date" id="ter_limpieza" name="ter_limpieza" class="form-control" value="<?php echo remove_junk($operacion['FechaTerminoLimpiezaInicial']); ?>">                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ent_granja" class="control-label">Entrega Granja:</label>
		                      <div class="input-group">  
		                              <input type="date" id="ent_granja" name="ent_granja" class="form-control" value="<?php echo remove_junk($operacion['FechaEntregaGranja']); ?>">                            
		                        </div>               
		                    </div>		                    
		                </div>
		               </div>

		               <div class="form-group">
		                <div class="row">
		                  	<div class="col-md-2">
		                      <label for="campana" class="control-label">Campaña:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
																	  <?php
		                                  $consulta = $db->query("SELECT * FROM programa WHERE id = $programaid");
															        $campana = $db->fetch_array($consulta);  
															     ?>   
															       <input type="text" id="campana" name="campana" class="form-control" value="<?php echo remove_junk($campana['Campana']); ?>" readonly>  
                                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="servicio" class="control-label">Servicio:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span> 		                              
		                              <?php
		                                  $consultaid = $db->query("SELECT * FROM programa WHERE id = $programaid");
															        $idTS = $db->fetch_array($consultaid);

															        $consulta = $db->query("SELECT * FROM tiposervicio WHERE IdTipoServicio = {$idTS['IdTipoServicio']}");
															        $servicio = $db->fetch_array($consulta);  
															     ?>   
															       <input type="text" id="servicio" name="servicio" class="form-control" value="<?php echo remove_junk($servicio['TSNombre']); ?>" readonly>  
															       <input type="hidden" id="idservicio" name="idservicio" class="form-control" value="<?php echo remove_junk($servicio['IdTipoServicio']); ?>" readonly> 

		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="semana" class="control-label">Semana Cierre:</label>
		                      <div class="input-group">   
		                              <select id="semana" name="semana" class="form-control" disabled>
																	 	  <?php
																	        $consulta = $db->query("SELECT * FROM operacion WHERE id = $operacionid");
																	        while ($semana = $db->fetch_array($consulta)) {
																	        $def='';
																	        if($semana['IdSemanaCierreOperacion']==true){
																	            $def='selected';
																	        }
																	   ?>
																				    <?php 
																			      for ($i=1; $i<=53; $i++){
																			          echo '<option ' . ($semana['IdSemanaCierreOperacion'] == $i ? $def : ''). ' value="'.$i.'">'.$i.'</option>';
																			        
																			      }
																			        ?>

																				    <?php
																	        }
																	   ?>
																	  </select>                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ter_recepcion" class="control-label">Termino de Recepción:</label>
		                      <div class="input-group">   
		                              <input type="date" id="ter_recepcion" name="ter_recepcion" class="form-control" value="<?php echo remove_junk($operacion['FechaTerminoRecepcion']); ?>">                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ini_tumbado" class="control-label">Inicio Tumbado:</label>
		                      <div class="input-group">   
		                              <input type="date" id="ini_tumbado" name="ini_tumbado" class="form-control" value="<?php echo remove_junk($operacion['FechaInicioTumbadoCompost']); ?>">                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="pollo" class="control-label">Pollo BB:</label>
		                      <div class="input-group">   
		                              <input type="date" id="pollo" name="pollo" class="form-control" value="<?php echo remove_junk($operacion['FechaIngresoPollosBB']); ?>">                                            
		                        </div>
		                    </div>		                    
		                </div>
		              </div>


		              <div class="form-group">
		                <div class="row">
		                  	<div class="col-md-2">
		                      <label for="granja" class="control-label">Granja:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $IdGranja = $db->fetch_array($consultaId);
																        $consulta = $db->query("SELECT * FROM granja WHERE IdGranja={$IdGranja['IdGranja']}");
																        $area = $db->fetch_array($consulta) 
																   ?>
																   <input type="text" id="granja" name="granja" class="form-control" value="<?php echo remove_junk($area['GNombre']); ?>" readonly>  
															      <input type="hidden" id="idgranja" name="idgranja" class="form-control" value="<?php echo remove_junk($area['IdGranja']); ?>" readonly>                                                                       
		                        </div>                
		                    </div>
		                    <div class="col-md-2">
		                      <label for="estado" class="control-label">Estado:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <select id="estado" name="estado" class="form-control" disabled>
		                               <option value="Proceso" <?php if ($operacion['Estado']=='Proceso'){echo 'selected';} ?>>Proceso</option>
					                         <option value="Terminado" <?php if ($operacion['Estado']=='Terminado'){echo 'selected';} ?>>Terminado</option>
		                              </select>                                        
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ult_venta" class="control-label">Ultima Venta:</label>
		                      <div class="input-group">   
		                              <input type="date" id="ult_venta" name="ult_venta" class="form-control" value="<?php echo remove_junk($operacion['FechaUltimaVenta']); ?>" readonly>                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ini_compost" class="control-label">Inicio Compost:</label>
		                      <div class="input-group">   
		                              <input type="date" id="ini_compost" name="ini_compost" class="form-control" value="<?php echo remove_junk($operacion['FechaInicioCompost']); ?>">                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ter_tumbado" class="control-label">Termino Tumbado:</label>
		                      <div class="input-group">   
		                              <input type="date" id="ter_tumbado" name="ter_tumbado" class="form-control" value="<?php echo remove_junk($operacion['FechaTerminoTumbadoCompost']); ?>">                             
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="mt_trabajados" class="control-label">Mt2 Trabajados:</label>
		                      <div class="input-group">   
		                              <input type="text" id="mt_trabajados" name="mt_trabajados" class="form-control" value="0">                                            
		                        </div>
		                    </div>
		                </div>
		              </div>
		              <div class="form-group" hidden>
		                <div class="row">
		                  	<div class="col-md-2">
		                      <label for="ProFechaInicioCompost" class="control-label">ProFechaInicioCompost:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $ProFechaInicioCompost = $db->fetch_array($consultaId);
																   ?>
																   <input type="date" id="ProFechaInicioCompost" name="ProFechaInicioCompost" class="form-control" value="<?php echo remove_junk($ProFechaInicioCompost['ProFechaInicioCompost']); ?>" readonly>                                                                        
		                        </div>                
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ProFechaTerminoCompost" class="control-label">ProFechaTerminoCompost:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                            <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $ProFechaTerminoCompost = $db->fetch_array($consultaId);
																   ?>
																   <input type="date" id="ProFechaTerminoCompost" name="ProFechaTerminoCompost" class="form-control" value="<?php echo remove_junk($ProFechaTerminoCompost['ProFechaTerminoCompost']); ?>" readonly>                                                                        
		                        </div>                
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ProFechaTerminoLimpiezaInicial" class="control-label">ProFechaTerminoLimpiezaInicial:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $ProFechaTerminoLimpiezaInicial = $db->fetch_array($consultaId);
																   ?>
																   <input type="date" id="ProFechaTerminoLimpiezaInicial" name="ProFechaTerminoLimpiezaInicial" class="form-control" value="<?php echo remove_junk($ProFechaTerminoLimpiezaInicial['ProFechaTerminoLimpiezaInicial']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ProFechaInicioTumbadoCompost" class="control-label">ProFechaInicioTumbadoCompost:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $ProFechaInicioTumbadoCompost = $db->fetch_array($consultaId);
																   ?>
																   <input type="date" id="ProFechaInicioTumbadoCompost" name="ProFechaInicioTumbadoCompost" class="form-control" value="<?php echo remove_junk($ProFechaInicioTumbadoCompost['ProFechaInicioTumbadoCompost']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ProFechaTerminoTumbadoCompost" class="control-label">ProFechaTerminoTumbadoCompost:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $ProFechaTerminoTumbadoCompost = $db->fetch_array($consultaId);
																   ?>
																   <input type="date" id="ProFechaTerminoTumbadoCompost" name="ProFechaTerminoTumbadoCompost" class="form-control" value="<?php echo remove_junk($ProFechaTerminoTumbadoCompost['ProFechaTerminoTumbadoCompost']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="ProFechaEntregaGranja" class="control-label">ProFechaEntregaGranja:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $ProFechaEntregaGranja = $db->fetch_array($consultaId);
																   ?>
																   <input type="date" id="ProFechaEntregaGranja" name="ProFechaEntregaGranja" class="form-control" value="<?php echo remove_junk($ProFechaEntregaGranja['ProFechaEntregaGranja']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                </div>
		              </div>
		              <div class="form-group" hidden>
		                <div class="row">
		                  	<div class="col-md-2">
		                      <label for="TProPreparacionLimpieza" class="control-label">TProPreparacionLimpieza:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TProPreparacionLimpieza = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TProPreparacionLimpieza" name="TProPreparacionLimpieza" class="form-control" value="<?php echo remove_junk($TProPreparacionLimpieza['TProPreparacionLimpieza']); ?>" readonly>                                                                        
		                        </div>                
		                    </div>
		                    <div class="col-md-2">
		                      <label for="TProInicioCompost" class="control-label">TProInicioCompost:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                            <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TProInicioCompost = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TProInicioCompost" name="TProInicioCompost" class="form-control" value="<?php echo remove_junk($TProInicioCompost['TProInicioCompost']); ?>" readonly>                                                                        
		                        </div>                
		                    </div>
		                    <div class="col-md-2">
		                      <label for="TProCompost" class="control-label">TProCompost:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TProCompost = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TProCompost" name="TProCompost" class="form-control" value="<?php echo remove_junk($TProCompost['TProCompost']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="TProLimpiezaInicial" class="control-label">TProLimpiezaInicial:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TProLimpiezaInicial = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TProLimpiezaInicial" name="TProLimpiezaInicial" class="form-control" value="<?php echo remove_junk($TProLimpiezaInicial['TProLimpiezaInicial']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="TProInicioTumbado" class="control-label">TProInicioTumbado:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TProInicioTumbado = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TProInicioTumbado" name="TProInicioTumbado" class="form-control" value="<?php echo remove_junk($TProInicioTumbado['TProInicioTumbado']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="TProTerminoTumbado" class="control-label">TProTerminoTumbado:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TProTerminoTumbado = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TProTerminoTumbado" name="TProTerminoTumbado" class="form-control" value="<?php echo remove_junk($TProTerminoTumbado['TProTerminoTumbado']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="TProVacioSanitario" class="control-label">TProVacioSanitario:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TProVacioSanitario = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TProVacioSanitario" name="TProVacioSanitario" class="form-control" value="<?php echo remove_junk($TProVacioSanitario['TProVacioSanitario']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                    <div class="col-md-2">
		                      <label for="TipoGranja" class="control-label">TipoGranja:</label>
		                      <div class="input-group">   
		                              <?php
																        $consultaId = $db->query("SELECT * FROM programa WHERE id = $programaid");
																        $TipoGranja = $db->fetch_array($consultaId);
																   ?>
																   <input type="text" id="TipoGranja" name="TipoGranja" class="form-control" value="<?php echo remove_junk($TipoGranja['TipoGranja']); ?>" readonly>                            
		                        </div>               
		                    </div>
		                </div>
		              </div>
		              <div class="form-group">
		                <div class="row">
		                    <div class="col-md-12">
		                      <label for="observacion" class="control-label">Observacion:</label>
		                      <div class="input-group"> 
		                        <span class="input-group-addon">
		                          <i class="fi fi-sr-interlining"></i>
		                        </span>  
		                              <input type="text" name="observacion" id="observacion" class="form-control" value="<?php echo remove_junk($operacion['ObservacionOperacion']); ?>">                                      
		                        </div>               
		                    </div> 
		                </div>
		              </div>
			               <div class="text-center">
	                     		 <button type="button" class="btn btn-success" onclick="Edit();"><i class="glyphicon glyphicon-floppy-disk"></i>Actualizar</button>
	                       </div>
          			  </div>
	          	    </div>
	             </div>
	           </div>   
            </div>
          </div>           
        </form>
     </div>
    </div>
  </div>
</div>
</div>

<?php include_once('../../layouts/footer.php'); ?>
<script type="text/javascript" src="js/edit_operacion.js"></script>


