<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>

<div class="content-wrapper">
	<section class="content-header">
		<?php echo $pagetitle; ?>
		<?php echo $breadcrumb; ?>
	</section>
	<section class="content">
		<div class="row">
			<div class="filterable">
				<div class="col-md-12">
					<div class="box">
						<div class="box-header with-border">
							<h3 class="box-title"><?php echo anchor('man_espacial/geocolonias/geocolonias/create', '<i class="fa fa-plus"></i> '. lang('geocolonias_create'), array('class' => 'btn btn-block btn-primary btn-flat')); ?></h3>
						</div>
						<div class="box-body">
							<div style="overflow-x: scroll;">
							<table id="tabla_geocolonia" class="table table-striped table-hover">
								<thead>
									<tr>
										<th><?php echo lang('geocolonias_dpto_cod');?></th>
										<th><?php echo lang('geocolonias_dist_cod');?></th>
										<th><?php echo lang('geocolonias_col_cod');?></th>
										<th><?php echo lang('geocolonias_id_codgeo');?></th>
										<th><?php echo lang('geocolonias_col_desc');?></th>
										<th></th>
									</tr>
									<tr>
									<?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'form-create_geocolonia')); ?>
										<th><input id="dpto_cod" name="dpto_cod" type="text" class="form-control" 
										placeholder="<?php echo lang('geocolonias_dpto_cod');?>" 
										value="<?php if (isset($_SESSION['arraywhere_geocolonia']['dpto_cod'])) 
													 {	
														echo $_SESSION['arraywhere_geocolonia']['dpto_cod'];
													 }else{
														echo '';
													 } ?>"
										enable autofocus></th>

										<th><input id="dist_cod" name="dist_cod" type="text" class="form-control" 
										placeholder="<?php echo lang('geocolonias_dist_cod');?>" 
										value="<?php if (isset($_SESSION['arraywhere_geocolonia']['dist_cod'])) 
													 {	
														echo $_SESSION['arraywhere_geocolonia']['dist_cod'];
													 }else{
														echo '';
													 } ?>"
										enable></th>

										<th><input id="col_cod" name="col_cod" type="text" class="form-control" 
										placeholder="<?php echo lang('geocolonias_col_cod');?>" 
										value="<?php if (isset($_SESSION['arraywhere_geocolonia']['col_cod'])) 
													 {	
														echo $_SESSION['arraywhere_geocolonia']['col_cod'];
													 }else{
														echo '';
													 } ?>"
										enable></th>

										<th><input id="id_codgeo" name="id_codgeo" type="text" class="form-control" 
										placeholder="<?php echo lang('geocolonias_id_codgeo');?>" 
										value="<?php if (isset($_SESSION['arraywhere_geocolonia']['id_codgeo'])) 
													 {	
														echo $_SESSION['arraywhere_geocolonia']['id_codgeo'];
													 }else{
														echo '';
													 } ?>"
										enable></th>

										<th><input id="col_desc" name="col_desc" type="text" class="form-control" 
										placeholder="<?php echo lang('geocolonias_col_desc');?>" 
										value="<?php if (isset($_SESSION['arraywhere_geocolonia']['col_desc'])) 
													 {	
														echo $_SESSION['arraywhere_geocolonia']['col_desc'];
													 }else{
														echo '';
													 } ?>"
										enable></th>

										<th><?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => 'buscar', 'id' => 'boton'));
										 ?></th>

									<?php echo form_close();?>
									</tr>
								</thead>
								<tbody class="muestra_geocolonias">
									<?php foreach ($geocolonias as $values):?>
										<tr>
											<td><?php echo htmlspecialchars($values->dpto_cod, 	ENT_QUOTES, 'UTF-8'); ?></td>
											<td><?php echo htmlspecialchars($values->dist_cod, 	ENT_QUOTES, 'UTF-8'); ?></td>
											<td><?php echo htmlspecialchars($values->col_cod, 	ENT_QUOTES, 'UTF-8'); ?></td>
											<td><?php echo htmlspecialchars($values->id_codgeo, ENT_QUOTES, 'UTF-8'); ?></td>
											<td><?php echo htmlspecialchars($values->col_desc, 	ENT_QUOTES, 'UTF-8'); ?></td>
											<td>
												<?php echo anchor('man_espacial/geocolonias/geocolonias/edit/'.$values->gid, lang('actions_edit')); ?>
												<?php echo '&nbsp;';?>
                                                <?php echo anchor('man_espacial/geocolonias/geocolonias/delete/'.$values->gid, lang('actions_delete')); ?>
											</td>
										</tr>

									<?php endforeach;?>
								</tbody>
							</table>
							</div>
							<?php echo $pagination; ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
</div>



