first commit
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
<?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>SELECT TOP 1 * FROM PE_CommonModel CM INNER JOIN PE_U_Video UT ON (CM.ItemID = UT.ID) WHERE CM.Status = 99 AND CM.ModelID IN (23) ORDER BY CM.GeneralID DESC</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>150</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="contentLength" />
|
||||
<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">
|
||||
<div class="headline">
|
||||
<h1>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
</h1>
|
||||
<div class="posterThumb">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{pe:CutText(Title,$titleLength,'…')}">
|
||||
<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>
|
||||
</div>
|
||||
<p>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="pe:CutText(Synopsis,$contentLength,'…')" />
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>
|
||||
</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
Reference in New Issue
Block a user