PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/views/elements/admin/searches/contents_index.php

https://github.com/hashing/basercms
PHP | 41 lines | 22 code | 1 blank | 18 comment | 0 complexity | 94550488c38f74073b350368a9eb4623 MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [ADMIN] ユーザー一覧 検索ボックス
  5. *
  6. * PHP versions 4 and 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 2.0.0
  15. * @version $Revision$
  16. * @modifiedby $LastChangedBy$
  17. * @lastmodified $Date$
  18. * @license http://basercms.net/license/index.html
  19. */
  20. $priorities = array('0.1' => '0.1', '0.2' => '0.2', '0.3' => '0.3', '0.4' => '0.4', '0.5' => '0.5',
  21. '0.6' => '0.6', '0.7' => '0.7', '0.8' => '0.8', '0.9' => '0.9', '1.0' => '1.0');
  22. $categories = am(array('none' => 'カテゴリなし'), unserialize($bcBaser->siteConfig['content_categories']));
  23. $types = unserialize($bcBaser->siteConfig['content_types']);
  24. ?>
  25. <?php echo $bcForm->create('Content', array('url' => array('action' => 'index'))) ?>
  26. <?php echo $bcForm->hidden('Content.open', array('value' => true)) ?>
  27. <p>
  28. <span><?php echo $bcForm->label('Content.type', 'タイプ') ?> <?php echo $bcForm->input('Content.type', array('type' => 'select', 'options' => $types, 'empty' => '指定なし')) ?></span>
  29. <span><?php echo $bcForm->label('Content.category', 'カテゴリー') ?> <?php echo $bcForm->input('Content.category', array('type' => 'select', 'options' => $categories, 'empty' => '指定なし')) ?></span>
  30. <span><?php echo $bcForm->label('Content.keyword', 'キーワード') ?> <?php echo $bcForm->input('Content.keyword', array('type' => 'text', 'size' => '30')) ?></span>
  31. <span><?php echo $bcForm->label('Content.status', '公開状態') ?>
  32. <?php echo $bcForm->input('Content.status', array('type' => 'select', 'options' => $bcText->booleanMarkList(), 'empty' => '指定なし')) ?></span> 
  33. <span><?php echo $bcForm->label('Content.priority', '優先度') ?>
  34. <?php echo $bcForm->input('Content.priority', array('type' => 'select', 'options' => $priorities, 'empty' => '指定なし')) ?></span>
  35. </p>
  36. <div class="button">
  37. <?php $bcBaser->link($bcBaser->getImg('admin/btn_search.png', array('alt' => '検索', 'class' => 'btn')), "javascript:void(0)", array('id' => 'BtnSearchSubmit')) ?>
  38. <?php $bcBaser->link($bcBaser->getImg('admin/btn_clear.png', array('alt' => 'クリア', 'class' => 'btn')), "javascript:void(0)", array('id' => 'BtnSearchClear')) ?>
  39. </div>
  40. <?php $bcForm->end() ?>