PageRenderTime 45ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/plugins/blog/views/elements/admin/blog_tags/index_list.php

https://github.com/hashing/basercms
PHP | 64 lines | 42 code | 4 blank | 18 comment | 3 complexity | 6fd90669a44e076aca497573598b6461 MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [ADMIN] ブログタグ一覧 テーブル
  5. *
  6. * PHP versions 5
  7. *
  8. * baserCMS : Based Website Development Project <http://basercms.net>
  9. * Copyright 2008 - 2012, baserCMS Users Community <http://sites.google.com/site/baserusers/>
  10. *
  11. * @copyright Copyright 2008 - 2012, baserCMS Users Community
  12. * @link http://basercms.net baserCMS Project
  13. * @package baser.views
  14. * @since baserCMS v 0.1.0
  15. * @version $Revision$
  16. * @modifiedby $LastChangedBy$
  17. * @lastmodified $Date$
  18. * @license http://basercms.net/license/index.html
  19. */
  20. ?>
  21. <!-- pagination -->
  22. <?php $bcBaser->element('pagination') ?>
  23. <!-- list -->
  24. <table cellpadding="0" cellspacing="0" class="list-table" id="ListTable">
  25. <thead>
  26. <tr>
  27. <th style="width:160px" class="list-tool">
  28. <div>
  29. <?php if($newCatAddable): ?>
  30. <?php $bcBaser->link($bcBaser->getImg('admin/btn_add.png', array('width' => 69, 'height' => 18, 'alt' => '新規追加', 'class' => 'btn')), array('action' => 'add')) ?>
  31. <?php endif ?>
  32. </div>
  33. <?php if($bcBaser->isAdminUser()): ?>
  34. <div>
  35. <?php echo $bcForm->checkbox('ListTool.checkall', array('title' => '一括選択')) ?>
  36. <?php echo $bcForm->input('ListTool.batch', array('type' => 'select', 'options' => array('del' => '削除'), 'empty' => '一括処理')) ?>
  37. <?php echo $bcForm->button('適用', array('id' => 'BtnApplyBatch', 'disabled' => 'disabled')) ?>
  38. </div>
  39. <?php endif ?>
  40. </th>
  41. <th><?php echo $paginator->sort(array('asc' => $bcBaser->getImg('admin/blt_list_down.png', array('alt' => '昇順', 'title' => '昇順')).' NO', 'desc' => $bcBaser->getImg('admin/blt_list_up.png', array('alt' => '降順', 'title' => '降順')).' NO'), 'id', array('escape' => false, 'class' => 'btn-direction')) ?></th>
  42. <th><?php echo $paginator->sort(array('asc' => $bcBaser->getImg('admin/blt_list_down.png', array('alt' => '昇順', 'title' => '昇順')).' ブログタグ名', 'desc' => $bcBaser->getImg('admin/blt_list_up.png', array('alt' => '降順', 'title' => '降順')).' ブログタグ名'), 'name', array('escape' => false, 'class' => 'btn-direction')) ?></th>
  43. <th><?php echo $paginator->sort(array('asc' => $bcBaser->getImg('admin/blt_list_down.png', array('alt' => '昇順', 'title' => '昇順')).' 登録日', 'desc' => $bcBaser->getImg('admin/blt_list_up.png', array('alt' => '降順', 'title' => '降順')).' 登録日'), 'created', array('escape' => false, 'class' => 'btn-direction')) ?><br />
  44. <?php echo $paginator->sort(array('asc' => $bcBaser->getImg('admin/blt_list_down.png', array('alt' => '昇順', 'title' => '昇順')).' 更新日', 'desc' => $bcBaser->getImg('admin/blt_list_up.png', array('alt' => '降順', 'title' => '降順')).' 更新日'), 'modified', array('escape' => false, 'class' => 'btn-direction')) ?></th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <?php if(!empty($datas)): ?>
  49. <?php foreach($datas as $data): ?>
  50. <?php $bcBaser->element('blog_tags/index_row', array('data' => $data)) ?>
  51. <?php endforeach; ?>
  52. <?php else: ?>
  53. <tr>
  54. <td colspan="4"><p class="no-data">データが見つかりませんでした</p></td>
  55. </tr>
  56. <?php endif; ?>
  57. </tbody>
  58. </table>
  59. <!-- list-num -->
  60. <?php $bcBaser->element('list_num') ?>