1 <div class="characters index">
3 <?php if (isset($this_system)): ?>
4 <?php echo $html->link($this_system['System']['name'], array('controller' => 'systems', 'action' => 'view', $this_system['System']['id']), array(), false, false) ?>
6 <?php if (!empty($userSet)): ?>
9 sprintf(__("%s's", true), $userSet['User']['name']),
10 array('controller' => 'users', 'action' => 'view', $userSet['User']['id']), array(), false, false);
15 <?php __('Characters');?></h2>
18 $paginator->options(array('url' => $this->passedArgs));
20 echo $paginator->counter(array(
21 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
26 <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
27 | <?php echo $paginator->numbers();?> |
28 <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
33 <th><?php echo $paginator->sort('name');?></th>
34 <th><?php __('Picture');?></th>
35 <?php if (!isset($this_system) && !$site_configs['System.singleSystem']['value']): ?>
36 <th><?php echo $paginator->sort('system_id');?></th>
38 <?php if (empty($userSet)): ?>
39 <th><?php echo $paginator->sort(__('User Name', true), 'user_id');?></th>
41 <th><?php echo $paginator->sort('modified');?></th>
42 <th><?php echo $paginator->sort('status');?></th>
47 foreach ($characters as $character):
50 $class = ' class="altrow"';
53 <tr<?php echo $class;?>>
55 <?php echo $html->link($text->truncate($character['Character']['name'], 32), array('action' => 'view', $character['Character']['id']), array(), false, false); ?>
56 <?php if ($isOwner_userSet && $character['Character']['public_flag'] != 'public'): ?>
57 <span class="publicFlag"><?php echo $select->get_i18n_unpublic_flag($character['Character']['public_flag'], $public_flags) ?></span>
62 $picture = $this->renderElement('character_picture_image', array(
63 'basename' => $character['Character']['main_picture'],
65 'previewVersion' => 's',
67 'url' => array('controller' => 'characters', 'action' => 'view', $character['Character']['id']),
73 echo $html->div('attachments', $picture);
77 $character_list_url = array(
78 'controller' => 'characters',
82 if (!empty($userSet)) {
83 $character_list_url[] = $userSet['User']['id'];
87 <?php if (!isset($this_system) && !$site_configs['System.singleSystem']['value']): ?>
90 echo $html->link($character['System']['name'], array_merge($character_list_url, array('system:'.$character['System']['id'])), array(), false, false);
94 <?php if (empty($userSet)): ?>
97 $character_list_url[] = $character['User']['id'];
98 if (isset($this_system)) {
99 $character_list_url[] = 'system:'.$this_system['System']['id'];
101 echo $html->link($text->truncate($character['User']['name'], 16), $character_list_url, array(), false, false);
106 <?php echo $time->niceShort($character['Character']['modified'], array('format' => 'Y/m/d H:i')); ?>
109 <?php echo $select->get_i18n_status($character['Character']['status'], $status); ?>
117 <?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
118 | <?php echo $paginator->numbers();?> |
119 <?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
122 <div class="actions">
124 <li><?php echo $html->link(__('New Character', true), array('action' => 'add')); ?></li>