动易PowerEasy_SiteWeaver_CMS6.8搜索页标签【SearchResultList】参数详解
作者:我就是个世界
发表于:2010-11-08
[b]名称[/b] 【SearchResultList(参数)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】
[b]作用[/b] 显示搜索结果信息,用于显示搜索页中,显示各个图片的表格式详细信息列表
[b]类别[/b] 搜索页标签
[b]标签格式[/b] [code]【SearchResultList(TitleLen,UsePage,ContentLen)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】[/code]
[b]文字[/b] [b]文字[/b]
1 标题最多字符数,一个汉字=两个英文字符。若为0,则不显示标题;若为-1,则显示完整标题
2 是否分页显示,True为分页显示,False为不分页显示,每页显示的图片数量由MaxPerPage指定
3 内容最多字符数,一个汉字=两个英文字符。若为0,则不显示内容简介[separator]
[b]我的搜索页代码:[/b]
[code]
【ShowResult】
<div class="box"><!--高级搜索开始-->
<h2 class="b f14 white bg2">{$ResultTitle}</h2>
<div class="list">
【SearchResultList(90,True,50)】
<table style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 width="100%" border=0>
<tr>
<td width="10" valign="top" class="listbg"><img alt="普通文章" src="/Article/images/Article_common.gif"></td>
<td class="listbg"><a href="{$ArticleUrl}"alt="{$Title}">{$Title}</a></td>
<td align="center" width="80" class="listbg">{$Author}</td>
<td align="right" width="130" class="listbg">{$UpdateTime} </td>
<!-- <td align="left" width="70" class="listbg"><span class="b blue">浏览:</span> {$Hits}次 </td>
<td align="right" width="200" class="listbg"><span class="b red">关键字:</span>{$Keyword}</td> -->
</tr>
</table>
【/SearchResultList】
{$ShowPage}
</div>
</div><div class="blank8"></div>
<table cellSpacing=0 cellPadding=2 width="100%" align=center border=0 class="searchbar">
<tr>
<td align=middle width="19%"><IMG height=15 src="{$InstallDir}Images/checkarticle.gif" width=15 align=absMiddle> 站内{$ChannelShortName}搜索</td>
<td align=middle>
<script language='JavaScript' type='text/JavaScript' src='{$InstallDir}{$ChannelDir}/JS/ShowSearchForm.js'></script></td>
<td align=right><A href="{$InstallDir}{$ChannelDir}/Search.asp"><U>高级搜索</U></A></td>
</tr>
</table>
【/ShowResult】
[/code]
以下是引用内容:地址:http://www.yctvu.com.cn/H/index.asp?T=2
[code]
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<link href="style.css" type="text/css" rel="stylesheet">
<title></title>
</head><body leftmargin="4" rightmargin="4" topmargin="4" bottommargin="4" marginwidth="0" marginheight="0">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tbody><tr>
<td>
<table cellspacing="0" cellpadding="4" border="1" bordercolor="#AAAAAA" width="612">
<tbody><tr>
<th width="32">名称</th>
<td>【SearchResultList(参数)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】</td>
</tr>
<tr>
<th>作用</th>
<td>显示搜索结果信息,用于显示商品搜索页中,显示各个图片的表格式详细信息列表</td>
</tr>
<tr>
<th>类别</th>
<td>商城频道搜索页标签</td>
</tr>
</tbody></table>
</td>
</tr>
<tr><td height="1"></td></tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="1" bordercolor="#AAAAAA" width="612">
<tbody><tr>
<th width="22">标<br>签<br>简<br>介</th>
<td><textarea cols="94" rows="8" style="width:588;border:0;padding:4px;line-height:120%">【SearchResultList(参数列表)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】
多行数据【/SearchResultList】
作 用:来显示搜索结果信息,用于显示商品搜索页中,显示各个图片的表格式详细信息列表
参 数:1 TitleLen ----标题最多字符数,一个汉字=两个英文字符。若为0,则不显示
标题;若为-1,则显示完整标题
2 UsePage -----------是否分页显示,True为分页显示,False为不分页显示,每
页显示的图片数量由MaxPerPage指定
3 ContentLen ----内容最多字符数,一个汉字=两个英文字符。若为0,则不显示内
容简介
【Cols=数字|HTML代码】
例如:【Cols=3|<br>】
作用:平行显示三列后换行,再输出三列,如此循环.
【Rows=数字|HTML代码】
例如:【Rows=3|<font color=red>好图连边看</font>】
作用:显示三行后,输出"好图连连看",再输出的三行,如此循环.
注:【Cols=数字|HTML代码】或【Rows=数字|HTML代码】要放在【SearchResultList(参数列表)】与【SearchResultList(参数列表)】之间,且只能使用一次,不能重复出现
列表内容中的可用标签及含义:
{$ClassUrl} //得到当前栏目的链接地址
{$ClassID} //得到当前栏目的ID
{$ClassName} //显示当前栏目的名称
{$ParentDir} //得到当前栏目的父目录
{$ClassDir} //得到当前栏目的目录
{$ProductUrl} //得到商品的链接地址
{$ProductID} //得到商品的ID
{$ProductNum} //商品数量
{$UpdateTime} //显示更新时间
{$Stars} //推荐等级
{$ProducerName} //商品名称
{$TrademarkName} //品牌商标
{$ProductModel} //商品型号
{$ProductStandard} //商品规格
{$Hits} //点击数
{$Inputer} //录入者
{$Unit} //单位
{$Stocks} //库存
{$Property} //属性
{$Top} //显示固顶
{$Elite} //显示推荐
{$Hot} //显示热卖
{$ProductName} //商品名称
{$ProductIntro} //显示商品简介
{$ProductExplain} //显示商品说明
{$ProductThumb(width,height)} //产品缩略图,不填写参数时默认宽度为130,高度为90
{$Price_Original} //原始零售价
{$Price_Market} //显示市场价
{$ProductTypeName} //商品类别
{$Price} //显示商城价
{$BeginDate} //显示优惠开始日期
{$EndDate} //显示优惠结束日期
{$Discount} //降价折扣
{$LimitNum} //限够数量
{$Price_Member} //显示会员价
{$PresentExp} //购物积分
{$PresentPoint} //赠送点券
{$PresentMoney} //返还现金券
{$PointName} //点券名称
{$PointUnit} //点券单位</textarea></td>
</tr>
</tbody></table>
</td>
</tr>
<tr><td height="1"></td></tr>
<tr>
<td>
<table cellspacing="0" cellpadding="2" border="1" bordercolor="#AAAAAA" width="612">
<tbody><tr>
<th width="22">标<br>签<br>格<br>式</th>
<td colspan="2">
<script>
function get()
{
line='【SearchResultList(';
line=line+V0.value+',';
line=line+V1.value+',';
line=line+V2.value+')】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】';
clrar.value=line
}
</script>
<textarea cols="94" rows="5" name="clrar" style="width:588;padding:2px;line-height:120%">【SearchResultList(TitleLen,UsePage,ContentLen)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】</textarea>
</td></tr>
<tr><td colspan="3" align="center"><input type="button" value="选择并复制标签" onclick="clrar.createTextRange().execCommand("SelectAll");clrar.createTextRange().execCommand("Copy");"><br><input type="button" value="重新生成标签" onclick="get()"></td></tr>
<tr>
<th width="132" colspan="2">参数</th>
<th width="480">参数说明</th>
</tr>
<tr>
<td class="N1">1</td>
<td><input name="V0" value="TitleLen" onfocus="this.select()" style="width:120" size="20"></td>
<td>标题最多字符数,一个汉字=两个英文字符。若为0,则不显示标题;若为-1,则显示完整标题</td>
</tr>
<tr>
<td class="N1">2</td>
<td><input name="V1" value="UsePage" onfocus="this.select()" style="width:120" size="20"></td>
<td>是否分页显示,True为分页显示,False为不分页显示,每页显示的图片数量由MaxPerPage指定</td>
</tr>
<tr>
<td class="N1">3</td>
<td><input name="V2" value="ContentLen" onfocus="this.select()" style="width:120" size="20"></td>
<td>内容最多字符数,一个汉字=两个英文字符。若为0,则不显示内容简介</td>
</tr>
<tr><td colspan="3" align="center"><input type="button" value="重新生成标签" onclick="get()"></td></tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</body></html>
[/code]
[b]作用[/b] 显示搜索结果信息,用于显示搜索页中,显示各个图片的表格式详细信息列表
[b]类别[/b] 搜索页标签
[b]标签格式[/b] [code]【SearchResultList(TitleLen,UsePage,ContentLen)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】[/code]
[b]文字[/b] [b]文字[/b]
1 标题最多字符数,一个汉字=两个英文字符。若为0,则不显示标题;若为-1,则显示完整标题
2 是否分页显示,True为分页显示,False为不分页显示,每页显示的图片数量由MaxPerPage指定
3 内容最多字符数,一个汉字=两个英文字符。若为0,则不显示内容简介[separator]
[b]我的搜索页代码:[/b]
[code]
【ShowResult】
<div class="box"><!--高级搜索开始-->
<h2 class="b f14 white bg2">{$ResultTitle}</h2>
<div class="list">
【SearchResultList(90,True,50)】
<table style="WORD-BREAK: break-all" cellSpacing=0 cellPadding=0 width="100%" border=0>
<tr>
<td width="10" valign="top" class="listbg"><img alt="普通文章" src="/Article/images/Article_common.gif"></td>
<td class="listbg"><a href="{$ArticleUrl}"alt="{$Title}">{$Title}</a></td>
<td align="center" width="80" class="listbg">{$Author}</td>
<td align="right" width="130" class="listbg">{$UpdateTime} </td>
<!-- <td align="left" width="70" class="listbg"><span class="b blue">浏览:</span> {$Hits}次 </td>
<td align="right" width="200" class="listbg"><span class="b red">关键字:</span>{$Keyword}</td> -->
</tr>
</table>
【/SearchResultList】
{$ShowPage}
</div>
</div><div class="blank8"></div>
<table cellSpacing=0 cellPadding=2 width="100%" align=center border=0 class="searchbar">
<tr>
<td align=middle width="19%"><IMG height=15 src="{$InstallDir}Images/checkarticle.gif" width=15 align=absMiddle> 站内{$ChannelShortName}搜索</td>
<td align=middle>
<script language='JavaScript' type='text/JavaScript' src='{$InstallDir}{$ChannelDir}/JS/ShowSearchForm.js'></script></td>
<td align=right><A href="{$InstallDir}{$ChannelDir}/Search.asp"><U>高级搜索</U></A></td>
</tr>
</table>
【/ShowResult】
[/code]
以下是引用内容:地址:http://www.yctvu.com.cn/H/index.asp?T=2
[code]
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<link href="style.css" type="text/css" rel="stylesheet">
<title></title>
</head><body leftmargin="4" rightmargin="4" topmargin="4" bottommargin="4" marginwidth="0" marginheight="0">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tbody><tr>
<td>
<table cellspacing="0" cellpadding="4" border="1" bordercolor="#AAAAAA" width="612">
<tbody><tr>
<th width="32">名称</th>
<td>【SearchResultList(参数)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】</td>
</tr>
<tr>
<th>作用</th>
<td>显示搜索结果信息,用于显示商品搜索页中,显示各个图片的表格式详细信息列表</td>
</tr>
<tr>
<th>类别</th>
<td>商城频道搜索页标签</td>
</tr>
</tbody></table>
</td>
</tr>
<tr><td height="1"></td></tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="1" bordercolor="#AAAAAA" width="612">
<tbody><tr>
<th width="22">标<br>签<br>简<br>介</th>
<td><textarea cols="94" rows="8" style="width:588;border:0;padding:4px;line-height:120%">【SearchResultList(参数列表)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】
多行数据【/SearchResultList】
作 用:来显示搜索结果信息,用于显示商品搜索页中,显示各个图片的表格式详细信息列表
参 数:1 TitleLen ----标题最多字符数,一个汉字=两个英文字符。若为0,则不显示
标题;若为-1,则显示完整标题
2 UsePage -----------是否分页显示,True为分页显示,False为不分页显示,每
页显示的图片数量由MaxPerPage指定
3 ContentLen ----内容最多字符数,一个汉字=两个英文字符。若为0,则不显示内
容简介
【Cols=数字|HTML代码】
例如:【Cols=3|<br>】
作用:平行显示三列后换行,再输出三列,如此循环.
【Rows=数字|HTML代码】
例如:【Rows=3|<font color=red>好图连边看</font>】
作用:显示三行后,输出"好图连连看",再输出的三行,如此循环.
注:【Cols=数字|HTML代码】或【Rows=数字|HTML代码】要放在【SearchResultList(参数列表)】与【SearchResultList(参数列表)】之间,且只能使用一次,不能重复出现
列表内容中的可用标签及含义:
{$ClassUrl} //得到当前栏目的链接地址
{$ClassID} //得到当前栏目的ID
{$ClassName} //显示当前栏目的名称
{$ParentDir} //得到当前栏目的父目录
{$ClassDir} //得到当前栏目的目录
{$ProductUrl} //得到商品的链接地址
{$ProductID} //得到商品的ID
{$ProductNum} //商品数量
{$UpdateTime} //显示更新时间
{$Stars} //推荐等级
{$ProducerName} //商品名称
{$TrademarkName} //品牌商标
{$ProductModel} //商品型号
{$ProductStandard} //商品规格
{$Hits} //点击数
{$Inputer} //录入者
{$Unit} //单位
{$Stocks} //库存
{$Property} //属性
{$Top} //显示固顶
{$Elite} //显示推荐
{$Hot} //显示热卖
{$ProductName} //商品名称
{$ProductIntro} //显示商品简介
{$ProductExplain} //显示商品说明
{$ProductThumb(width,height)} //产品缩略图,不填写参数时默认宽度为130,高度为90
{$Price_Original} //原始零售价
{$Price_Market} //显示市场价
{$ProductTypeName} //商品类别
{$Price} //显示商城价
{$BeginDate} //显示优惠开始日期
{$EndDate} //显示优惠结束日期
{$Discount} //降价折扣
{$LimitNum} //限够数量
{$Price_Member} //显示会员价
{$PresentExp} //购物积分
{$PresentPoint} //赠送点券
{$PresentMoney} //返还现金券
{$PointName} //点券名称
{$PointUnit} //点券单位</textarea></td>
</tr>
</tbody></table>
</td>
</tr>
<tr><td height="1"></td></tr>
<tr>
<td>
<table cellspacing="0" cellpadding="2" border="1" bordercolor="#AAAAAA" width="612">
<tbody><tr>
<th width="22">标<br>签<br>格<br>式</th>
<td colspan="2">
<script>
function get()
{
line='【SearchResultList(';
line=line+V0.value+',';
line=line+V1.value+',';
line=line+V2.value+')】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】';
clrar.value=line
}
</script>
<textarea cols="94" rows="5" name="clrar" style="width:588;padding:2px;line-height:120%">【SearchResultList(TitleLen,UsePage,ContentLen)】【Cols=数字|(HTML代码)】【Rows=数字|(HTML代码)】多行数据【/SearchResultList】</textarea>
</td></tr>
<tr><td colspan="3" align="center"><input type="button" value="选择并复制标签" onclick="clrar.createTextRange().execCommand("SelectAll");clrar.createTextRange().execCommand("Copy");"><br><input type="button" value="重新生成标签" onclick="get()"></td></tr>
<tr>
<th width="132" colspan="2">参数</th>
<th width="480">参数说明</th>
</tr>
<tr>
<td class="N1">1</td>
<td><input name="V0" value="TitleLen" onfocus="this.select()" style="width:120" size="20"></td>
<td>标题最多字符数,一个汉字=两个英文字符。若为0,则不显示标题;若为-1,则显示完整标题</td>
</tr>
<tr>
<td class="N1">2</td>
<td><input name="V1" value="UsePage" onfocus="this.select()" style="width:120" size="20"></td>
<td>是否分页显示,True为分页显示,False为不分页显示,每页显示的图片数量由MaxPerPage指定</td>
</tr>
<tr>
<td class="N1">3</td>
<td><input name="V2" value="ContentLen" onfocus="this.select()" style="width:120" size="20"></td>
<td>内容最多字符数,一个汉字=两个英文字符。若为0,则不显示内容简介</td>
</tr>
<tr><td colspan="3" align="center"><input type="button" value="重新生成标签" onclick="get()"></td></tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</body></html>
[/code]
请发表您的评论