40 lines
2.3 KiB
PHP
40 lines
2.3 KiB
PHP
<?php include '../../common/view/header.html.php';?>
|
|
<div class='row'>
|
|
<div class='col-md-12'>
|
|
<div class='clearfix'>
|
|
<div class='panel'>
|
|
<table class='table table-hover table-striped table-bordered tablesorter table-fixed'>
|
|
<thead>
|
|
<tr>
|
|
<?php $vars = "orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"; ?>
|
|
<th class='w-30px text-center'><?php echo $lang->device->index; ?></th>
|
|
<th class='w-50px text-center'><?php commonModel::printOrderLink('device', $orderBy, $vars, $lang->device->type); ?></th>
|
|
<th class='w-200px text-center'><?php commonModel::printOrderLink('deviceID', $orderBy, $vars, $lang->device->ID); ?></th>
|
|
<th class='w-90px text-center'><?php commonModel::printOrderLink('validUntil', $orderBy, $vars, $lang->device->validUntil); ?></th>
|
|
<th class='w-90px text-center'><?php commonModel::printOrderLink('lastLogin', $orderBy, $vars, $lang->device->lastLoginTime); ?></th>
|
|
<th class='w-90px text-center'><?php commonModel::printOrderLink('lastLogout', $orderBy, $vars, $lang->device->lastLogoutTime); ?></th>
|
|
<th class='w-30px text-center'><?php echo $lang->device->action; ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $index = 0; ?>
|
|
<?php foreach ($records as $record): ?>
|
|
<tr class='text-center'>
|
|
<td><?php echo ++$index + ($pager->pageID - 1) * intval($pager->recPerPage); ?></td>
|
|
<td><?php echo $lang->device->types->{$record->device}; ?></td>
|
|
<td><?php echo $record->deviceID; ?></td>
|
|
<td><?php echo $record->validUntil; ?></td>
|
|
<td><?php echo $record->lastLogin; ?></td>
|
|
<td><?php echo $record->lastLogout; ?></td>
|
|
<td><?php echo html::a($this->createLink('device', 'remove', "deviceType={$record->device}&deviceID={$record->deviceID}"), $lang->device->remove, "class='deleter'"); ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<div class='table-footer'><?php $pager->show(); ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php'; ?>
|