PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/plugins/blog/views/elements/admin/searches/blog_posts_index.php

https://github.com/hashing/basercms
PHP | 40 lines | 21 code | 1 blank | 18 comment | 3 complexity | 75eac8796e4fdd8c2fca440af2ec0345 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. $blogCategories = $bcForm->getControlSource('BlogPost.blog_category_id',array('blogContentId'=>$blogContent['BlogContent']['id']));
  21. $blogTags = $bcForm->getControlSource('BlogPost.blog_tag_id');
  22. $users = $bcForm->getControlSource("BlogPost.user_id");
  23. ?>
  24. <?php echo $bcForm->create('BlogPost',array('url'=>array('action'=>'index',$blogContent['BlogContent']['id']))) ?>
  25. <p>
  26. <span><?php echo $bcForm->label('BlogPost.name', 'タイトル') ?> <?php echo $bcForm->input('BlogPost.name', array('type' => 'text', 'size' => '30')) ?></span>
  27. <?php if($blogCategories): ?>
  28. <span><?php echo $bcForm->label('BlogPost.blog_category_id', 'カテゴリー') ?> <?php echo $bcForm->input('BlogPost.blog_category_id', array('type' => 'select', 'options' => $blogCategories, 'escape'=>false, 'empty' => '指定なし')) ?></span> 
  29. <?php endif ?>
  30. <?php if($blogContent['BlogContent']['tag_use'] && $blogTags): ?>
  31. <span><?php echo $bcForm->label('BlogPost.blog_tag_id', 'タグ') ?> <?php echo $bcForm->input('BlogPost.blog_tag_id', array('type' => 'select', 'options' => $blogTags, 'escape' => false, 'empty' => '指定なし')) ?></span> 
  32. <?php endif ?>
  33. <span><?php echo $bcForm->label('BlogPost.status', '公開設定') ?> <?php echo $bcForm->input('BlogPost.status', array('type' => 'select', 'options' => $bcText->booleanMarkList(), 'empty' => '指定なし')) ?></span> 
  34. <span><?php echo $bcForm->label('BlogPost.user_id', '作成者') ?> <?php echo $bcForm->input('BlogPost.user_id', array('type' => 'select', 'options' => $users, '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>