{:tpl head}
<div id="main">
 <div class="main_l bdr_1">
  <h2 id="position"><a href="{:ROOT_URL}">首页</a>文章搜索</h2>
  <form name="search" action="{:ROOT_PATH}index.php">
  <ul class="search_list_head">
   <li>
    <input type="text" name="q" value="{:$q}" size="48" />
	<select name='catid'>
	 <option value='0'>所有栏目</option>
	 {:Tag::tree("<option value='\$catid'\$selected>\$tab\$name</option>",$catid,$category)}
	</select>
    <input type="hidden" name="a" value="search" />
    <input type="hidden" name="c" value="article" />
    <input type="submit" name="s" value="搜索" class="button"/>
   </li>
   <li><strong>热门关键字：</strong>{:loop Tag::hotKeywords(10, 'article') $k}<a href="{:$search_url}&q={:urlencode($k['word'])}"{:if $q && strstr($q, $k['word'])} class="selected"{:/if}>{:Func::shtmlspecialchars($k['word'])}({:$k['num']})</a>{:/loop}</li>
  </ul>
  </form>
  <ul class="list">
   <!--{:loop $data $k $v}-->
   <li class="{:if $k%5 == 4}line{:/if}"><span class="date">{:Tag::date($v['addtime'], 1)}</span><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:$v['title']}</a></li>
   <!--{:loopelse}-->
   <li>您要查找的内容不存在！</li>
   <!--{:/loop}-->
  </ul>
  <!--{:if $pages}-->
  <div class="pages">{:$pages}</div>
  <!--{:/if}-->
 </div>
 <div class="main_r">
  <div class="bdr_1 mb_10">
   <h5>推荐文章</h5>
   <ul class="text_list">
    <!--{:loop Tag::listOne("model=article, num=15, type=elite") $v}-->
    <li><a href="{:$v['url']}" title="{:$v['title']}"{:$v['color']}>{:Tag::cut($v['title'],38,0)}</a></li>
    <!--{:/loop}-->
   </ul>
  </div>
 </div>
</div>
{:tpl foot}