OSDN Git Service

Indexで、type別出力
[trpgtools-onweb/cake-frame.git] / app / plugins / links / views / elements / link_index.ctp
index da245e9..1028129 100644 (file)
 echo $this->Html->css('/links/css/link.css');
 
 ?>
-<script language="JavaScript">
-<!--
-       var thumbnailweb_jump = '<?php echo $thumbnail['options']['thumbnailweb_']['jump']; ?>';
-       var thumbnailweb_target = '<?php echo $thumbnail['options']['thumbnailweb_']['target']; ?>';
-       var thumbnailweb_lpos = '<?php echo $thumbnail['options']['thumbnailweb_']['lpos']; ?>';
-       var thumbnailweb_lposv = '<?php echo $thumbnail['options']['thumbnailweb_']['lposv']; ?>';
-
-//-->
-</script>
 <div class="links index">
 <?php 
-$pagenator_options = array();
-
-$this->Paginator->options(array('url' => $this->passedArgs));
-
-$header = __('Links', true);
-
-$header .= $this->Html->tag('span',  
-       '['.$this->Html->link(__('Add Link', true), array(
-               'action' => 'add'
-       ), array(
-               'class' => 'edit'
-       )).']'
-);
 
-$header .= '<span class="linkSort">'. __('Sort', true). ' : ';
-       $header .= $this->PaginatorEx->sortAllow(__('Title', true), 'title', $pagenator_options);
-       $header .= $this->PaginatorEx->sortAllow(__('Owner', true), 'user_id', $pagenator_options);
-//     $header .= __('type', true);
-//     $header .= __('pickup', true);
-//     $header .= __('not_found', true);
-       $header .= $this->PaginatorEx->sortAllow(__('Modified', true), 'modified', $pagenator_options);
-$header .= '</span>';
-?>
-<div class="box full">
-<div class="boxHeader"><h2><span><?php echo $header; ?></h2></span></div>
-<div class="boxBody">
-
-<p>
-<?php
-echo $this->Paginator->counter(array(
-'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+echo $this->Html->tag('span',
+       $this->element('link_box', array(
+               'links' => $links['members'],
+       ),
+       array(
+               'id' => 'recentMembers',
+               'class' => 'recentBox inline',
+       )
 ));
-?>
-</p>
-
 
-<div class="paging">
-       <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
- |     <?php echo $this->Paginator->numbers();?>
- |
-       <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
-</div>
+echo $this->Html->tag('span',
+       $this->element('link_box', array(
+               'links' => $links['creaters'],
+       ),
+       array(
+               'id' => 'recentCreaters',
+               'class' => 'recentBox inline',
+       )
+));
 
-<?php foreach ($links as $link): ?>
-<?php
-echo $this->element('link_view', array(
-       'link' => $link,
-       'showType' => true,
-       'isDelete' => false,
-       'isAdmin' => $isAdmin,
+echo $this->Html->tag('span',
+       $this->element('link_box', array(
+               'links' => $links['portal'],
+       ),
+       array(
+               'id' => 'recentPortal',
+               'class' => 'recentBox inline',
+       )
 ));
-?>
-<?php endforeach; ?>
 
-<div class="paging">
-       <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
- |     <?php echo $this->Paginator->numbers();?>
- |
-       <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
-</div>
+echo $this->Html->tag('span',
+       $this->element('link_box', array(
+               'links' => $links['thanks'],
+       ),
+       array(
+               'id' => 'recentThanks',
+               'class' => 'recentBox inline',
+       )
+));
 
+echo $this->Html->tag('span',
+       $this->element('link_box', array(
+               'links' => $links['ring'],
+       ),
+       array(
+               'id' => 'recentRing',
+               'class' => 'recentBox inline',
+       )
+));
 
-       <p>
-       <?php
-       echo $this->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>