PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/views/contents/search.php

https://github.com/hashing/basercms
PHP | 51 lines | 29 code | 4 blank | 18 comment | 2 complexity | 79571fa84b49e6a3adb5f7b3081b4e2a MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * サイト内検索結果
  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. <h2 class="contents-head"><?php $bcBaser->contentsTitle() ?></h2>
  22. <div class="section">
  23. <?php if(!empty($paginator)): ?>
  24. <div class="search-result corner5">
  25. <?php echo $paginator->counter(array('format' => '<strong>'.implode(' ', $query).'</strong> で検索した結果 <strong>%start%~%end%</strong>件目 / %count% 件')) ?>
  26. </div>
  27. <?php endif ?>
  28. <!-- list-num -->
  29. <?php $bcBaser->element('admin/list_num') ?>
  30. </div>
  31. <?php if($datas): ?>
  32. <?php foreach($datas as $data): ?>
  33. <div class="section">
  34. <h3 class="result-head"><?php $bcBaser->link($bcBaser->mark($query, $data['Content']['title']), $data['Content']['url']) ?></h3>
  35. <p class="result-body"><?php echo $bcBaser->mark($query, $bcText->mbTruncate($data['Content']['detail'],100)) ?></p>
  36. <p class="result-link"><small><?php $bcBaser->link(fullUrl($data['Content']['url']), $data['Content']['url']) ?></small></p>
  37. </div>
  38. <?php endforeach ?>
  39. <?php else: ?>
  40. <div class="section">
  41. <p class="no-data">該当する結果が存在しませんでした</p>
  42. </div>
  43. <?php endif ?>
  44. <div class="clearfix section">
  45. <!-- pagination -->
  46. <?php $bcBaser->pagination('simple', array(), null, false) ?>
  47. </div>