<form action="{dede:field name='phpurl'/}/search.php" name="formsearch"> <div class="form"> <input type="hidden" name="kwtype" value="0" /> <input name="keyword" type="text" class="search-keyword" id="search-keyword" /> <select name="typeid" class="search-option" id="typeid"> <option value='0' selected='1' class="search-xl">全部欄目</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="search-submit">站內(nèi)搜索</button> </div> </form> |
<form action="{dede:global.cfg_cmsurl/}/plus/search.php" method="get" id="globalsearchform"> <div class="globalsearchform"> <input name="q" type="text" class="input" id="globalsearchform_key" name="key" value="輸入關(guān)鍵詞搜索產(chǎn)品..." onfocus="if(this.value=='輸入關(guān)鍵詞搜索產(chǎn)品...'){this.value='';}" onblur="if(this.value==''){this.value='輸入關(guān)鍵詞搜索產(chǎn)品...';}"> </div> <div class="globalsearchformselect"> <select name="typeid" class="search-option" id="typeid"> {dede:channelartlist typeid='9,10'}{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> </div> <div class="globalsearchform1"> <input type="image" class="imgbutton" src="{dede:global.cfg_templets_skin/}/images/searchr.png" id="button" name="imageField"> </div> </form> |
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢怎么實現(xiàn)下拉搜索指定欄目功能?