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

/baser/plugins/mail/views/elements/admin/mail_messages/index_list.php

https://github.com/hashing/basercms
PHP | 58 lines | 36 code | 4 blank | 18 comment | 2 complexity | 8e4b8b9e34dc4104cd7df794374d38b3 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 style="white-space: nowrap" class="list-tool">
  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 style="white-space: nowrap"><?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 style="white-space: nowrap" colspan="2"><?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')) ?></th>
  38. <th style="white-space: nowrap">受信内容</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <?php if($messages): ?>
  43. <?php $count=0; ?>
  44. <?php foreach ($messages as $data): ?>
  45. <?php $bcBaser->element('mail_messages/index_row', array('data' => $data, 'count' => $count)) ?>
  46. <?php $count++; ?>
  47. <?php endforeach; ?>
  48. <?php else: ?>
  49. <tr><td colspan="5"><p class="no-data">データが見つかりませんでした</p></td></tr>
  50. <?php endif ?>
  51. </tbody>
  52. </table>
  53. <!-- list-num -->
  54. <?php $bcBaser->element('list_num') ?>