first commit
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="hits"/>
|
||||
<xsl:param name="linkOpenType"/>
|
||||
<xsl:param name="maxHits"/>
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="(Hits >=0) and (Hits <($maxHits div 5))">
|
||||
<xsl:text disable-output-escaping="yes"><span class="</xsl:text>tagS1<xsl:text disable-output-escaping="yes">"></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="(Hits >=($maxHits div 5)) and (Hits <2*($maxHits div 5))">
|
||||
<xsl:text disable-output-escaping="yes"><span class="</xsl:text>tagS2<xsl:text disable-output-escaping="yes">"></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="(Hits >=2*($maxHits div 5)) and (Hits <3*($maxHits div 5))">
|
||||
<xsl:text disable-output-escaping="yes"><span class="</xsl:text>tagS3<xsl:text disable-output-escaping="yes">"></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="(Hits >=3*($maxHits div 5)) and (Hits <4*($maxHits div 5))">
|
||||
<xsl:text disable-output-escaping="yes"><span class="</xsl:text>tagS4<xsl:text disable-output-escaping="yes">"></xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text disable-output-escaping="yes"><span class="</xsl:text>tagS5<xsl:text disable-output-escaping="yes">"></xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()"/>Tag.aspx?keyword=<xsl:value-of select="KeywordText"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="KeywordText"/>
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes"></span></xsl:text>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>热门点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>_blank</default>
|
||||
<intro>打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>maxHits</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>5</default>
|
||||
<intro>关键字最多点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP @pagesize K.* FROM PE_Keywords K WHERE K.KeywordID NOT IN(SELECT TOP @startrow KeywordID FROM PE_Keywords WHERE Hits >= 10 ORDER BY Priority DESC,QuoteTimes DESC) AND K.Hits >= 10 ORDER BY K.Priority DESC,K.QuoteTimes DESC</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有找到任何专题信息!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a> <xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute> <xsl:attribute name="title">
|
||||
<xsl:value-of select="Title"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
(<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>)
|
||||
<br />
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>30</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="imageHeight"/>
|
||||
<xsl:param name="imageWidth"/>
|
||||
<xsl:param name="contentLength"/>
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<font style="color:red">没有作者!</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<li>
|
||||
<a> <xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()"/>Common/ShowAuthor.aspx?authorName=<xsl:value-of select="pe:UrlEncode(Name)"/>&upDateTime=
|
||||
</xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Photo = ''">
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:ConvertToAbsolutePath(Photo)" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
<xsl:attribute name="width">
|
||||
<xsl:value-of select="$imageWidth"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="height">
|
||||
<xsl:value-of select="$imageHeight"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="Name"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
<br />
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>imageHeight</name>
|
||||
<default>175</default>
|
||||
<intro>头像高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageWidth</name>
|
||||
<default>150</default>
|
||||
<intro>头像宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<default>50</default>
|
||||
<intro>作者简介的字数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<default>SELECT * FROM PE_Author</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有作者列表!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div class="s_classlist_title">
|
||||
<div class="s_classlist_title_r">姓名</div>
|
||||
<div class="s_classlist_title_c">性别</div>
|
||||
<div class="s_classlist_title_l">简介</div>
|
||||
</div>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<div class="s_classlist_text">
|
||||
<div class="s_classlist_text_r">
|
||||
<xsl:value-of select="Name"/>
|
||||
</div>
|
||||
<div class="s_classlist_text_c">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Sex=1">男</xsl:when>
|
||||
<xsl:otherwise>女</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
<div class="s_classlist_text_l">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<default>SELECT * FROM PE_Author</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>简介长度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有作者列表!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<table>
|
||||
<tr>
|
||||
<td>姓名</td>
|
||||
<td>性别</td>
|
||||
<td>简介</td>
|
||||
</tr>
|
||||
<xsl:for-each select="Table">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{pe:InstallDir()}Common/ShowAuthor.aspx?authorName={Name}&upDateTime=">
|
||||
<xsl:value-of select="Name"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:choose>
|
||||
<xsl:when test="Sex=1">男</xsl:when>
|
||||
<xsl:otherwise>女</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<default>SELECT * FROM PE_Author</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>简介长度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength"/>
|
||||
<xsl:param name="keyword"/>
|
||||
<xsl:param name="tableName"/>
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table)=0">
|
||||
<ul>
|
||||
<li style="color:red">没有相关搜索结果!</li>
|
||||
</ul>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<ul>
|
||||
<xsl:for-each select="Table">
|
||||
<li>
|
||||
<a> <xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<span class="Tag_Content">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(Title,$titleLength,'…'),$keyword,'color:red')"/>
|
||||
</span>
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd hh:ff')"/>
|
||||
<br />
|
||||
<span class="Tag_Content">Tag:</span>{PE.Label id="取得内容Tag" itemId="<xsl:value-of select="GeneralID"/>" /}
|
||||
<br />
|
||||
<span class="Tag_Content">栏目:</span>
|
||||
<a> <xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath('false',NodeID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:GetNode(NodeID,'name')"/>
|
||||
</a>
|
||||
<xsl:if test="$tableName !=''">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$tableName='PE_U_Article'">
|
||||
<br />
|
||||
<xsl:value-of select="Intro"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$tableName='PE_U_Photo'">
|
||||
<br />
|
||||
<xsl:value-of select="PhotoIntro"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$tableName='PE_U_Soft'">
|
||||
<br />
|
||||
<xsl:value-of select="SoftIntro"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$tableName='PE_CommonProduct'">
|
||||
<br />
|
||||
<xsl:value-of select="ProductIntro"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<br />
|
||||
<xsl:value-of select="Intro"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<br />
|
||||
<br />
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>20</default>
|
||||
<intro>标题最多显示字符数</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<attributes>
|
||||
<name>tableName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>tableName</default>
|
||||
<intro>所属表名</intro>
|
||||
</attributes>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table)=0">
|
||||
<li style="color:red">没有相关搜索结果!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
<xsl:attribute name="title">标题:<xsl:value-of select="Title"/>
|
||||
<xsl:value-of select="'
'" />点击数:<xsl:value-of select="Hits"/>
|
||||
<xsl:value-of select="'
'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,412 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目内容长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayPropertyPrefix</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目列表前缀修饰符</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayDateTime</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>是否显示日期,为空则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNewSign</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>近多少天内的项目视为最新项目为空则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTitlePrefix</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目前缀修饰语</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHits</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTips</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示作者,更新日期,点击数等浮动提示信息</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayAuthor</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目的作者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayInputer</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目的录入者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNodeName</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示所属栏目名称</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHotSign</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示热门内容图标</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default/>
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="displayPropertyPrefix" />
|
||||
<xsl:param name="displayDateTime" />
|
||||
<xsl:param name="displayTitlePrefix" />
|
||||
<xsl:param name="displayHits" />
|
||||
<xsl:param name="displayTips" />
|
||||
<xsl:param name="displayAuthor" />
|
||||
<xsl:param name="displayInputer" />
|
||||
<xsl:param name="displayNodeName" />
|
||||
<xsl:param name="displayHotSign" />
|
||||
<xsl:param name="displayNewSign" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何项目!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$contentLength > 0">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<div class="list_title">
|
||||
<xsl:if test="$displayPropertyPrefix != 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="EliteLevel > pe:GetNodeInfo(NodeID, 'LeastOfEliteLevel')">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/elite<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
推荐<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:when test="Hits > pe:GetNodeInfo(NodeID, 'HitsOfHot')">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/ontop<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
热门<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/common<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNodeName = 'true'">
|
||||
[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID, 'OpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:GetNode(NodeID,'Name')" />
|
||||
</a>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayTitlePrefix = 'true'">
|
||||
<xsl:if test="IncludePic != '无'">
|
||||
<xsl:value-of select="IncludePic"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="$displayTips = 'true'">
|
||||
<xsl:attribute name="title">
|
||||
标题:<xsl:value-of select="Title"/><xsl:value-of select="'
'" />点击数:<xsl:value-of select="Hits"/><xsl:value-of select="'
'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontColor != '' or TitleFontType != '字形'">
|
||||
<font>
|
||||
<xsl:attribute name="style">
|
||||
<xsl:if test="TitleFontColor != ''">
|
||||
color:<xsl:value-of select="TitleFontColor"/>;
|
||||
</xsl:if>
|
||||
<xsl:if test="TitleFontType != '字形'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontType ='粗体'">font-weight:bold;font-style:normal;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='斜体'">font-weight:normal ;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='粗+斜'">font-weight:bold;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='常规'">font-weight:normal ;font-style:normal;</xsl:when>
|
||||
<xsl:otherwise></xsl:otherwise>
|
||||
</xsl:choose>;
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:if test="$displayHits = 'true'">
|
||||
[<xsl:value-of select="Hits"/>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayAuthor = 'true'">
|
||||
[<xsl:value-of select="Author"/>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayInputer = 'true'">
|
||||
[<xsl:value-of select="Inputer"/>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayDateTime != ''">
|
||||
[<xsl:value-of select="pe:FormatDate(UpdateTime, $displayDateTime)" />]
|
||||
</xsl:if>
|
||||
<xsl:if test="ShowCommentLink = 'true'">
|
||||
[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()" />Comment/AddComment.aspx?itemId=<xsl:value-of select="GeneralID"/>&nodeId=<xsl:value-of select="NodeID"/>
|
||||
</xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>评论
|
||||
</a>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayHotSign = 'true' and Hits > pe:GetNodeInfo(NodeID, 'HitsOfHot')">
|
||||
<img src="{pe:InstallDir()}images/hot.gif" alt="热门内容" />
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNewSign != '' and $displayNewSign >= pe:TimeSpan(UpdateTime,pe:TimeNow())">
|
||||
<img src="{pe:InstallDir()}images/new.gif" alt="最新内容" />
|
||||
</xsl:if>
|
||||
</div>
|
||||
</li>
|
||||
<div class="list_intro">
|
||||
<xsl:choose>
|
||||
<xsl:when test="TableName = 'PE_U_Article'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Intro != ''">
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Intro),$contentLength,'…')" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'…')" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="TableName = 'PE_U_Photo'">
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(PhotoIntro),$contentLength,'…')" />
|
||||
</xsl:when>
|
||||
<xsl:when test="TableName = 'PE_U_Soft'">
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(SoftIntro),$contentLength,'…')" />
|
||||
</xsl:when>
|
||||
<xsl:when test="TableName = 'PE_CommonProduct'">
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(ProductIntro),$contentLength,'…')" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'…')" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<xsl:if test="$displayPropertyPrefix != 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Hits > pe:GetNodeInfo(NodeID, 'HitsOfHot')">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/ontop<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
热门<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:when test="EliteLevel > pe:GetNodeInfo(NodeID, 'LeastOfEliteLevel')">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/elite<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
推荐<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/common<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNodeName = 'true'">
|
||||
[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID, 'OpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:GetNode(NodeID,'Name')" />
|
||||
</a>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayTitlePrefix = 'true'">
|
||||
<xsl:if test="IncludePic != '无'">
|
||||
<xsl:value-of select="IncludePic"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="$displayTips = 'true'">
|
||||
<xsl:attribute name="title">
|
||||
标题:<xsl:value-of select="Title"/><xsl:value-of select="'
'" />点击数:<xsl:value-of select="Hits"/><xsl:value-of select="'
'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontColor != '' or TitleFontType != '字形'">
|
||||
<font>
|
||||
<xsl:attribute name="style">
|
||||
<xsl:if test="TitleFontColor != ''">
|
||||
color:<xsl:value-of select="TitleFontColor"/>;
|
||||
</xsl:if>
|
||||
<xsl:if test="TitleFontType != '字形'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontType ='粗体'">font-weight:bold;font-style:normal;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='斜体'">font-weight:normal ;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='粗+斜'">font-weight:bold;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='常规'">font-weight:normal ;font-style:normal;</xsl:when>
|
||||
<xsl:otherwise></xsl:otherwise>
|
||||
</xsl:choose>;
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:if test="$displayHits = 'true'">
|
||||
[<xsl:value-of select="Hits"/>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayInputer = 'true'">
|
||||
[<xsl:value-of select="Inputer"/>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayDateTime != ''">
|
||||
[<xsl:value-of select="pe:FormatDate(UpdateTime, $displayDateTime)" />]
|
||||
</xsl:if>
|
||||
<xsl:if test="ShowCommentLink = 'true'">
|
||||
[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()" />Comment/AddComment.aspx?itemId=<xsl:value-of select="GeneralID"/>&nodeId=<xsl:value-of select="NodeID"/>
|
||||
</xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>评论
|
||||
</a>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayHotSign = 'true' and Hits > pe:GetNodeInfo(NodeID, 'HitsOfHot')">
|
||||
<img src="{pe:InstallDir()}images/hot.gif" alt="热门内容" />
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNewSign != '' and $displayNewSign > pe:TimeSpan(UpdateTime,pe:TimeNow())">
|
||||
<img src="{pe:InstallDir()}images/new.gif" alt="最新内容" />
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目内容长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>pe_u_thumb</default>
|
||||
<intro>图片区块选择器名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>pe_u_thumb_title</default>
|
||||
<intro>标题简介区择器名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageWidth</name>
|
||||
<datatype>int</datatype>
|
||||
<default>160</default>
|
||||
<intro>图片宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageHeight</name>
|
||||
<datatype>int</datatype>
|
||||
<default>120</default>
|
||||
<intro>图片高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi"><xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/><xsl:param name="titleLength" /><xsl:param name="contentLength" /><xsl:param name="imageClass" /><xsl:param name="titleClass" /><xsl:param name="imageWidth" /><xsl:param name="imageHeight" /><xsl:param name="queryCond" /><xsl:param name="queryCount" /><xsl:param name="optionalExtend" /><xsl:template match="/"><xsl:choose><xsl:when test="count(/NewDataSet/Table) = 0"><li style="color:red">还没有任何项目!</li></xsl:when><xsl:otherwise><xsl:for-each select="/NewDataSet/Table"><li><div class="{$imageClass}"><a><xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" /></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:element name="img"><xsl:attribute name="src"><xsl:choose><xsl:when test="DefaultPicUrl != ''"><xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/></xsl:when><xsl:otherwise><xsl:value-of select="pe:UpLoadDir()"/>nopic.gif</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="Title" /></xsl:attribute><xsl:if test="$imageWidth > 0"><xsl:attribute name="width"><xsl:value-of select="$imageWidth" /></xsl:attribute></xsl:if><xsl:if test="$imageHeight > 0"><xsl:attribute name="height"><xsl:value-of select="$imageHeight" /></xsl:attribute></xsl:if><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></div><div class="{$titleClass}"><a><xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" /></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:value-of select="pe:CutText(Title,$titleLength,'…')" /></a><br /><xsl:choose><xsl:when test="TableName = 'PE_U_Article'"><xsl:choose><xsl:when test="Intro != ''"><xsl:value-of select="pe:CutText(pe:RemoveHtml(Intro),$contentLength,'…')" /></xsl:when><xsl:otherwise><xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'…')" /></xsl:otherwise></xsl:choose></xsl:when><xsl:when test="TableName = 'PE_U_Photo'"><xsl:value-of select="pe:CutText(pe:RemoveHtml(PhotoIntro),$contentLength,'…')" /></xsl:when><xsl:when test="TableName = 'PE_U_Soft'"><xsl:value-of select="pe:CutText(pe:RemoveHtml(SoftIntro),$contentLength,'…')" /></xsl:when><xsl:when test="TableName = 'PE_CommonProduct'"><xsl:value-of select="pe:CutText(pe:RemoveHtml(ProductIntro),$contentLength,'…')" /></xsl:when><xsl:otherwise><xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'…')" /></xsl:otherwise></xsl:choose></div></li></xsl:for-each></xsl:otherwise></xsl:choose></xsl:template></xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,51 @@
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>modelID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>4</default>
|
||||
<intro>模型ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>generalID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>6</default>
|
||||
<intro>关联商品编号</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>
|
||||
SELECT C.Title,C.NodeID,C.GeneralID,C.InputTime,C.PinyinTitle FROM PE_CommonModel C JOIN PE_CorrelativeItems I ON C.GeneralID = I.CorrelativeGeneralID WHERE C.ModelID = @modelID AND I.GeneralID=@generalID AND C.Status=99 ORDER BY I.OrderId
|
||||
</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<font style="color:red">指定的模型还没有相关信息!</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,60,'…')" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@QueryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>没有友情链接站点!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text disable-output-escaping="yes"><select id="friendsitelist" onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}"></xsl:text>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:text disable-output-escaping="yes"><option value=</xsl:text>
|
||||
<xsl:value-of select="SiteUrl" />
|
||||
<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
<xsl:text disable-output-escaping="yes"></option></xsl:text>
|
||||
</xsl:for-each>
|
||||
<xsl:text disable-output-escaping="yes"></select></xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>内容链接的打开方式,0为栏目节点配置,1为新窗口,2为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel C</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<usePage>True</usePage>
|
||||
<LabelSqlCount>@QueryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@QueryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="SiteUrl" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:otherwise>_self</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="LogoUrl !=''">
|
||||
<xsl:if test="pe:IsStartWithhttp(LogoUrl)='false'">
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="LogoUrl"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>内容链接的打开方式,0为栏目节点配置,1为新窗口,2为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_U_FriendSite C</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<usePage>True</usePage>
|
||||
<LabelSqlCount>@QueryCount</LabelSqlCount>
|
||||
<Version officialVersion="" modifiedVersions="4000" compatibleVersion="" />
|
||||
</root>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@QueryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="SiteUrl" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:otherwise>_self</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>内容链接的打开方式,0为栏目节点配置,1为新窗口,2为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel C</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<usePage>True</usePage>
|
||||
<LabelSqlCount>@QueryCount</LabelSqlCount>
|
||||
<Version officialVersion="" modifiedVersions="4000" compatibleVersion="" />
|
||||
</root>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>@QueryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>没有友情链接站点!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text disable-output-escaping="yes"><marquee direction=up></xsl:text>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="SiteUrl" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</a>
|
||||
<br />
|
||||
</xsl:for-each>
|
||||
<xsl:text disable-output-escaping="yes"></marquee></xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>内容链接的打开方式,0为栏目节点配置,1为新窗口,2为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel C</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>QueryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<usePage>True</usePage>
|
||||
<LabelSqlCount>@QueryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,121 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>查询值</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有搜索到任何内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'OpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="DefaultPicUrl !=''">
|
||||
<xsl:if test="pe:IsStartWithhttp(DefaultPicUrl)='false'">
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="DefaultPicUrl"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
<xsl:attribute name="width">90</xsl:attribute>
|
||||
<xsl:attribute name="height">68</xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="Title"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(Title,$titleLength,'…'),$fieldValue,'color:red')" />
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
||||
<br />
|
||||
<xsl:if test="$contentLength > 0">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(PhotoIntro,$contentLength,'…'),$fieldValue,'color:red')" />
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>内容长度,一个汉字占两个字节,如填写"20"则显示10个汉字,为0则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>没有找到相关内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
||||
<xsl:text disable-output-escaping="yes"><br /></xsl:text>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(PhotoIntro),$contentLength,'')"/>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>查询值</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有搜索到任何内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'OpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(Title,$titleLength,'…'),$fieldValue,'color:red')" />
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
||||
<br />
|
||||
<xsl:if test="$contentLength > 0">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(Content,$contentLength,'…'),$fieldValue,'color:red')" />
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>内容长度,一个汉字占两个字节,如填写"20"则显示10个汉字,为0则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>没有找到相关内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
||||
<xsl:text disable-output-escaping="yes"><br /></xsl:text>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'')"/>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,56 @@
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Source WHERE Passed = 1 AND ID NOT IN(SELECT TOP @startrow ID FROM PE_Source WHERE Passed = 1 ORDER BY ID DESC) ORDER BY ID DESC</LabelSqlString>
|
||||
<LabelSqlCount>SELECT COUNT(ID) FROM PE_Source WHERE Passed = 1</LabelSqlCount>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有来源列表!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div class="s_classlist_title">
|
||||
<div class="s_classlist_title_r">来源名称</div>
|
||||
<div class="s_classlist_title_c">联系人</div>
|
||||
<div class="s_classlist_title_l">来源简介</div>
|
||||
</div>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<div class="s_classlist_text">
|
||||
<div class="s_classlist_text_r">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()"/>Common/ShowCopyFrom.aspx?copyfrom=<xsl:value-of select="Name"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Name"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="s_classlist_text_c">
|
||||
<xsl:value-of select="Contacter"/>
|
||||
</div>
|
||||
<div class="s_classlist_text_l">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>来源简介长度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,59 @@
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Source WHERE Passed=1 AND ID NOT IN(SELECT TOP @startrow ID FROM PE_Source WHERE Passed=1 ORDER BY ID DESC) ORDER BY ID DESC</LabelSqlString>
|
||||
<LabelSqlCount>SELECT COUNT(ID) FROM PE_Source WHERE Passed = 1</LabelSqlCount>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有来源列表!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<table width="%100">
|
||||
<tr>
|
||||
<td>来源名称</td>
|
||||
<td>联系人</td>
|
||||
<td>来源简介</td>
|
||||
</tr>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<tr>
|
||||
<td>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()"/>Common/ShowCopyFrom.aspx?copyfrom=<xsl:value-of select="Name"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Name"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Contacter"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>来源简介长度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>首页调用</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3504" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>NodeID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>16</default>
|
||||
<intro>节点ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT arrChildID FROM PE_Nodes WHERE NodeID = @NodeID</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="NodeID" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
{PE.Label id="节点项目数_linshi" nodes="<xsl:value-of select="arrChildID"/>" /}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>查询值</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有搜索到任何内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'OpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(Title,$titleLength,'…'),$fieldValue,'color:red')" />
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
||||
<br />
|
||||
<xsl:if test="$contentLength > 0">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(SoftIntro,$contentLength,'…'),$fieldValue,'color:red')" />
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>内容长度,一个汉字占两个字节,如填写"20"则显示10个汉字,为0则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li>没有找到相关内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
||||
<xsl:text disable-output-escaping="yes"><br /></xsl:text>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(SoftIntro),$contentLength,'')"/>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,252 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayPropertyPrefix</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目列表前缀修饰符{不启用:0,样式一:1,样式二:2,样式三:3,样式四:4,样式五:5,样式六:6,样式七:7,样式八:8,样式九:9,样式十:10}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayDateTime</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>mm-dd</default>
|
||||
<intro>是否显示日期,为空则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTitlePrefix</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目前缀修饰语</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHits</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTips</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示作者,更新日期,点击数等浮动提示信息</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayInputer</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示内容的录入者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNodeName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示所属栏目名称</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHotSign</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示热门内容图标</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNewSign</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示新内容图标</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayCommentLink</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示评论链接</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>2</default>
|
||||
<intro>项目链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="displayPropertyPrefix" />
|
||||
<xsl:param name="displayDateTime" />
|
||||
<xsl:param name="displayTitlePrefix" />
|
||||
<xsl:param name="displayHits" />
|
||||
<xsl:param name="displayTips" />
|
||||
<xsl:param name="displayInputer" />
|
||||
<xsl:param name="displayNodeName" />
|
||||
<xsl:param name="displayHotSign" />
|
||||
<xsl:param name="displayNewSign" />
|
||||
<xsl:param name="displayCommentLink" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何项目!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<xsl:if test="$displayPropertyPrefix != 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Hits > pe:HitsOfHot()">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/ontop<xsl:value-of select="$displayPropertyPrefix"/>.gif</xsl:attribute>
|
||||
<xsl:attribute name="alt">热门<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:when test="EliteLevel > pe:LeastOfEliteLevel()">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/elite<xsl:value-of select="$displayPropertyPrefix"/>.gif</xsl:attribute>
|
||||
<xsl:attribute name="alt">推荐<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/common<xsl:value-of select="$displayPropertyPrefix"/>.gif</xsl:attribute>
|
||||
<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNodeName = 'true'">[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'OpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:GetNode(NodeID,'name')" />
|
||||
</a>]</xsl:if> <xsl:if test="$displayTitlePrefix = 'true'">
|
||||
<xsl:if test="IncludePic != '无'">
|
||||
<xsl:value-of select="IncludePic"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayDateTime != 0">[<xsl:value-of select="pe:FormatDate(UpdateTime, $displayDateTime)" />] </xsl:if>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID,'ItemOpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$linkOpenType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="$displayTips = 'true'">
|
||||
<xsl:attribute name="title">标题:<xsl:value-of select="Title"/>
|
||||
<xsl:value-of select="'
'" />点击数:<xsl:value-of select="Hits"/>
|
||||
<xsl:value-of select="'
'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontColor != '' or TitleFontType != '字形'">
|
||||
<font>
|
||||
<xsl:attribute name="style">
|
||||
<xsl:if test="TitleFontColor != ''">color:<xsl:value-of select="TitleFontColor"/>;</xsl:if>
|
||||
<xsl:if test="TitleFontType != '字形'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontType ='粗体'">font-weight:bold;font-style:normal;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='斜体'">font-weight:normal ;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='粗+斜'">font-weight:bold;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='常规'">font-weight:normal ;font-style:normal;</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>;</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:if test="$displayHits = 'true'">[<xsl:value-of select="Hits"/>]</xsl:if>
|
||||
<xsl:if test="$displayInputer = 'true'">[<xsl:value-of select="Inputer"/>]</xsl:if>
|
||||
<xsl:if test="$displayCommentLink = 'true' and ShowCommentLink = 'true'">[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()" />Comment/AddComment.aspx?itemId=<xsl:value-of select="GeneralID"/>&nodeId=<xsl:value-of select="NodeID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>评论</a>]</xsl:if>
|
||||
<xsl:if test="$displayHotSign = 'true' and Hits > pe:HitsOfHot()">
|
||||
<img src="{pe:InstallDir()}images/hot.gif" alt="热门内容" />
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNewSign != '' and $displayNewSign > pe:TimeSpan(UpdateTime,pe:TimeNow())">
|
||||
<img src="{pe:InstallDir()}images/new.gif" alt="最新内容" />
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusWidth</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>428</default>
|
||||
<intro>焦点图宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusHeight</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>280</default>
|
||||
<intro>焦点图高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="focusWidth" />
|
||||
<xsl:param name="focusHeight" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) > 1">
|
||||
<ul class="pic">
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<img src="{pe:PathFind(DefaultPicUrl)}" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
<div class="txt-bg">`</div>
|
||||
<div class="txt">
|
||||
<ul>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="num">
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:value-of select="position()"/>
|
||||
</a>
|
||||
<span>_</span>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<span class="missing_data">还没有任何内容!</span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<Version officialVersion="" modifiedVersions="0000" compatibleVersion="" />
|
||||
</root>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusWidth</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>428</default>
|
||||
<intro>焦点图宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusHeight</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>280</default>
|
||||
<intro>焦点图高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="focusWidth" />
|
||||
<xsl:param name="focusHeight" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<font style="color:red">还没有任何信息!</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<script type="text/javascript">
|
||||
var swf_width = <xsl:value-of select="$focusWidth" />;
|
||||
var swf_height = <xsl:value-of select="$focusHeight" /> + 20;
|
||||
var title_height = 20;
|
||||
var focus_height = swf_height + title_height;
|
||||
var interval_time = 4;
|
||||
var config = '6|0xffffff|0x0099FF|20|0xffffff|0x0099FF|0x000000';//config 设置分别为: 自动播放时间(秒)|文字颜色|文字背景色|文字背景透明度|按键数字色|当前按键色|普通按键色
|
||||
var files = '<xsl:for-each select="/NewDataSet/Table"><xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/><xsl:if test="position() != last()">|</xsl:if></xsl:for-each>';
|
||||
var links = '<xsl:for-each select="/NewDataSet/Table"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/><xsl:if test="position() != last()">|</xsl:if></xsl:for-each>';
|
||||
var texts = '<xsl:for-each select="/NewDataSet/Table"><xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:ReplaceText(Title,'"',''),$titleLength,'…')"/><xsl:if test="position() != last()">|</xsl:if></xsl:for-each>';
|
||||
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + swf_width + '" height="' + focus_height + '">');
|
||||
document.write('<param name="movie" value="{pe:SkinDir()}swf/focus_1.swf" />');
|
||||
document.write('<param name="quality" value="high" />');
|
||||
document.write('<param name="menu" value="false" />');
|
||||
document.write('<param name="wmode" value="opaque" />');
|
||||
document.write('<param name="FlashVars" value="borderwidth=' + swf_width + '&borderheight=' + swf_height + '&textheight=' + title_height + '&interval_time=' + interval_time + '&pics=' + files + '&links=' + links + '&texts=' + texts + '" />');
|
||||
document.write('<embed src="{pe:SkinDir()}swf/focus_1.swf" wmode="opaque" FlashVars="borderwidth=' + swf_width + '&borderheight=' + swf_height + '&textheight=' + title_height + '&interval_time=' + interval_time + '&pics=' + files + '&links=' + links + '&texts=' + texts + '" menu="false" quality="high" width="' + swf_width + '" height="' + focus_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
|
||||
document.write('</object>');
|
||||
</script>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusWidth</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>428</default>
|
||||
<intro>焦点图宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusHeight</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>280</default>
|
||||
<intro>焦点图高度</intro>
|
||||
</attributes>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="focusWidth" />
|
||||
<xsl:param name="focusHeight" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<font style="color:red">还没有任何信息!</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<script type="text/javascript">
|
||||
var swf_width = <xsl:value-of select="$focusWidth" />;
|
||||
var swf_height = <xsl:value-of select="$focusHeight" />;
|
||||
var config = '6|0xffffff|0x0099FF|20|0xffffff|0x0099FF|0x000000';//config 设置分别为: 自动播放时间(秒)|文字颜色|文字背景色|文字背景透明度|按键数字色|当前按键色|普通按键色
|
||||
var files = '<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/>
|
||||
<xsl:if test="position() != last()">|</xsl:if>
|
||||
</xsl:for-each>';
|
||||
var links = '<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
<xsl:if test="position() != last()">|</xsl:if>
|
||||
</xsl:for-each>';
|
||||
var texts = '<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:ReplaceText(Title,'"',''),$titleLength,'…')"/>
|
||||
<xsl:if test="position() != last()">|</xsl:if>
|
||||
</xsl:for-each>';
|
||||
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + swf_width + '" height="' + swf_height + '">');
|
||||
document.write('<param name="movie" value="{pe:SkinDir()}swf/focus_2.swf" />');
|
||||
document.write('<param name="quality" value="high" />');
|
||||
document.write('<param name="menu" value="false" />');
|
||||
document.write('<param name="wmode" value="opaque" />');
|
||||
document.write('<param name="FlashVars" value="config=' + config + '&bcastr_flie=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '" />');
|
||||
document.write('<embed src="{pe:SkinDir()}swf/focus_2.swf" wmode="opaque" FlashVars="config=' + config + '&bcastr_flie=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '" menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
|
||||
document.write('</object>');
|
||||
</script>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,206 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusWidth</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>428</default>
|
||||
<intro>焦点图宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>focusHeight</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>280</default>
|
||||
<intro>焦点图高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="focusWidth" />
|
||||
<xsl:param name="focusHeight" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<font style="color:red">还没有任何信息!</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<style type="text/css">
|
||||
.texttitle { color: #C10001; }
|
||||
.texttitle a:link { color: #C10001; text-decoration: none; }
|
||||
.texttitle a:visited { color: #C10001; text-decoration: none; }
|
||||
.texttitle a:hover { color: #C10001; text-decoration: underline; }
|
||||
.texttitle a:active { color: #C10001; text-decoration: none; }
|
||||
#imgTitle { filter: Alpha(opacity=70); left: 0px; overflow: hidden; position: relative; text-align: left; }
|
||||
#imgTitle_up { left: 0px; height: 1px; text-align: left; }
|
||||
#imgTitle_down { left: 0px; text-align: right; }
|
||||
.imgClass { border-right: #fff 1px solid; border-top: #fff 1px solid; border-left: #fff 1px solid; border-bottom: #fff 1px solid; }
|
||||
#txtFrom { vertical-align: middle; padding-top: 2px; text-align: center; }
|
||||
.button { padding-right: 7px; padding-left: 7px; background: #7b7b63; padding-bottom: 2px; margin: 0px; font: bold 9px sans-serif; border-left: #fff 1px solid; padding-top: 2px; text-decoration: none; }
|
||||
a.button { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
|
||||
a.button:link { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
|
||||
a.button:visited { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
|
||||
a.button:hover { background: #fff; color: #fff; font-family: sans-serif; text-decoration: none; }
|
||||
.buttonDiv { background: #000000; float: left; vertical-align: middle; width: 21px; height: 1px; text-align: center; }
|
||||
.trans { filter: progid:DXImageTransform.Microsoft.Alpha(startX=0, startY=0, finishX=100, finishY=100,style=1,opacity=0,finishOpacity=40); width: 90px; background-color: #000; }
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var imgWidth = <xsl:value-of select="$focusWidth" />;
|
||||
var imgHeight = <xsl:value-of select="$focusHeight" />;
|
||||
var textFromHeight = 21;
|
||||
var textStyle = "texttitle";
|
||||
var textLinkStyle = "texttitle";
|
||||
var buttonLineOn = "#f60";
|
||||
var buttonLineOff = "#000";
|
||||
var TimeOut = 5000;
|
||||
var imgUrl = new Array();
|
||||
var imgLink = new Array();
|
||||
var imgtext = new Array();
|
||||
var imgAlt = new Array();
|
||||
var adNum = 0;
|
||||
document.write('<style type="text/css">');
|
||||
document.write('#focuseFrom{width:' + (imgWidth + 2) + ';margin: 0px; padding:0px;height:' + (imgHeight + textFromHeight) + 'px; overflow:hidden;}');
|
||||
document.write('#txtFrom{height:' + textFromHeight + 'px;line-height:' + textFromHeight + 'px;width:' + imgWidth + 'px;overflow:hidden;}');
|
||||
document.write('#imgTitle{width:' + imgWidth + ';top:-' + (textFromHeight + 14) + 'px;height:18px}');
|
||||
document.write('</style>');
|
||||
document.write('<div id="focuseFrom">');
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
imgUrl[<xsl:value-of select="position()"/>] = '<xsl:choose>
|
||||
<xsl:when test="TableName = 'PE_CommonProduct'">
|
||||
<xsl:value-of select="pe:ConvertToAbsolutePath(ProductThumb)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>';
|
||||
imgtext[<xsl:value-of select="position()"/>] = '<a href="<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>" target="_blank" class="linkblack"><xsl:value-of select="pe:CutText(pe:ReplaceText(Title,'"',''),$titleLength,'…')"/></a>';
|
||||
imgLink[<xsl:value-of select="position()"/>] = '<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>';
|
||||
imgAlt[<xsl:value-of select="position()"/>] = '<xsl:value-of select="Title"/>';
|
||||
</xsl:for-each>
|
||||
|
||||
function changeimg(n){
|
||||
adNum = n;
|
||||
window.clearInterval(theTimer);
|
||||
adNum = adNum - 1;
|
||||
nextAd();
|
||||
}
|
||||
|
||||
function goUrl(){
|
||||
window.open(imgLink[adNum], '_blank');
|
||||
}
|
||||
|
||||
if (navigator.appName == "Netscape") {
|
||||
document.write('<style type="text/css">');
|
||||
document.write('.buttonDiv{height:4px;width:21px;}');
|
||||
document.write('</style>');
|
||||
function nextAd(){
|
||||
if (adNum < (imgUrl.length - 1))
|
||||
adNum++;
|
||||
else
|
||||
adNum = 1;
|
||||
theTimer = setTimeout("nextAd()", TimeOut);
|
||||
document.images.imgInit.src = imgUrl[adNum];
|
||||
document.images.imgInit.alt = imgAlt[adNum];
|
||||
document.getElementById('focustext').innerHTML = imgtext[adNum];
|
||||
document.getElementById('imgLink').href = imgLink[adNum];
|
||||
}
|
||||
document.write('<a id="imgLink" href="' + imgLink[1] + '" target=_blank class="p1"><img src="' + imgUrl[1] + '" name="imgInit" width=' + imgWidth + ' height=' + imgHeight + ' border=1 alt="' + imgAlt[1] + '" class="imgClass"></a><div id="txtFrom"><span id="focustext" class="' + textStyle + '">' + imgtext[1] + '</span></div>')
|
||||
document.write('<div id="imgTitle">');
|
||||
document.write('<div id="imgTitle_down">');
|
||||
for (var i = 1; i < imgUrl.length; i++) {
|
||||
document.write('<a href="javascript:changeimg(' + i + ')" class="button" style="cursor:hand" title="' + imgAlt[i] + '">' + i + '</a>');
|
||||
}
|
||||
|
||||
document.write('</div>');
|
||||
document.write('</div>');
|
||||
document.write('</div>');
|
||||
nextAd();
|
||||
}
|
||||
|
||||
else {
|
||||
var count = 0;
|
||||
for (i = 1; i < imgUrl.length; i++) {
|
||||
if ((imgUrl[i] != "") && (imgLink[i] != "") && (imgtext[i] != "") && (imgAlt[i] != "")) {
|
||||
count++;
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
function playTran(){
|
||||
if (document.all)
|
||||
imgInit.filters.revealTrans.play();
|
||||
}
|
||||
var key = 0;
|
||||
function nextAd(){
|
||||
if (adNum < count)
|
||||
adNum++;
|
||||
else
|
||||
adNum = 1;
|
||||
if (key == 0) {
|
||||
key = 1;
|
||||
}
|
||||
else
|
||||
if (document.all) {
|
||||
imgInit.filters.revealTrans.Transition = 23;
|
||||
imgInit.filters.revealTrans.apply();
|
||||
playTran();
|
||||
}
|
||||
document.images.imgInit.src = imgUrl[adNum];
|
||||
document.images.imgInit.alt = imgAlt[adNum];
|
||||
document.getElementById('link' + adNum).style.background = buttonLineOn;
|
||||
for (var i = 1; i <= count; i++) {
|
||||
if (i != adNum) {
|
||||
document.getElementById('link' + i).style.background = buttonLineOff;
|
||||
}
|
||||
}
|
||||
focustext.innerHTML = imgtext[adNum];
|
||||
theTimer = setTimeout("nextAd()", TimeOut);
|
||||
}
|
||||
document.write('<a target=_self href="javascript:goUrl()"><img style="FILTER: revealTrans(duration=1,transition=5);" src="javascript:nextAd()" width=' + imgWidth + ' height=' + imgHeight + ' border=0 vspace="0" name=imgInit class="imgClass"></a><br>');
|
||||
document.write('<div id="txtFrom"><span id="focustext" class="' + textStyle + '"></span></div>');
|
||||
document.write('<div id="imgTitle">');
|
||||
document.write('<div id="imgTitle_down"> <a class="trans"></a>');
|
||||
for (var i = 1; i < imgUrl.length; i++) {
|
||||
document.write('<a id="link' + i + '" href="javascript:changeimg(' + i + ')" class="button" style="cursor:hand" title="' + imgAlt[i] + '" onFocus="this.blur()">' + i + '</a>');
|
||||
}
|
||||
document.write('</div>');
|
||||
document.write('</div>');
|
||||
document.write('</div>');
|
||||
nextAd();
|
||||
}
|
||||
</script>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>样式类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>pe_u_thumb</default>
|
||||
<intro>图片区块选择器名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>pe_u_thumb_title</default>
|
||||
<intro>标题简介区择器名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageWidth</name>
|
||||
<datatype>int</datatype>
|
||||
<default>160</default>
|
||||
<intro>图片宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageHeight</name>
|
||||
<datatype>int</datatype>
|
||||
<default>120</default>
|
||||
<intro>图片高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe"><xsl:output method="html" version="1.0" encoding="utf-8" indent="yes"/><xsl:param name="titleLength" /><xsl:param name="imageClass" /><xsl:param name="titleClass" /><xsl:param name="imageWidth" /><xsl:param name="imageHeight" /><xsl:param name="queryCond" /><xsl:param name="queryCount" /><xsl:param name="optionalExtend" /><xsl:template match="/"><xsl:choose><xsl:when test="count(/NewDataSet/Table) = 0"><li style="color:red">没有任何带图片的信息!</li></xsl:when><xsl:otherwise><xsl:for-each select="/NewDataSet/Table"><li><div class="{$imageClass}"><a><xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" /></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:element name="img"><xsl:attribute name="src"><xsl:choose><xsl:when test="DefaultPicUrl != ''"><xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/></xsl:when><xsl:otherwise><xsl:value-of select="pe:UpLoadDir()"/>nopic.gif</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="Title" /></xsl:attribute><xsl:if test="$imageWidth > 0"><xsl:attribute name="width"><xsl:value-of select="$imageWidth" /></xsl:attribute></xsl:if><xsl:if test="$imageHeight > 0"><xsl:attribute name="height"><xsl:value-of select="$imageHeight" /></xsl:attribute></xsl:if><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></div><xsl:if test="$titleLength > 0"><div class="{$titleClass}"><a><xsl:attribute name="href"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" /></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:choose><xsl:when test="TitleFontColor != '' or TitleFontType != '字形'"><font><xsl:attribute name="style"><xsl:if test="TitleFontColor != ''">color:<xsl:value-of select="TitleFontColor"/>;</xsl:if><xsl:if test="TitleFontType != '字形'"><xsl:choose><xsl:when test="TitleFontType ='粗体'">font-weight:bold;font-style:normal;</xsl:when><xsl:when test="TitleFontType ='斜体'">font-weight:normal ;font-style:italic ;</xsl:when><xsl:when test="TitleFontType ='粗+斜'">font-weight:bold;font-style:italic ;</xsl:when><xsl:when test="TitleFontType ='常规'">font-weight:normal ;font-style:normal;</xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose>;</xsl:if></xsl:attribute><xsl:value-of select="pe:CutText(Title,$titleLength,'…')" /></font></xsl:when><xsl:otherwise><xsl:value-of select="pe:CutText(Title,$titleLength,'…')" /></xsl:otherwise></xsl:choose></a></div></xsl:if></li></xsl:for-each></xsl:otherwise></xsl:choose></xsl:template></xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
Reference in New Issue
Block a user