<?php  
$this->load->helper('form');
$config = array('id' => 'cambiar_clave','role' => 'form', 'class' => 'form-horizontal');
echo form_open('usuarios/cambiar_clave/'.$id.'/'.$tipo,$config); 

$val_errors = validation_errors();
if ($val_errors!='') {
	echo "<div class='alert alert-danger'>";		
	echo validation_errors();
	echo "</div>";
}
?>
	                <!-- CONTENIDO -->                        
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <div class="row">
                                        <div class="col-md-6">
										<i class="fa fa-file-o"></i>
										<?=$this->lang->line('eap_pag_'.$this->uri->segment(1).'_'.$this->uri->segment(2));?>
                                        <b><?php echo $usuario['nombre'].' '.$usuario['apellido'] ?> (<?=$usuario['username']?>)</b>
                                        </div>
                                    </div>                                    
                                </div>
                                <!-- /.panel-heading -->
                                <div class="panel-body">
                                    <div class="panel-group" id="accordion-no">
										<!-- Cambiar Clave -->
										<div class="panel-body">
											<div class="form-group-sm">
											  <label class="control-label col-md-4">Nombre: </label>
											  <div class="col-md-8">
												<p class="form-control-static"> <?=$usuario['nombre']?></p>
											  </div>
											</div>
											<div class="form-group-sm">
											  <label class="control-label col-md-4">Apellido: </label>
											  <div class="col-md-8">
												<p class="form-control-static"> <?=$usuario['apellido']?></p>
											  </div>                                                      
											</div>
											<div class="form-group-sm">
											  <label class="control-label col-md-4">Usuario: </label>
											  <div class="col-md-8">
												<p class="form-control-static"> <?=$usuario['username']?></p>
											  </div>
											</div>
											<div class="form-group-sm <?php if(form_error('password')){echo 'has-error';} ?>">
											  <label class="control-label col-md-4">Nueva Contraseña: </label>
											  <div class="col-md-8">
												<input class="form-control" type="password" name="password" value="<?php echo set_value('password'); ?>" size="20" autofocus />
											  </div>
											</div>
											<div class="form-group-sm <?php if(form_error('password_conf')){echo 'has-error';} ?>">
											  <label class="control-label  col-md-4">Confirmar Contraseña: </label>
											  <div class="col-md-8">
												<input class="form-control" type="password" name="password_conf" value="<?php echo set_value('password_conf'); ?>" size="20" />
											  </div>
											</div>
											<div class="form-group-sm">
											  <label class="control-label col-md-4">Requiere Cambio de Password? </label>
											  <div class="col-md-8">
												<label class="radio-inline">
													<input type="radio" name="cambio_password" id="cambio_password" value="1" <?php echo set_radio('cambio_password', '1', TRUE); ?>>Si
												</label>
												<label class="radio-inline">
													<input type="radio" name="cambio_password" id="cambio_password" value="0" <?php echo set_radio('cambio_password', '0'); ?>>No
												</label>
											  </div>
											</div>											
										</div>
										<!-- !panel-body-->
                                    </div>
                                    <fieldset>
                                    <button name="guardar_clave_submit" type="submit" class="btn btn-primary" id="guardar_clave_submit"><i class="fa fa-save"></i> <?=$this->lang->line('eap_grl_guardar')?> </button>
                                    <button name="cancelar_submit" type="submit" class="btn btn-default"  id="cancelar_submit"><i class="fa fa-times"></i> <?=$this->lang->line('eap_grl_cancelar')?> </button>  
                                    </fieldset>
                                </div>
                                <!-- /.panel-body -->
                            </div>
                            <!-- /.panel -->
                        </div>
                        <!-- /.col-lg-9 -->
                    </div>
	                <!-- /.CONTENIDO -->
                            
</form>                                                            