⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 商城商店搜索.config

📁 Enterprise Template for BizIdea 2.0, with full pictures and aspx files.
💻 CONFIG
字号:
<root>
  <LabelType>搜索类</LabelType>
  <LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
  <LabelIntro>购物商城商品搜索</LabelIntro>
  <LabelDataType>static</LabelDataType>
  <LabelTemplate><![CDATA[  <div class="main_search">
    <select id="topnodeId" name="topnodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="4" /}</select><select id="topFieldOption" name="topFieldOption" size="1"><option value="title" selected>商品名称</option>
      <option value="content">商品简介</option>
      <option value="producerName">厂商</option>
      <option value="trademarkName">品牌/商标</option>
    </select><input id="topKeyword" onfocus="this.value='';" maxlength="100" size="30" value="" name="topKeyword" />
   <input id="topSubmit" style="border: 0px; width: 65px; height: 21px;" type="image" src="{PE.SiteConfig.applicationpath/}Skin/Default/Images/search_b.gif" name="topSubmit" onclick="topOnSearchCheckAndSubmit();" />
    <a href="{PE.SiteConfig.applicationpath/}shop/AdvancedSearch.aspx">高级搜索</a>
    <script language="javascript" type="text/javascript">
    function topOnSearchCheckAndSubmit(){
        var topKeyword = document.getElementById("topKeyword").value;
        if (topKeyword == '' || topKeyword == null) {
            alert("请填写您想搜索的关键词");
            return;
        }
        else {        
            var nodeSel = document.getElementById("topnodeId");
            var topFieldOptionSel = document.getElementById("topFieldOption");
            var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
            var topFieldOption = topFieldOptionSel.options[topFieldOptionSel.options.selectedIndex].value;
            window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=1&ModelId=5&nodeId=" + nodeId + "&keyword=" + escape(topKeyword) + "&fieldoption=" + topFieldOption;
        }
    }
    </script>
  </div>]]></LabelTemplate>
  <OutType>txt</OutType>
  <EnabelAjax>False</EnabelAjax>
</root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -