<?php
session_start();
include("config.php");
include('funciones.php');
validacion_usuario($con);
include('include/head.php');
?>
<body>
<?php include("include/menu.php") ?>  
<div class="container margin-top">
		<div class="panel panel-info">
		    <div class="panel-heading">
		      <h3 class="panel-title">Nuevo Caso de Éxito</h3>
		    </div>
		    <div class="panel-body">
		    	<form id="formulario_exitonuevo" name="formulario" method="post" enctype="multipart/form-data" action="casoexitonue_grabar.php">		      		
			        	<div class="row">
			        		<div class="col-sm-2">
			        			<a type="button" href="casosexito.php" class="btn btn-primary">Ver lista de Caso de Éxito</a>
			        			<br><br>
			        		</div>
			        	</div>
			        	<div class="row"><div class="col-sm-12"><div class="alert alert-warning"> Se permiten imágenes de formato .jpg, .png</div></div></div>

			        	<div class="row">
			        		<div class="col-sm-12"><label for="image">Tipo de Sector:</label></div>
			        	</div>

			        	<div class="row">		
						    <div class="col-sm-2">
								 <label class="radio-inline">
								      <input type="radio" name="sector" value="1">Sector Privado
								</label>
							</div>
							<div class="col-sm-2">
								<label class="radio-inline">
								   <input type="radio" name="sector"  value="2">Sector Público
								</label>
							</div>
							<div class="col-sm-2">
								<label class="radio-inline">
								    <input type="radio" name="sector" value="3">Sector Civil
								</label>
							</div>	
						</div>						
  
						<br>	
						<div class="row">
			            	<div class="col-sm-12"><label for="imagen">Imágen o Video</label></div>
			            </div>
						<div class="row">
			            	<div class="col-sm-12">
                                <select name="combo_tipo_exito" id="combo_tipo_exito"class="form-control">
                                    <option value="1" selected="selected">Imágen</option>
                                    <option value="2" >Video</option>
                                </select> 	
			            	</div>
			            </div>

						<br>
						<div id="tipo_exito_imagen">
			            	<div class="row">			            	
				            	<div class="col-sm-12"><label for="imagen">Imágen</label></div>
				            </div>
				            <div class="row"><div class="col-sm-12"><div class="alert alert-warning">La imágen debe tener un tamaño menor o igual a 60 kb.</div></div></div>
				            <div class="row">		
				            	<div class="col-sm-12"><input name="imagen_cabecera" type="file" id="imagen_cabecera" size="88" maxlength="170" /></div>
			            	</div>
			            </div>
   
			            <div id="tipo_exito_video">
			            	<div class="row">
				            	<div class="col-sm-12"><label for="video">Video</label></div>
				            </div>
				            <div class="row"> 	
				            	<div class="col-sm-12"><input class="form-control input-sm" type="text" value="" id="video" name="video"></div>
			            	</div>
			            </div>
  
						<br>

						<div class="row">
							 <div class="col-sm-12"><label>Título</label></div>
						</div>
						<div class="row">		 
			                <div class="col-sm-12"><input class="form-control input-sm" type="text" value="" id="titulo" name="titulo"></div>
						</div>

						<br>							
						<div class="row"> 
							<div class="col-sm-12">
							 	<textarea class="custom_ckeditor" name="cuerpo_interno" id="cuerpo_interno" rows="10" cols="80">
					               
					            </textarea>
							</div>
						</div>
						<div class="row">
							<div class="col-sm-12"> <div id="mensaje4" class="errores">Selecciona descripción</div></div>
						</div>   
						<br>		 	
						<div class="row"> 
							<div class="col-sm-12">
								<div style="margin-top:20px">
									<a class="btn btn-default" href="casosexito.php" role="button">Regresar</a>						            
						            <input class="submit btn btn-default" id="submitBtn" type="submit" value="Grabar">
								</div>
							</div>					               
						</div>		                    
					</form>
					<div id="imgContainer_cabe">
	            	</div>
	            	<div id="imgContainer_redes">
	            	</div> 
				</div>
		    </div>
	  	</div>
	</div>			

	<script src="js/jqueryvalidation/jquery.js"></script>    
    <script type="text/javascript" src="js/ckeditor/function_ckeditor.min.js"></script>
    <?php include("include/footer.php");?>
    <script type="text/javascript" src="js/validation.js"></script>
    <?php
          include("include/ckeditor.php");
    ?>
    <script src="js/jqueryvalidation/jquery.validate.min.js"></script>
    <script src="js/jqueryvalidation/additional-methods.js"></script>  
	</body>
</html> 	