PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/hashing/basercms
PHP | 61 lines | 41 code | 2 blank | 18 comment | 3 complexity | a5a85d338f033b7455663c97497836ef 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 sort-table" id="ListTable">
  22. <thead>
  23. <tr>
  24. <th 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', $mailContent['MailContent']['id'])) ?>
  27. <?php if(!$sortmode): ?>
  28. <?php $bcBaser->link($bcBaser->getImg('admin/btn_sort.png', array('width' => 65, 'height' => 14, 'alt' => '並び替え', 'class' => 'btn')), array($mailContent['MailContent']['id'], 'sortmode' => 1)) ?>
  29. <?php else: ?>
  30. <?php $bcBaser->link($bcBaser->getImg('admin/btn_normal.png', array('width' => 65, 'height' => 14, 'alt' => 'ノーマル', 'class' => 'btn')), array($mailContent['MailContent']['id'], 'sortmode' => 0)) ?>
  31. <?php endif ?>
  32. </div>
  33. <?php if($bcBaser->isAdminUser()): ?>
  34. <div>
  35. <?php echo $bcForm->checkbox('ListTool.checkall', array('title' => '一括選択')) ?>
  36. <?php echo $bcForm->input('ListTool.batch', array('type' => 'select', 'options' => array('publish' => '有効', 'unpublish' => '無効', 'del' => '削除'), 'empty' => '一括処理')) ?>
  37. <?php echo $bcForm->button('適用', array('id' => 'BtnApplyBatch', 'disabled' => 'disabled')) ?>
  38. </div>
  39. <?php endif ?>
  40. </th>
  41. <th>NO</th>
  42. <th>フィールド名<br />項目名</th>
  43. <th>タイプ</th>
  44. <th>グループ名</th>
  45. <th>必須</th>
  46. <th>登録日<br />更新日</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <?php if(!empty($datas)): ?>
  51. <?php $count = 1; ?>
  52. <?php foreach($datas as $data): ?>
  53. <?php $bcBaser->element('mail_fields/index_row', array('data' => $data, 'count' => $count)) ?>
  54. <?php endforeach; ?>
  55. <?php else: ?>
  56. <tr><td colspan="9"><p class="no-data">データが見つかりませんでした</p></td></tr>
  57. <?php endif; ?>
  58. </tbody>
  59. </table>