?? 商店高級搜索表單.config
字號:
<root>
<LabelType>搜索類</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>雅藍商品搜索</LabelIntro>
<LabelDataType>static</LabelDataType>
<LabelTemplate><![CDATA[ <div class="main_search">
<table>
<tr>
<td>
商品欄目:
</td>
<td>
<select name='nodeid' size='1'id="NodeId">
{PE.Label id="欄目分類下拉列表選項" nodeid="4" span="" class="" /}
</select>
</td>
</tr>
<tr>
<td>
商品名稱:
</td>
<td>
<input id="title" maxlength="100" size="30" name="title" />
</td>
</tr>
<tr>
<td>
商品簡介:
</td>
<td>
<input id="productintro" maxlength="100" size="30" name="productintro" />
</td>
</tr>
<tr>
<td>
商品詳細介紹:
</td>
<td>
<input id="productexplain" maxlength="100" size="30" name="productexplain" />
</td>
</tr>
<tr>
<td>
商品生產商:
</td>
<td>
<input id="producername" maxlength="100" size="30" name="producername" />
</td>
</tr>
<tr>
<td>
商品品牌/商標:
</td>
<td>
<input id="trademarkname" maxlength="100" size="30" name="trademarkname" />
</td>
</tr>
<tr>
<td>
商品價格(元):
</td>
<td>
<input id="lowprice" maxlength="100" size="30" name="lowprice" />
到
<input id="highprice" maxlength="100" size="30" name="highprice" />
</td>
</tr>
<tr>
<td>
更新時間:
</td>
<td>
<input id="begindate" maxlength="100" size="30" name="begindate" />
到
<input id="enddate" maxlength="100" size="30" name="enddate" />
</td>
</tr>
</table>
<div class="main_search_sub">
<input id="Submit" style="border: 0px; width: 65px; height: 21px;" type="image" src="Skin/Default/Images/search_b.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" /></div>
<script language="javascript" type="text/javascript">
function OnSearchCheckAndSubmit() {
var nodeSel = document.getElementById("NodeId");
var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
var title = document.getElementById("title").value;
var productintro = document.getElementById("productintro").value;
var productexplain = document.getElementById("productexplain").value;
var producername = document.getElementById("producername").value;
var trademarkname = document.getElementById("trademarkname").value;
var lowprice = document.getElementById("lowprice").value;
var highprice = document.getElementById("highprice").value;
var begindate = document.getElementById("begindate").value;
var enddate = document.getElementById("enddate").value;
if (CheckFloat(lowprice) && CheckFloat(highprice) && CheckDateTime(begindate) && CheckDateTime(enddate)) {
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&showtype=1&ModelId=5&nodeId=" + nodeId + "&title=" + escape(title) + "&productintro=" + escape(productintro) + "&productexplain=" + escape(productexplain) + "&producername=" + escape(producername) + "&trademarkname=" + escape(trademarkname) + "&lowprice=" + lowprice + "&highprice=" + highprice + "&begindate=" + escape(begindate) + "&enddate=" + escape(enddate);
}
}
function CheckDateTime(str) {
if (str != "") {
var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;
var r = str.match(reg);
if (r == null) {
alert("請輸入正確的日期格式!如:1900-01-01");
return false;
}
else {
return true;
}
}
return true;
}
function CheckFloat(str) {
if (str != "") {
var reg = /^\d+(\.\d+)?$/;
var r = str.match(reg);
if (r == null) {
alert("請輸入數字型值!");
return false;
}
else {
return true;
}
}
return true;
}
</script>
</div>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -