PageRenderTime 35ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/hashing/basercms
PHP | 63 lines | 40 code | 5 blank | 18 comment | 4 complexity | 40a0bbf24c024923cc7dd7ff467db8da 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.plugins.feed.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. <?php if($this->action != 'admin_add'): ?>
  22. <div class="section">
  23. <h2 id="headFeedDetail">フィード一覧</h2>
  24. <table cellpadding="0" cellspacing="0" class="list-table" id="ListTable">
  25. <thead>
  26. <tr>
  27. <th scope="col" style="width:160px" class="list-tool">
  28. <div>
  29. <?php $bcBaser->link($bcBaser->getImg('admin/btn_add.png', array('width' => 69, 'height' => 18, 'alt' => '新規追加', 'class' => 'btn')), array('controller' => 'feed_details', 'action' => 'add', $bcForm->value('FeedConfig.id'))) ?>
  30. </div>
  31. <?php if($bcBaser->isAdminUser()): ?>
  32. <div>
  33. <?php echo $bcForm->checkbox('ListTool.checkall', array('title' => '一括選択')) ?>
  34. <?php echo $bcForm->input('ListTool.batch', array('type' => 'select', 'options' => array('del' => '削除'), 'empty' => '一括処理')) ?>
  35. <?php echo $bcForm->button('適用', array('id' => 'BtnApplyBatch', 'disabled' => 'disabled')) ?>
  36. </div>
  37. <?php endif ?>
  38. </th>
  39. <th scope="col">フィード名</th>
  40. <th scope="col">カテゴリフィルター</th>
  41. <th scope="col">キャッシュ時間</th>
  42. <th scope="col">登録日<br />更新日</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <?php if(!empty($feedConfig['FeedDetail'])): ?>
  47. <?php foreach($feedConfig['FeedDetail'] as $feedDetail): ?>
  48. <?php $bcBaser->element('feed_details/index_row', array('data' => $feedDetail)) ?>
  49. <?php endforeach; ?>
  50. <?php else: ?>
  51. <tr>
  52. <td colspan="6"><p class="no-data">データが見つかりませんでした追加するボタンをクリックしてフィード詳細を登録してください</p></td>
  53. </tr>
  54. <?php endif; ?>
  55. </tbody>
  56. </table>
  57. </div>
  58. <?php endif ?>