first commit
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<?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>
|
||||
<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="linkOpenType" />
|
||||
<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 href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Cover != ''">
|
||||
<img src="{pe:ConvertToAbsolutePath(Cover)}" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<img src="{pe:InstallDir()}images/nopic.gif" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<h4>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
</h4>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 5 * FROM PE_CommonModel CM WHERE CM.Status = 99 AND CM.ModelID IN (23) ORDER BY CM.UpdateTime DESC</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
Reference in New Issue
Block a user