'Html',
'Form',
'Javascript',
+ 'Text',
'Time',
'Settings',
'Media.Medium',
if (!is_array($contain)) {
$contain = array('');
}
- if (empty($recursive)) {
+ if (empty($contain)) {
$recursive = -1;
} else {
$recursive = Set::countDim($contain);
}
-
if (empty($order)) {
$order = array('Character.modified' => 'DESC');
}
<tr>
<th><?php echo $paginator->sort('id');?></th>
<th><?php echo $paginator->sort('name');?></th>
- <th><?php echo __('Picture', true);?></th>
+ <th><?php __('Picture');?></th>
<th><?php echo $paginator->sort('system_id');?></th>
- <th><?php echo $paginator->sort('modified');?></th>
<?php if (empty($userSet)): ?>
<th><?php echo $paginator->sort('user_id');?></th>
<?php endif; ?>
- <th><?php echo $paginator->sort('sort_order');?></th>
+ <th><?php echo $paginator->sort('modified');?></th>
<th><?php echo $paginator->sort('status');?></th>
<th><?php echo $paginator->sort('public_flag');?></th>
-</th>
</tr>
<?php
$i = 0;
<?php echo $character['Character']['id']; ?>
</td>
<td>
- <?php echo $html->link($character['Character']['name'], array('action' => 'view', $character['Character']['id'])); ?>
+ <?php echo $html->link($text->truncate($character['Character']['name'], 32), array('action' => 'view', $character['Character']['id'])); ?>
</td>
<td class="center">
<?php
'previewVersion' => 's',
'class' => '',
'url' => array('controller' => 'characters', 'action' => 'view', $character['Character']['id']),
- 'alternative' => $character['Character']['name'],
+ 'alternative' => '',
'nodata' => '',
)
));
<td>
<?php echo $html->link($character['System']['name'], array('controller' => 'systems', 'action' => 'view', $character['System']['id'])); ?>
</td>
-<td>
- <?php echo $character['Character']['modified']; ?>
-</td>
<?php if (empty($userSet)): ?>
<td>
<?php echo $html->link($character['User']['name'], array('controller' => 'characters', 'action' => 'admin_index', $character['User']['id']), array(), false, false); ?>
</td>
<?php endif; ?>
<td>
- <?php echo $character['Character']['sort_order']; ?>
+ <?php echo $time->niceShort($character['Character']['modified'], array('format' => 'Y/m/d H:i')); ?>
</td>
<td>
<?php echo $select->get_i18n_status($character['Character']['status'], $status); ?>
<table>
<tr>
<th><?php echo $paginator->sort('name');?></th>
- <th><?php echo __('Picture', true);?></th>
+ <th><?php __('Picture');?></th>
<th><?php echo $paginator->sort('system_id');?></th>
- <th><?php echo $paginator->sort('status');?></th>
<?php if (empty($userSet)): ?>
<th><?php echo $paginator->sort('user_id');?></th>
<?php endif; ?>
+ <th><?php echo $paginator->sort('status');?></th>
</th>
</tr>
<?php
?>
<tr<?php echo $class;?>>
<td>
- <?php echo $html->link($character['Character']['name'], array('action' => 'view', $character['Character']['id'])); ?>
+ <?php echo $html->link($text->truncate($character['Character']['name'], 32), array('action' => 'view', $character['Character']['id'])); ?>
<?php if ($isOwner_userSet && $character['Character']['public_flag'] != 'public'): ?>
<?php echo $select->get_i18n_public_flag($character['Character']['public_flag'], $public_flags) ?>
<?php endif; ?>
'previewVersion' => 's',
'class' => '',
'url' => array('controller' => 'characters', 'action' => 'view', $character['Character']['id']),
- 'alternative' => $character['Character']['name'],
+ 'alternative' => '',
'nodata' => '',
)
));
<td>
<?php echo $html->link($character['System']['name'], array('controller' => 'systems', 'action' => 'view', $character['System']['id'])); ?>
</td>
-<td>
- <?php echo $select->get_i18n_status($character['Character']['status'], $status); ?>
-</td>
<?php if (empty($userSet)): ?>
<td>
<?php echo $html->link($character['User']['name'], array('controller' => 'characters', 'action' => 'index', $character['User']['id']), array(), false, false); ?>
</td>
<?php endif; ?>
+<td>
+ <?php echo $select->get_i18n_status($character['Character']['status'], $status); ?>
+</td>
</tr>
<?php endforeach; ?>
</table>
}
if (isset($character['Character']['name'])) {
- $character_name = $character['Character']['name'];
+ $character_name = $text->truncate($character['Character']['name'], 16);
} elseif (isset($this->data['Character']['name'])) {
- $character_name = $this->data['Character']['name'];
+ $character_name = $text->truncate($this->data['Character']['name'], 16);
} elseif (isset($characterPicture['Character']['name'])) {
- $character_name = $characterPicture['Character']['name'];
+ $character_name = $text->truncate($characterPicture['Character']['name'], 16);
} else {
$character_name = null;
}
'options' => array(
'class' => 'mainImage',
'url' => $url,
- 'alt' => $character['Character']['name'],
+ 'alt' => $text->truncate($character['Character']['name'], 64),
)
));
?>
<div id="left">
<div class="image160">
-<div class="userName">
+<div class="User">
<?php
if (isset($target_user)) {
echo $target_user['User']['name'];
-} elseif (isset($user)) {
- echo $user['User']['name'];
-
}
?>
</div>
</a>
</h1></li>
<li id="siteDescription">スキン型キャラクターシート管理&公開システム</li>
+
<li id="loginMember">
<?php if ($user['User']['id']): ?>
-<?php echo $user['User']['name'] ?> さん
+
<?php else: ?>
<?php endif; ?>