PageRenderTime 54ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/baser/plugins/feed/views/elements/admin/feed_configs/index_list.php

https://github.com/hashing/basercms
PHP | 56 lines | 36 code | 2 blank | 18 comment | 2 complexity | 70d7128479ea462cbb4193a4691e64ec 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. <table cellpadding="0" cellspacing="0" class="list-table" id="ListTable">
  22. <thead>
  23. <tr>
  24. <th style="width:160px" class="list-tool">
  25. <div>
  26. <?php $bcBaser->link($bcBaser->getImg('admin/btn_add.png', array('width' => 69, 'height' => 18, 'alt' => '新規追加', 'class' => 'btn')), array('action' => 'add')) ?>
  27. </div>
  28. <?php if($bcBaser->isAdminUser()): ?>
  29. <div>
  30. <?php echo $bcForm->checkbox('ListTool.checkall', array('title' => '一括選択')) ?>
  31. <?php echo $bcForm->input('ListTool.batch', array('type' => 'select', 'options' => array('del' => '削除'), 'empty' => '一括処理')) ?>
  32. <?php echo $bcForm->button('適用', array('id' => 'BtnApplyBatch', 'disabled' => 'disabled')) ?>
  33. </div>
  34. <?php endif ?>
  35. </th>
  36. <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>
  37. <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>
  38. <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' => '降順')).' 表示件数'), 'display_number', array('escape' => false, 'class' => 'btn-direction')) ?></th>
  39. <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 />
  40. <?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>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <?php if(!empty($feedConfigs)): ?>
  45. <?php foreach($feedConfigs as $data): ?>
  46. <?php $bcBaser->element('feed_configs/index_row', array('data' => $data)) ?>
  47. <?php endforeach; ?>
  48. <?php else: ?>
  49. <tr>
  50. <td colspan="7"><p class="no-data">データが見つかりませんでした</p></td>
  51. </tr>
  52. <?php endif; ?>
  53. </tbody>
  54. </table>