dedecms按栏目分类搜索功能的实现方法
<p class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>代码如下:</p>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
<form action="{dede:field name='phpurl'/}/search.php" name="formsearch"> <br>
<div class="form"> <br>
<h4>搜索</h4> <br>
<input type="hidden" name="kwtype" value="0" /> <br>
<input type="hidden" name="searchtype" value="titlekeyword" /> <br>
<input name="keyword" type="text" class="search-keyword" id="search-keyword" /> <br>
<select name="typeid" class="search-option" id="typeid"> <br>
<option value='0' selected='1'>全部栏目</option> <br>
{dede:channelartlist typeid='top' } <br>
{dede:type} <option value=''></option>{/dede:type} <br>
{dede:channel type='son' noself='yes'} <br>
<option value=''>-</option> <br>
{/dede:channel} <br>
{/dede:channelartlist} <br>
</select><button type="submit" class="search-submit">搜索</button> <br>
</div> <br>
</form> </p>
頁:
[1]