first commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 时间轴(用于板块12数字军史:海军大事记) -->
|
||||
<root>
|
||||
<label>
|
||||
<id>时间轴</id>
|
||||
<name>时间轴(大事记/历史节点)</name>
|
||||
<description>按时间倒序渲染大事记节点,红点+日期+事件</description>
|
||||
<category>其他类</category>
|
||||
<version>v1.0</version>
|
||||
<creator>军政门户项目组</creator>
|
||||
</label>
|
||||
|
||||
<datasource>
|
||||
<type>SQL</type>
|
||||
<sql><![CDATA[
|
||||
SELECT TOP (@ShowNum)
|
||||
Id, EventDate, EventYear, Title, Description
|
||||
FROM PE_HistoryEvent
|
||||
WHERE NodeId = @NodeId AND Status = 99
|
||||
ORDER BY EventDate DESC
|
||||
]]></sql>
|
||||
<parameters>
|
||||
<param name="NodeId" type="int" default="0" description="时间轴所属分类" />
|
||||
<param name="ShowNum" type="int" default="5" description="显示条数" />
|
||||
</parameters>
|
||||
</datasource>
|
||||
|
||||
<output>
|
||||
<![CDATA[
|
||||
<div class="timeline">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<div class="tl-item">
|
||||
<span class="dot"></span>
|
||||
<span class="year">
|
||||
<xsl:value-of select="CONVERT(varchar(10), EventDate, 102)" />
|
||||
</span>
|
||||
<span class="evt"><xsl:value-of select="Title" /></span>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
]]>
|
||||
</output>
|
||||
</root>
|
||||
Reference in New Issue
Block a user