<style> .container{ width:100%; max-width:1200px;} .search_box{border:2px solid #c30404;width:100%;margin:0 auto;border-radius:5px; margin-top:5px;} .btn{background:#c30404;border:0;width:8%;height:36px;float:right; color:#FFF;} select { border-radius: 10px; background-color: #FFFFFF; border: 1px solid #E8E8E8; padding: 7px 3px; width: 20%; line-height: normal;} input{-webkit-border-radius:2px; -moz-border-radius:2px;-o-border-radius:2px;border-radius:10px; background-color: #FFFFFF; border: 1px solid #E8E8E8; padding: 7px 0px; width:70%; line-height: normal; } </style> |
<article class="container"> <form action="{dede:field name='phpurl'/}/search.php" name="formsearch"> <p class="search_box"> <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' typeid=1,2,3,4,5} {dede:type} <option value='[field:id/]'>[field:typename/]</option>{/dede:type} {/dede:channelartlist} </select> <button type="submit" class="btn">搜索</button> </p> </form> </p> </article> |
<article class="container"> <form action="{dede:field name='phpurl'/}/search.php" name="formsearch"> <p class="search_box"> <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" class="btn">搜索</button> </p> </form> </p> </article> |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: dedecms织梦按照栏目分类进行搜索