- <!--搜索form表单:方法一-->
- <div class="contentBox mb0">
- <h5 class="h5Ttl01"><a href="#"><img src="/templets/default/img/index/h5_img04.png" height="57" width="1200" alt="合作客户 cooperative client" /></a></h5>
- <div class="inputBox clearfix">
- <form action="{dede:global.cfg_cmsurl/}/plus/search.php">
- <input type="text" name="q" value="输入公司名称" onfocus="if(value=='输入公司名称') {value=''}" onblur="if (value=='') {value='输入公司名称'}"/>
- <input onclick="document.forms[0].submit();" type="button" name="search" value="" />
- </form>
- </div>
- <!--搜索form表单:方法二-->
- <form name="formsearch" action="{dede:global.cfg_cmsurl/}/plus/search.php" autocomplete="off">
- <div class="form">
- <h4>搜索</h4>
- <input type="hidden" name="kwtype" value="0" />
- <input name="q" type="text" class="search-keyword" id="search-keyword" placeholder="在这里搜索..." value="在这里搜索..." onfocus="if(this.value=='在这里搜索...'){this.value='';}" onblur="if(this.value==''){this.value='在这里搜索...';}" />
- <input type="text" autocomplete="off" name="q" id="searchkey" placeholder="在这里搜索..." maxlength="60" onfocus="if (value =='在这里搜索...'){value =''}"onblur="if (value ==''){value='在这里搜索...'}">
- <select name="searchtype" class="search-option" id="search-option">
- <option value="title" selected='1'>检索标题</option>
- <option value="titlekeyword">智能模糊</option>
- </select>
- <button type="submit" class="search-submit">搜索</button>
- </div>
- </form>
- <!--打印搜索结果页-->
- <div class="imgBox clearfix">
- {dede:list pagesize ='12' channelid="1" addfields="link" }
- <h2><a href="[field:arcurl/]"><span>[field:title/]</span></h2>
- [field:description/]
- <span>[field:pubdate function="MyDate('Y-m-d',@me)"/]</span>
- <br/>
- <hr style="height:1px;border:none;border-top:1px dashed #424242;" />
- <br/>
- {/dede:list}
- </div>
手机端:
首先打开php文件plus/search.php
重命名一个plus/search_m.php代码一样
然后打开php文件include/arc.searchview.class.php
重命名include/arc.searchview.classm.php代码一样。
后面就是修改一下php文件了,打开search_m.php文件,里面第13行
require_once(DEDEINC."/arc.searchview.class.php");
修改为
require_once(DEDEINC."/arc.searchview.classm.php");
然后打开include/arc.searchview.classm.php文件,找到第131行
$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_m.htm";
- <!--搜索form表单:方法一-->
- <div class="contentBox mb0">
- <h5 class="h5Ttl01"><a href="#"><img src="/templets/default/img/index/h5_img04.png" height="57" width="1200" alt="合作客户 cooperative client" /></a></h5>
- <div class="inputBox clearfix">
- <form action="{dede:global.cfg_cmsurl/}/plus/search.php">
- <input type="text" name="q" value="输入公司名称" onfocus="if(value=='输入公司名称') {value=''}" onblur="if (value=='') {value='输入公司名称'}"/>
- <input onclick="document.forms[0].submit();" type="button" name="search" value="" />
- </form>
- </div>
- <!--搜索form表单:方法二-->
- <form name="formsearch" action="{dede:global.cfg_cmsurl/}/plus/search.php" autocomplete="off">
- <div class="form">
- <h4>搜索</h4>
- <input type="hidden" name="kwtype" value="0" />
- <input name="q" type="text" class="search-keyword" id="search-keyword" placeholder="在这里搜索..." value="在这里搜索..." onfocus="if(this.value=='在这里搜索...'){this.value='';}" onblur="if(this.value==''){this.value='在这里搜索...';}" />
- <input type="text" autocomplete="off" name="q" id="searchkey" placeholder="在这里搜索..." maxlength="60" onfocus="if (value =='在这里搜索...'){value =''}"onblur="if (value ==''){value='在这里搜索...'}">
- <select name="searchtype" class="search-option" id="search-option">
- <option value="title" selected='1'>检索标题</option>
- <option value="titlekeyword">智能模糊</option>
- </select>
- <button type="submit" class="search-submit">搜索</button>
- </div>
- </form>
- <!--打印搜索结果页-->
- <div class="imgBox clearfix">
- {dede:list pagesize ='12' channelid="1" addfields="link" }
- <h2><a href="[field:arcurl/]"><span>[field:title/]</span></h2>
- [field:description/]
- <span>[field:pubdate function="MyDate('Y-m-d',@me)"/]</span>
- <br/>
- <hr style="height:1px;border:none;border-top:1px dashed #424242;" />
- <br/>
- {/dede:list}
- </div>
手机端:
首先打开php文件plus/search.php
重命名一个plus/search_m.php代码一样
然后打开php文件include/arc.searchview.class.php
重命名include/arc.searchview.classm.php代码一样。
后面就是修改一下php文件了,打开search_m.php文件,里面第13行
require_once(DEDEINC."/arc.searchview.class.php");
修改为
require_once(DEDEINC."/arc.searchview.classm.php");
然后打开include/arc.searchview.classm.php文件,找到第131行
$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_m.htm";