PageRenderTime 77ms CodeModel.GetById 30ms RepoModel.GetById 2ms app.codeStats 0ms

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

https://github.com/hashing/basercms
PHP | 62 lines | 42 code | 2 blank | 18 comment | 4 complexity | a4a6be03f654c8ba0f82663cfb9f3947 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. <!-- list -->
  22. <table cellpadding="0" cellspacing="0" class="list-table" id="ListTable">
  23. <thead>
  24. <tr>
  25. <th style="width:160px" class="list-tool">
  26. <div>
  27. <?php if($newCatAddable): ?>
  28. <?php $bcBaser->link($bcBaser->getImg('admin/btn_add.png', array('width' => 69, 'height' => 18, 'alt' => '新規追加', 'class' => 'btn')), array('action' => 'add' ,$blogContent['BlogContent']['id'])) ?>
  29. <?php endif ?>
  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>NO</th>
  40. <th>ブログカテゴリ名
  41. <?php if($bcBaser->siteConfig['category_permission']): ?>
  42. <br />管理グループ
  43. <?php endif ?>
  44. </th>
  45. <th>ブログカテゴリタイトル</th>
  46. <th>登録日<br />更新日</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <?php if(!empty($dbDatas)): ?>
  51. <?php foreach($dbDatas as $data): ?>
  52. <?php $bcBaser->element('blog_categories/index_row', array('data' => $data)) ?>
  53. <?php endforeach; ?>
  54. <?php else: ?>
  55. <tr>
  56. <td colspan="6"><p class="no-data">データが見つかりませんでした</p></td>
  57. </tr>
  58. <?php endif; ?>
  59. </tbody>
  60. </table>