zentaopms/module/search/view/m.index.html.php
2023-05-16 10:47:08 +08:00

53 lines
1.9 KiB
PHP

<?php
/**
* The index mobile view file of search module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
* @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Yidong Wang <yidong@cnezsoft.com>
* @package search
* @version $Id$
* @link http://www.zentao.net
*/
$lang->search->menu = array();
?>
<?php include '../../common/view/m.header.html.php';?>
<style>
#searchForm .title{padding:10px 20px 0px 20px;}
#searchForm #submit{border:1px solid #999;}
.list.with-divider.with-avatar>.item:before{left:0;}
</style>
<form method='post' action='<?php echo inlink('index')?>' id='searchForm'>
<div class='heading gray'>
<div class='title'>
<div class='control-group'>
<?php echo html::input('words', $words, "class='input'")?>
<?php echo html::submitButton($lang->search->common)?>
</div>
</div>
</div>
</form>
<div id='page' class='list-with-actions'>
<div class='list with-divider with-avatar'>
<?php foreach($results as $object):?>
<?php $objectType = $object->objectType == 'case' ? 'testcase' : $object->objectType;?>
<?php if(!in_array($objectType, $config->noWebModules)):?>
<a href='<?php echo $object->url;?>' class="item item-contract multi-lines">
<div class="content">
<span class="title"><?php echo $object->title?></span>
<?php echo "<small class='muted'>[{$lang->searchObjects[$objectType]} #{$object->objectID}]</small> ";?>
<div class='muted'><?php echo $object->summary?></div>
</div>
</a>
<?php endif;?>
<?php endforeach;?>
</div>
<nav class='nav justified pager'>
<?php $pager->show($align = 'justify');?>
</nav>
</div>
<script>
$(function(){$('body').removeClass('with-nav-top');})
</script>
<?php include '../../common/view/m.footer.html.php';?>