<script language="javascript" type="text/javascript"> <!– function check(){ if(document.formsearch.channeltype.value=http://www.jutuibao.com/="3") document.formsearch.action="{dede:field name='PHPurl'/}/search_images.php" else document.formsearch.action="{dede:field name='phpurl'/}/search.php" } –> </script>2 、 更改搜索代码
<form name="formsearch" action="" *****ubmit="check();"><div class="form"><input type="hidden" name="kwtype" value=http://www.jutuibao.com/"0" /> <input name="q" type="text" class="search-keyword" id="search-keyword" value=http://www.jutuibao.com/"{dede:global name='keyword' function='RemoveXSS(@me)'/}" /> <select name="channeltype" id="channeltype"> <option value='http://www.jutuibao.com/1′ selected='1′>新闻</option> <option value='http://www.jutuibao.com/3′>软件</option> </select> <button type="submit" class="search-submit">搜索</button> </div> </form>
$tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/search.htm"; $tempfile = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']."/".$GLOBALS['cfg_df_style']."/search_images.htm";核心的修改已经结束了,剩下的就是在search_images.htm这个模板里自由发挥了。
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!