HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux Bradford-Sitios 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/gestor-horarios.bradford/app/views/admin/trabajadores_detalles_view.php
<div class="contenido_view">		
	<div class="box box-primary">
		<?php echo form_open('', 'id="form_asignar"') ?>
		<div class="box-header">
			<?php echo $title ?>
		</div>
		<div class="box-body">
			<table class="table table-bordered table-striped table_search">
				<thead>
					<th>#</th>
					<th>Rut</th>
					<th>Nombres</th>
					<th>Cargo</th>
					<th>Kpi's</th>
					<th>Estado Kpi</th>
					<th>Competencias</th>
					<th>Estado Competencia</th>
					<th>Estado proveedor</th>
					<th></th>
				</thead>
				<?php foreach ($trabajadores as $key => $value): ?>
					<tr>
						<td><?php echo $key+1 ?></td>
						<td width="100px"><?php echo $value->rut ?></td>
						<td><?php echo ($value->nombres. ' '. $value->apellido_p. ' ' . $value->apellido_m) ?></td>
						<td><?php echo $value->cargo ?></td>
						<td><?php echo $value->evaluacion_kpi_tt. ' de '.$value->kpi_tt ?></td>
						<td><?= $value->evaluacion_kpi_tt == 0 && $value->kpi_tt == 0 ? 'NO_KPI' : ($value->evaluacion_kpi_tt  > $value->kpi_tt ? 'MAX_KPI' : ($value->evaluacion_kpi_tt  < $value->kpi_tt ? 'MIN_KPI' : 'OK_KPI')) ?></td>
						<td><?php echo $value->evaluacion_competencias_tt. ' de '.$value->competencias_tt ?></td>
						<td><?= $value->evaluacion_competencias_tt == 0 && $value->competencias_tt == 0 ? 'NO_COMPETENCIA' : ($value->evaluacion_competencias_tt  > $value->competencias_tt ? 'MAX_COMPETENCIA' : ($value->evaluacion_competencias_tt  < $value->competencias_tt ? 'MIN_COMPETENCIA' : 'OK_COMPETENCIA')) ?></td>
						<td><span class="badge"><?php echo $value->activo_proveedor == true ? 'Activo' : 'Inactivo' ?></span></td>
						<td>
							<a target="_blank" class="btn btn-primary btn-xs" href="<?php echo base_url('evaluacion/ver_trabajador/'.$value->id) ?>">Ver detalles</a>
						</td>
					</tr>
				<?php endforeach ?>
			</table>
		</div>
		<div class="box-footer clearfix"></div>
		<?php echo form_close() ?>
	</div>
</div>
<script src="<?php echo ASSETS ?>/js/jquery.dataTables.min.js"></script>    
    <script src="<?php echo ASSETS ?>/js/dataTables.bootstrap.min.js"></script>    
    <script src="<?php echo ASSETS ?>/js/responsive.dataTables.min.js"></script>

<?php //pre($trabajadores); ?>