| <?php echo $paginator->numbers();?> |
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
+
+<div class="action">
+<?php
+ if (isset($this_system['System']['id'])) {
+ $system_id = $this_system['System']['id'];
+ } else {
+ $system_id = null;
+ }
+ $url = array(
+ 'controller' => 'character_sheets',
+ 'action' => 'add',
+ $system_id
+ );
+ echo $form->create('CharacterSheet', array('url' => $url, 'type' => 'get'));
+?>
+<?php echo $form->end(__('New CharacterSheet', true));?>
+</div>
</td>
<td>
<?php
- $file = $upfile->file(
- 'filter/xs',
- CorePlus::get_value($system, 'Attachment.0'),
- array(
- 'model_name' => 'System',
- 'mime_type' => 'original',
- 'nodata' => 'image',
- )
- );
- $system_img = $upfile->embed(
- $file,
- array(
- 'alt' => CorePlus::get_value($system, 'Attachment.0.alternative'),
- 'restrict' => array('image'),
- 'htmlAttributes' => array(
- 'target' => '_blank',
- ),
- )
- );
-
$system_name = $html->link($system['System']['name'], array('action' => 'view', $system['System']['id']), array(), false, false);
$total = $html->tag('span', sprintf(__('Total Characters %d', true), $system['System']['character_num']), array('class' => 'total_chara_num'));
echo $this->renderElement('character_picture_table', array(
- 'header' => $system_img. $system_name. $total,
+ 'header' => $system_name. $total,
'characters' => $system['Character'],
'previewVersion' => 's',
'colNum' => 5,
if ($system['System']['url']) {
$url = $system['System']['url'];
}
- $file = $upfile->file(
- 'filter/xs',
- CorePlus::get_value($system, 'Attachment.0'),
- array(
- 'model_name' => 'System',
- 'mime_type' => 'original',
- 'nodata' => 'image',
- )
- );
- $system_img = $upfile->embed(
- $file,
- array(
- 'linkTo' => $url,
- 'alt' => CorePlus::get_value($system, 'Attachment.0.alternative'),
- 'restrict' => array('image'),
- 'htmlAttributes' => array(
- 'target' => '_blank',
- ),
- )
- );
$system_link = null;
if (isset($system['System']['url'])) {
)
);
+ $body = $system['System']['detail']." ";
+ $file = $upfile->file(
+ 'filter/l',
+ CorePlus::get_value($system, 'Attachment.0'),
+ array(
+ 'model_name' => 'System',
+ 'mime_type' => 'original',
+ )
+ );
+ $system_img = $upfile->embed(
+ $file,
+ array(
+ 'linkTo' => $url,
+ 'alt' => CorePlus::get_value($system, 'Attachment.0.alternative'),
+ 'restrict' => array('image'),
+ 'htmlAttributes' => array(
+ 'target' => '_blank',
+ ),
+ )
+ );
+ if (!empty($system_img)) {
+ $body = $html->tag('table', $html->tableCells(array(
+ $system_img,
+ $body
+ )));
+ }
+
$footer = $html->tag(
'blockquote',
$system['System']['copyright'],
'</ul>';
echo $this->renderElement('box', array(
- 'header' => $system_img. $system_name. $public. $system_link. $npc_use,
- 'body' => $system['System']['detail']." ",
+ 'header' => $system_name. $public. $system_link. $npc_use,
+ 'body' => $body,
'footer' => $footer,
));
?>
}
}
+ $footer = null;
+
echo $this->renderElement('box', array(
'header' =>$header,
'body' => $body,
?>
<div class="systemList">
<?php
- $file = $upfile->file(
- 'filter/xs',
- CorePlus::get_value($system, 'Attachment.0'),
- array(
- 'model_name' => 'System',
- 'mime_type' => 'original',
- 'nodata' => 'image',
- )
- );
- $system_img = $upfile->embed(
- $file,
- array(
- 'alt' => CorePlus::get_value($system, 'Attachment.0.alternative'),
- 'restrict' => array('image'),
- 'htmlAttributes' => array(
- 'target' => '_blank',
- ),
- )
- );
-
$system_name = $html->link($system['System']['name'], array('action' => 'view', $system['System']['id']), array(), false, false);
$total = $html->tag('span', sprintf(__('Total Characters %d', true), $system['System']['character_num']), array('class' => 'total_chara_num'));
echo $this->renderElement('character_picture_table', array(
- 'header' => $system_img. $system_name. $total,
+ 'header' => $system_name. $total,
'characters' => $system['Character'],
'previewVersion' => 's',
'colNum' => 8,
if ($system['System']['url']) {
$url = $system['System']['url'];
}
+
+ $body = $system['System']['detail']." ";
$file = $upfile->file(
- 'filter/xs',
+ 'filter/l',
CorePlus::get_value($system, 'Attachment.0'),
array(
'model_name' => 'System',
'mime_type' => 'original',
- 'nodata' => 'image',
)
);
$system_img = $upfile->embed(
),
)
);
+ if (!empty($system_img)) {
+ $body = $html->tag('table', $html->tableCells(array(
+ $system_img,
+ $body
+ )));
+ }
$system_link = null;
if (isset($system['System']['url'])) {
$footer = null;
echo $this->renderElement('box', array(
- 'header' => $system_img. $system_name. $system_link,
- 'body' => $system['System']['detail']." ",
+ 'header' => $system_name. $system_link,
+ 'body' => $body,
'footer' => $footer,
));
?>