<?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="col-md-12">
			 <div class="box">
				<div class="box box-primary">
					<!-- Primer bloque -->
					<div class="box-body">
						<?php 
						if ($message) {
							echo '<pre>';
							echo '<h4><b>Mensaje:</b></h4>';
							echo '<h5>' . $message . '</h5>';
							echo '</pre>';
						} 
						?>
<?php<--
/*
	id
	ip_address 
	username
	email
	active
	first_name
	last_name
	company
    phone 
    nick 
    dependencia 
    user_jefe_id 
    genero 

*/
?>



						<?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'form-edit_user')); ?>
							<div class="form-group">
								<div class="col-sm-2">
									<label for="id">Expediente</label>
									<?php echo form_input($id);?>
								</div>
								<div class="col-sm-1" style="vertical-align: top">
									<label for="ip_address">IP Adress</label>
									<?php echo form_input($ip_address);?>
								</div>
								<div class="col-sm-2">
									<label for="username">Nombre de Usario</label>
                                    <?php  
                                       
                                        echo form_input($username); ?>
								</div>							
								<div class="col-sm-2">
									<label for="email">Email</label>
									<?php  
									
									echo form_input($email); ?>
								</div>
								<div class="col-sm-2">
									<label for="active">Activo</label>
									<?php echo form_input($active);?>
								</div>

								<div class="col-sm-2">
									<label for="first_name">Nombre</label>
									<?php  
									
									echo form_input($first_name); ?>
								</div>

							</div>

							<div class="form-group">

								<div class="col-sm-2">
									<label for="last_name">Apellido</label>
									<?php  
									
									echo form_input($last_name); ?>
								</div>
								<div class="col-sm-2">
									<label for="company">Compañia</label>
									<?php  
									
									echo form_input($company); ?>
								</div>
								<div class="col-sm-2">
									<label for="phone">Telefono</label>
									<?php  
									
									echo form_input($phone); ?>
								</div>
								<div class="col-sm-2">
									<label for="nick">Nick</label>
									<?php  
									
									echo form_input($nick); ?>
								</div>
								<div class="col-sm-2">
									<label for="dependencia">Dependencia</label>
									<?php  
									
									echo form_input($dependencia); ?>
								</div>

							</div>

							<div class="form-group">


								<div class="col-sm-2">
									<label for="user_jefe_id">Usario del jefe</label>
									<?php  
									
									echo form_input($user_jefe_id); ?>
								</div>
								<div class="col-sm-2">
									<label for="genero">Genero</label>
									<?php  
									
									echo form_input($genero); ?>
								</div>
								
							</div>
							
							<hr></hr>
	
							<!-- Sección botones -->
							<div class="form-group">
								<div <div class="col-sm-offset-0 col-sm-10" align="center">
									<div class="">
										<?php echo anchor('users/users/verparcela_user_id/'.$id['value'], ' VISOR', array('class' => 'btn btn-primary btn-flat 	glyphicon glyphicon-eye-open')); ?>
										<?php echo '&nbsp;';?>
										<?php echo '&nbsp;';?>
										<?php echo '&nbsp;';?>
										<?php echo '&nbsp;';?>
										<?php echo '&nbsp;';?>
										<?php echo form_button(array('name' => 'accion','type' => 'submit','value' => '1','class' => 'btn btn-primary btn-flat', 'content' => 	'GRABAR CAMBIOS')); ?>
										
										<!-- Dar salida viejo 
										<?php //echo anchor('users/users/dar_salida_expe/'.$user_id.'/'.$user_id_user['value'	].'/'.$expe_gestion['value'].'/'.$expe_provdg['value'], 'DAR SALIDA', array('class' => 'btn 	btn-success btn-flat')); ?>-->
										<?php echo '&nbsp;';?>
										
										<?php echo anchor('users/users/', 'VOLVER', array('class' => 'btn btn-default btn-flat', 'content' => 'VOLVER')); ?>
									</div>

								</div>
							</div>
							<!-- Fin sección botones -->
							<hr></hr>

									
											
						<?php echo form_close();?>
					</div>
					<!-- Fin primer bloque -->
				</div>
			</div>
		</div>
	</div>
</section>
</div>
