dedecms按栏目分类搜索功能的实现方法
发布时间:2016-12-26 来源:查字典编辑
摘要:搜索全部栏目{dede:channelartlisttypeid='top'}{dede:type}[field:typename/]{/d...
<form action="{dede:field name='phpurl'/}/search.php" name="formsearch">
<div>
<h4>搜索</h4>
<input type="hidden" name="kwtype" value="0" />
<input type="hidden" name="searchtype" value="titlekeyword" />
<input name="keyword" type="text" id="search-keyword" />
<select name="typeid" id="typeid">
<option value='0' selected='1'>全部栏目</option>
{dede:channelartlist typeid='top' }
{dede:type} <option value='[field:id/]'>[field:typename/]</option>{/dede:type}
{dede:channel type='son' noself='yes'}
<option value='[field:id/]'>-[field:typename/]</option>
{/dede:channel}
{/dede:channelartlist}
</select><button type="submit">搜索</button>
</div>
</form>