-<div class="users listview">
+<div class="users admin_listview">
<fieldset class="searchFieldset" id="adminSearchFieldset">
<legend><?php __('Search User');?></legend>
<div class="search form">
<?php echo $form->input('name'); ?>
<?php echo $form->end('Search'); ?>
</div>
-<?php $paginator->options(array('url' => $searchword)); ?>
</fieldset>
<h2><?php __('Users List'); ?></h2>
<p>
+<?php
+$paginator->options(array('url' => $this->passedArgs));
+
+echo $paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+));
+?></p>
+
<div class="paging">
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
- | <?php echo $paginator->numbers();?>
+ | <?php echo $paginator->numbers();?> |
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
-</p>
-<p>
<table>
<tr>
- <th><?php echo $paginator->sort('id');?></th>
- <th><?php echo $paginator->sort('name');?></th>
- <th><?php echo $paginator->sort('group_id');?></th>
- <th><?php echo $paginator->sort('modefied');?></th>
- <th><?php echo $paginator->sort('username');?></th>
- <th><?php echo $paginator->sort('pcmail');?></th>
- <th><?php echo $paginator->sort('mobile_mail');?></th>
- <th><?php echo $paginator->sort('created');?></th>
- <th><?php echo $paginator->sort('useragent');?></th>
- <th><?php echo $paginator->sort('host');?></th>
+ <th><?php echo $paginator->sort(__('No', true), 'id');?></th>
+ <th><?php echo $paginator->sort(__('Name', true), 'name');?></th>
+ <th><?php echo $paginator->sort(__('Group', true), 'group_id');?></th>
+ <th><?php echo $paginator->sort(__('Last Access', true), 'modified');?></th>
+ <th><?php echo $paginator->sort(__('ID', true), 'username');?></th>
+ <th><?php echo $paginator->sort(__('PC', true), 'pcmail');?></th>
+ <th><?php echo $paginator->sort(__('Mobile', true), 'mobile_mail');?></th>
+ <th><?php echo $paginator->sort(__('Registed', true), 'created');?></th>
+ <th><?php echo $paginator->sort(__('UserAgent', true), 'useragent');?></th>
+ <th><?php echo $paginator->sort(__('Host', true), 'host');?></th>
</tr>
<?php
$i = 0;
<?php echo $user['User']['id']; ?>
</td>
<td>
- <?php echo $html->link($user['User']['name'], array('action' => 'view', $user['User']['id']), array(), false, false); ?>
+ <?php echo $html->link($text->truncate($user['User']['name'], 16), array('action' => 'view', $user['User']['id']), array(), false, false); ?>
</td>
<td>
<?php echo $user['User']['group_id']; ?>
</td>
<td>
- <?php echo $user['User']['modified']; ?>
+ <?php echo $time->niceShort($user['User']['modified'], array('format' => 'Y/m/d H:i')); ?>
</td>
<td>
<?php echo $user['User']['username']; ?>
<?php echo $user['User']['mobile_mail']; ?>
</td>
<td>
- <?php echo $user['User']['created']; ?>
+ <?php echo $time->niceShort($user['User']['created'], array('format' => 'Y/m/d H:i')); ?>
</td>
<td>
- <?php echo $user['User']['useragent']; ?>
+<?php
+if (strrpos($user['User']['useragent'], 'MSIE') !== false) {
+ echo $text->highlight($text->excerpt($user['User']['useragent'], 'MSIE', 28), 'MSIE');
+} elseif (strpos($user['User']['useragent'], 'Firefox') !== false) {
+ echo $text->highlight($text->excerpt($user['User']['useragent'], 'Firefox', 24), 'Firefox');
+} elseif (strpos($user['User']['useragent'], 'Chrome') !== false) {
+ echo $text->highlight($text->excerpt($user['User']['useragent'], 'Chrome', 24), 'Chrome');
+} elseif (strpos($user['User']['useragent'], 'Safari') !== false) {
+ echo $text->highlight($text->excerpt($user['User']['useragent'], 'Safari', 28), 'Safari');
+} elseif (strpos($user['User']['useragent'], 'Opera') !== false) {
+ echo $text->highlight($text->excerpt($user['User']['useragent'], 'Opera', 56), 'Opera');
+} else {
+ echo $text->truncate($user['User']['useragent'], 56);
+}
+?>
</td>
<td>
<?php echo $user['User']['host']; ?>
</div>
<div class="paging">
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
- | <?php echo $paginator->numbers();?>
+ | <?php echo $paginator->numbers();?> |
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
</p>
<h2><?php __('Users');?> <?php __('List');?></h2>
<p>
<?php
+$paginator->options(array('url' => $this->passedArgs));
+
echo $paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
));
<div class="paging">
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
- | <?php echo $paginator->numbers();?>
+ | <?php echo $paginator->numbers();?> |
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<table>
<tr>
-<th><?php echo $paginator->sort('id');?></th>
-<th><?php echo $paginator->sort('name');?></th>
-<th><?php echo $paginator->sort('modified');?></th>
+<th><?php echo $paginator->sort(__('ID', true), 'id');?></th>
+<th><?php echo $paginator->sort(__('Name', true), 'name');?></th>
+<th><?php echo $paginator->sort(__('Last Access', true), 'modified');?></th>
</tr>
<?php
$i = 0;
<?php echo $user['User']['id']; ?>
</td>
<td>
- <?php echo $html->link($user['User']['name'], array('action' => 'view', $user['User']['id']), array(), false, false); ?>
+ <?php echo $html->link($text->truncate($user['User']['name'], 16), array('action' => 'view', $user['User']['id']), array(), false, false); ?>
</td>
<td>
- <?php echo $user['User']['modified']; ?>
+ <?php echo $time->niceShort($user['User']['modified'], array('format' => 'Y/m/d H:i')); ?>
</td>
</tr>
<?php endforeach; ?>
</div>
<div class="paging">
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
- | <?php echo $paginator->numbers();?>
+ | <?php echo $paginator->numbers();?> |
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>