Files
ningbo/动易的标签库/标签库/视频类/视频信息列表_视频内容列表.config
T
2026-08-31 16:22:00 +08:00

139 lines
5.7 KiB
XML

<?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="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>
<div class="posterThumb">
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img width="100" height="140" src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img width="100" height="140" src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</div>
<div class="movieInfo">
<h3>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h3>
<h4>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{EnTitle}">
<xsl:value-of select="pe:CutText(EnTitle,$titleLength,'…')"/>
</a>
</h4>
<p class="director">
导 演: <xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="Director"/>
<xsl:with-param name="fieldOption" select="'director'"/>
</xsl:call-template>
</p>
<p class="starring">
演 员: <xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="Starring"/>
<xsl:with-param name="fieldOption" select="'starring'"/>
</xsl:call-template>
</p>
<p class="area">
地区:<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(Region)}&amp;fieldOption=region" >
<xsl:value-of select="Region" />
</a>
</p>
<p class="area">
类型:<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(Type)}&amp;fieldOption=type" >
<xsl:value-of select="Type" />
</a>
</p>
<p class="showtime">
上映时间:<span>
<xsl:value-of select="pe:FormatDate(Released,'yyyy-mm-dd')"/>
</span>
</p>
</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="splitStr">
<xsl:param name="srcStr"/>
<xsl:param name="fieldOption"/>
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(substring-before($srcStr,'|'))}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="substring-before($srcStr,'|')"/>
</a>
<xsl:variable name="dstStr" select="substring-after($srcStr,'|')" />
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dstStr"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($dstStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$dstStr"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($srcStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$srcStr"/>
</a>
</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>
<attributes>
<name>fieldOption</name>
<datatype>string</datatype>
<default>keyword</default>
<intro>字段名称</intro>
</attributes>
</root>