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

/baser/views/elements/admin/contents/index_list.php

https://github.com/hashing/basercms
PHP | 66 lines | 44 code | 4 blank | 18 comment | 2 complexity | 70e71e5bf19e94c457f2606288cab00d 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 sort-table" id="ListTable">
  25. <thead>
  26. <tr>
  27. <th class="list-tool">
  28. <div>
  29. <?php $bcBaser->link($bcBaser->getImg('admin/btn_add.png', array('width' => 69, 'height' => 18, 'alt' => '新規追加', 'class' => 'btn')), array('action' => 'add')) ?>
  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>タイプ<br />カテゴリー</th>
  41. <th>タイトル</th>
  42. <th>コンテンツ内容</th>
  43. <th>公開状態</th>
  44. <th>登録日<br />更新日</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <?php if(!empty($datas)): ?>
  49. <?php $count=0; ?>
  50. <?php foreach($datas as $data): ?>
  51. <?php $bcBaser->element('contents/index_row', array('data' => $data, 'count' => $count)) ?>
  52. <?php $count++; ?>
  53. <?php endforeach; ?>
  54. <?php else: ?>
  55. <tr>
  56. <td colspan="8"><p class="no-data">データが見つかりませんでした</p></td>
  57. </tr>
  58. <?php endif; ?>
  59. </tbody>
  60. </table>
  61. <!-- list-num -->
  62. <?php $bcBaser->element('list_num') ?>