<?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-header with-border">
                                </div>
                                <div class="box-body">
                                    <table id="tabla_listado" class="table table-striped table-hover">
                                        <thead>
                                            <tr>
											    <th><?php echo lang('sesiones_ip_address');?></th>
                                                <th><?php echo lang('sesiones_login');?></th>
                                                <th><?php echo lang('sesiones_time');?></th>
                                                <th><?php echo lang('sesiones_sesion');?></th>
                                                <th><?php echo lang('sesiones_user_id');?></th>
                                                <th><?php echo lang('sesiones_fecha_reg');?></th>
                                                <th><?php echo lang('sesiones_action');?></th>
                                            </tr>
                                        </thead>
                                        <tbody> 
                                        
<?php foreach ($sesiones as $values):?>
                                            <tr>
                                                <td><?php echo htmlspecialchars($values->ip_address, ENT_QUOTES, 'UTF-8');      ?></td>												
												<td><?php echo htmlspecialchars($values->login, ENT_QUOTES, 'UTF-8'); ?></td>	

                                                <td><?php echo htmlspecialchars($values->time, ENT_QUOTES, 'UTF-8'); ?></td>                                                
                                                <td><?php echo htmlspecialchars($values->sesion, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->user_id, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->fecha_reg, ENT_QUOTES, 'UTF-8'); ?></td>

                                                
                                                 <td align="center">
                                                    <?php echo anchor('sesiones/sesiones/mostrar/'.$values->user_id, lang('actions_see')); ?>
                                                    <?php echo '&nbsp;';?>

                                                    <?php echo anchor('sesiones/sesiones/delete/'.$values->user_id, lang('actions_delete')); ?>
                                                </td>

                                            </tr>
<?php endforeach;?>
                                        </tbody>
                                    </table>                                    
                                </div>
                            </div>
                         </div>
                    </div>
                </section>
            </div>


