怎么在商城中加入按商品編號搜索的功能?_動(dòng)易Cms教程
問題:如何在商城中加入按“商品編號”搜索的功能?
解決方法:
(1)在商城前臺加入按商品編號搜索,直接修改“搜索頁模板”,可以參考/help/SiteWeaver/1333.html
(2)在商城后臺加入按商品編號搜索,需要修改Admin目錄下的Admin_Product.asp文件
1、第179行
Response.Write "<form method='Get' name='SearchForm' action='" & FileName & "'>"
Response.Write "<td><b>高級查詢:</b>"
Response.Write "<select name='Field' size='1'>"
Response.Write "<option value='ProductName' selected>" & ChannelShortName & "名稱</option>"
Response.Write "<option value='ProductIntro'>" & ChannelShortName & "簡介</option>"
Response.Write "<option value='ProductExplain'>" & ChannelShortName & "介紹</option>"
Response.Write "<option value='ProductNum'>商品編號</option>"
Response.Write "<option value='ProducerName'>廠商</option>"
Response.Write "<option value='TrademarkName'>品牌/商標(biāo)</option>"
Response.Write "<option value='ID'>" & ChannelShortName & "ID</option>"
Response.Write "</select>"
Response.Write "<select name='ClassID'><option value=''>所有欄目</option>" & GetClass_Option(1, 0) & "</select>"
Response.Write "<input type='text' name='keyword' size='15' value='要害字' maxlength='50' onFocus='this.select();'>"
Response.Write "<input type='submit' name='Submit' value='搜索'>"
Response.Write "<input name='SearchType' type='hidden' id='SearchType' value='-1'>"
Response.Write "<input name='ManageType' type='hidden' id='ManageType' value='" & ManageType & "'>"
Response.Write "<input name='ChannelID' type='hidden' id='ChannelID' value='" & ChannelID & "'>"
Response.Write "</td></form>"
----增加了紅色的一行。
2、第460行
If Keyword <> "" Then
Select Case strField
Case "ProductName"
Querysql = Querysql & " and P.ProductName like '%" & Keyword & "%' "
Case "ProductIntro"
Querysql = Querysql & " and P.ProductIntro like '%" & Keyword & "%' "
Case "ProductExplain"
Querysql = Querysql & " and P.ProductExplain like '%" & Keyword & "%' "
Case "ProducerName"
Querysql = Querysql & " and P.ProducerName like '%" & Keyword & "%' "
Case "TrademarkName"
Querysql = Querysql & " and P.TrademarkName like '%" & Keyword & "%' "
Case "ProductNum"
Querysql = Querysql & " and P.ProductNum like '%" & Keyword & "%' "
Case Else
Querysql = Querysql & " and P.ProductName like '%" & Keyword & "%' "
- MAC錯(cuò)誤的解決方法
- 如何屏蔽動(dòng)易后臺導(dǎo)航里的某個(gè)功能菜單?
- 動(dòng)易.NET版本留言自動(dòng)選定欄目方法
- 動(dòng)易SiteFactoty整合Discuz!NT3.0
- 在任意位置獲取根節(jié)點(diǎn)ID標(biāo)簽
- 如何開啟SiteWeaver6.8的支持,反對功能
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之四----動(dòng)易系統(tǒng)安裝篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之三----數(shù)據(jù)庫篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之二----IIS、目錄環(huán)境配置篇
- 數(shù)據(jù)庫修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 如何安裝動(dòng)易.net程序權(quán)限配置
- 為什么提示對Windows系統(tǒng)文件夾下的Temp目錄沒有訪問權(quán)限?
動(dòng)易Cms教程教程Rss訂閱Cms教程搜索
動(dòng)易Cms教程推薦
- 如何修改默認(rèn)頻道的英文目錄名稱?
- 數(shù)據(jù)庫修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 動(dòng)易CMS的SEO優(yōu)化
- FLV視頻內(nèi)容頁直接播放標(biāo)簽制作和使用說明
- 動(dòng)易論壇『模板區(qū)』一些常用的修改問題和文章
- 關(guān)于增強(qiáng)會(huì)員修改文章功能權(quán)限
- 收銀臺里的郵箱是必填的,怎么可以刪除不用填寫?
- 我想在海之戀首頁模版的滑門中增加一個(gè)選項(xiàng)卡,該如何修改?
- 怎樣刪除會(huì)員中心的"更換空間版式"和【 查看效果 】?
- 安裝SiteFactory
- 相關(guān)鏈接:
- 教程說明:
動(dòng)易Cms教程-怎么在商城中加入按商品編號搜索的功能?
。