<?php
if (isset($con))
{
?>
	<!-- Modal -->
	<div class="modal fade" id="rubroModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	  	<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="myModalLabel"><i class='glyphicon glyphicon-edit'></i> Agregar nuevo rubro</h4>
			 	</div>
		  		<form class="form-horizontal" method="post" id="guardar_rubro" name="guardar_rubro">
					<div class="modal-body">
						<div id="resultados_ajax"></div>
						<div class="form-group">
							<input type="hidden" id="mod_id" name="mod_id">
							<label for="user_name" class="col-sm-3 control-label">Nombre del Rubro</label>
							<div class="col-sm-8">
							  	<input type="text" class="form-control" id="nombre_rubro" name="nombre_rubro" title="Nombre del rubro" required>
							</div>
						</div>
					</div>
		 			<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
						<button type="submit" class="btn btn-primary" id="guardar_datos">Guardar datos</button>
				  	</div>
			  	</form>
			</div>
	  	</div>
	</div>
<?php
}
?>