first commit
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>
|
||||
</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2512" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT * FROM PE_GV_Interview WHERE InterviewId = @interviewId AND Status != 0</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="xml" />
|
||||
<xsl:template match="/">
|
||||
<Root>
|
||||
<InterviewId>
|
||||
<xsl:value-of select="/NewDataSet/Table/InterviewId"/>
|
||||
</InterviewId>
|
||||
<InterviewTitle>
|
||||
<xsl:value-of select="/NewDataSet/Table/InterviewTitle"/>
|
||||
</InterviewTitle>
|
||||
<InterviewTime>
|
||||
<xsl:value-of select="/NewDataSet/Table/InterviewTime"/>
|
||||
</InterviewTime>
|
||||
<HonoredGuest>
|
||||
<xsl:value-of select="pe:ReplaceText(/NewDataSet/Table/HonoredGuest,'$$$',' ')"/>
|
||||
</HonoredGuest>
|
||||
<Content>
|
||||
<xsl:value-of select="/NewDataSet/Table/Content"/>
|
||||
</Content>
|
||||
<LiveUrl>
|
||||
<xsl:value-of select="/NewDataSet/Table/LiveUrl" />
|
||||
</LiveUrl>
|
||||
<BeginTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/BeginTime,'yyyy年mm月dd日 hh时')"/>(星期<xsl:value-of select="pe:ConverToWeek(/NewDataSet/Table/BeginTime)"/>)
|
||||
</BeginTime>
|
||||
<EndTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/EndTime,'yyyy年mm月dd日')"/>
|
||||
</EndTime>
|
||||
<InputTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/InputTime,'yyyy年mm月dd日')"/>
|
||||
</InputTime>
|
||||
<Inputer>
|
||||
<xsl:value-of select="/NewDataSet/Table/Inputer"/>
|
||||
</Inputer>
|
||||
<Status>
|
||||
|
||||
<xsl:choose>
|
||||
|
||||
<xsl:when test="/NewDataSet/Table/Status = '1'">
|
||||
预告
|
||||
</xsl:when>
|
||||
<xsl:when test="/NewDataSet/Table/Status = '2'">
|
||||
正在进行中
|
||||
</xsl:when>
|
||||
<xsl:when test="/NewDataSet/Table/Status = '3'">
|
||||
已经结束
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
未知
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</Status>
|
||||
<StatusValue>
|
||||
<xsl:value-of select="/NewDataSet/Table/Status"/>
|
||||
</StatusValue>
|
||||
<ShowBeginTime>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/NewDataSet/Table/Status = '1'">
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/InterviewTime,'yyyy年mm月dd日 hh时')"/>(星期<xsl:value-of select="pe:ConverToWeek(/NewDataSet/Table/InterviewTime)"/>)
|
||||
</xsl:when>
|
||||
<xsl:when test="/NewDataSet/Table/Status = '2'">
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/BeginTime,'yyyy年mm月dd日 hh时')"/>(星期<xsl:value-of select="pe:ConverToWeek(/NewDataSet/Table/BeginTime)"/>)
|
||||
</xsl:when>
|
||||
<xsl:when test="/NewDataSet/Table/Status = '3'">
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/BeginTime,'yyyy年mm月dd日 hh时')"/>(星期<xsl:value-of select="pe:ConverToWeek(/NewDataSet/Table/BeginTime)"/>)
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/BeginTime,'yyyy年mm月dd日 hh时')"/>(星期<xsl:value-of select="pe:ConverToWeek(/NewDataSet/Table/BeginTime)"/>)
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</ShowBeginTime>
|
||||
</Root>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<LabelTemplate><![CDATA[<a href="{PE.SiteConfig.sitepath/}">{PE.SiteConfig.SiteName /}</a> > <a href="{PE.SiteConfig.ApplicationPath/}Government/Interview/Index.aspx">在线访谈</a> ]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_GV_InterviewTopic WHERE InterviewId = @interviewId AND Status = 2 AND TopicId NOT IN (SELECT TOP @startrow TopicId FROM PE_GV_InterviewTopic WHERE InterviewId = @interviewId AND Status = 2)</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="interviewId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<dt>
|
||||
<em>
|
||||
</em>
|
||||
<b>
|
||||
</b>
|
||||
<span> </span>
|
||||
</dt>
|
||||
<dd>
|
||||
暂时没有网友提问
|
||||
</dd>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<dt>
|
||||
<em>
|
||||
<xsl:value-of select="position()"/>
|
||||
</em>
|
||||
<b>【网友】<xsl:value-of select="NickName"/>
|
||||
</b>
|
||||
<span> 提问时间: [<xsl:value-of select="pe:FormatDate(InputTime,'yyyy-mm-dd hh:ff:ss')"/>] </span>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:HtmlEncode(Content)"/>
|
||||
</dd>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>SELECT COUNT(TopicId) FROM PE_GV_InterviewTopic WHERE InterviewId = @interviewId AND Status = 2</LabelSqlCount>
|
||||
<LabelSqlPage>
|
||||
</LabelSqlPage>
|
||||
</root>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP 1 * FROM PE_GV_Interview WHERE Status = 1 ORDER BY BeginTime DESC</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:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
没有任何背景资料内容
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
{PE.SiteConfig.ApplicationPath/}Government/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
<xsl:if test="Status = 1">
|
||||
<strong>预告:</strong>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="InterviewTitle"/>
|
||||
</a>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>10</default>
|
||||
<intro>输出的项目数量</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty * FROM PE_CommonModel WHERE Status = 99 AND GeneralID IN (SELECT GeneralId FROM PE_GV_InterviewRelationInfo WHERE InterviewId = @interviewId AND InfoType = 2) ORDER BY GeneralID DESC</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="interviewId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
没有任何背景资料内容
|
||||
</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,50,'…')" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_GV_Interview WHERE Status != 0 AND InterviewId NOT IN (SELECT TOP @startrow InterviewId FROM PE_GV_Interview WHERE Status != 0 ORDER BY BeginTime DESC) ORDER BY BeginTime DESC</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:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<li>·暂时没有其它访谈</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
{PE.SiteConfig.ApplicationPath/}Government/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
·<xsl:choose>
|
||||
<xsl:when test="Status = 1">
|
||||
<strong>预告:</strong>
|
||||
</xsl:when>
|
||||
<xsl:when test="Status = 2">
|
||||
<strong>进行中:</strong>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="pe:CutText(InterviewTitle,48,'...')"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>SELECT COUNT(InterviewId) FROM PE_GV_Interview WHERE Status != 0</LabelSqlCount>
|
||||
<LabelSqlPage>
|
||||
</LabelSqlPage>
|
||||
</root>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>10</default>
|
||||
<intro>输出的项目数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>pictureClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>图片Class</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题Class</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty NodeID,GeneralID,InputTime,PinyinTitle,DefaultPicUrl,Title FROM PE_CommonModel WHERE GeneralID IN (SELECT GeneralId FROM PE_GV_InterviewRelationInfo WHERE InterviewId = @interviewId AND InfoType = 3) AND Status = 99 ORDER BY GeneralID DESC</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="interviewId" />
|
||||
<xsl:param name="pictureClass" />
|
||||
<xsl:param name="titleClass" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
没有任何图片内容
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<xsl:element name="div">
|
||||
<xsl:if test="$pictureClass != ''">
|
||||
<xsl:attribute name="class">
|
||||
<xsl:value-of select="$pictureClass"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<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:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="DefaultPicUrl != ''">
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>
|
||||
<xsl:value-of select="DefaultPicUrl"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:InstallDir()"/>Images/nopic.gif
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</xsl:element>
|
||||
<xsl:element name="div">
|
||||
<xsl:if test="$titleClass!= ''">
|
||||
<xsl:attribute name="class">
|
||||
<xsl:value-of select="$titleClass"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<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,20,'…')" />
|
||||
</a>
|
||||
</xsl:element>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>10</default>
|
||||
<intro>显示个数</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty NodeID,GeneralID,InputTime,PinyinTitle,DefaultPicUrl,Title FROM PE_CommonModel WHERE GeneralID IN (SELECT GeneralId FROM PE_GV_InterviewRelationInfo WHERE InterviewId = @interviewId AND InfoType = 3) AND Status = 99 ORDER BY GeneralID DESC</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="interviewId" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
没有任何图片内容
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<div>
|
||||
<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:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="DefaultPicUrl != ''">
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>
|
||||
<xsl:value-of select="DefaultPicUrl"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:InstallDir()"/>Images/nopic.gif
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<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,20,'…')" />
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>10</default>
|
||||
<intro>输出的项目数量</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty * FROM PE_CommonModel WHERE Status = 99 AND GeneralID IN (SELECT GeneralId FROM PE_GV_InterviewRelationInfo WHERE InterviewId = @interviewId AND InfoType = 1) ORDER BY GeneralID DESC</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="interviewId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose><xsl:when test="count(NewDataSet/Table) = 0">
|
||||
没有任何摘要内容
|
||||
</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,50,'…')" />
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<OutType>sin</OutType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<IsXsltSql>true</IsXsltSql>
|
||||
<attributes>
|
||||
<name>width</name>
|
||||
<datatype>int</datatype>
|
||||
<default>640</default>
|
||||
<intro>宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>height</name>
|
||||
<datatype>int</datatype>
|
||||
<default>480</default>
|
||||
<intro>高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>videoPath</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>视频地址</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>onJavaScriptBridgeCreated</name>
|
||||
<datatype>string</datatype>
|
||||
<default></default>
|
||||
<intro>回调函数,该Javascript函数可以对播放器进行播放控制</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>title</name>
|
||||
<datatype>string</datatype>
|
||||
<default></default>
|
||||
<intro>视频标题</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>preroll</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>正片前广告地址</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>prerollSite</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>正片前广告宣传网站地址</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bannerImageUrl</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>暂停时广告地址</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bannerUrl</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>暂停时广告宣传网站地址</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>scaleMode</name>
|
||||
<datatype>string</datatype>
|
||||
<default>letterBox</default>
|
||||
<intro>缩放模式{原始:letterbox, 4比3:4To3, 16比9:16To9, 铺满:stretch}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>autoPlay</name>
|
||||
<datatype>string</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否自动播放{是:true, 否:false}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>controlBarAutoHide</name>
|
||||
<datatype>string</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否自动隐藏控制栏{是:true, 否:false}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>streamType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>liveOrRecorded</default>
|
||||
<intro>媒体流类型{点播或直播:liveOrRecorded, 直播:live,录播:recorded,dvr:dvr}</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<LabelSqlString>
|
||||
</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" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="width"/>
|
||||
<xsl:param name="height"/>
|
||||
<xsl:param name="videoPath"/>
|
||||
<xsl:param name="title"/>
|
||||
<xsl:param name="preroll"/>
|
||||
<xsl:param name="prerollSite"/>
|
||||
<xsl:param name="bannerImageUrl"/>
|
||||
<xsl:param name="bannerUrl"/>
|
||||
<xsl:param name="scaleMode"/>
|
||||
<xsl:param name="autoPlay"/>
|
||||
<xsl:param name="controlBarAutoHide"/>
|
||||
<xsl:param name="onJavaScriptBridgeCreated"/>
|
||||
<xsl:param name="streamType"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$videoPath=''">
|
||||
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div id="powerPlayback"></div>
|
||||
<script language="javascript" type="text/javascript" src="{pe:InstallDir()}js/Government/swfobject.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
document.getElementById("interviewImage").style.display = "none";
|
||||
var parameters =
|
||||
{ src: "<xsl:value-of select="$videoPath" />"
|
||||
,autoPlay: <xsl:value-of select="$autoPlay" />
|
||||
,title:"<xsl:value-of select="$title" />"
|
||||
,preroll:"<xsl:value-of select="$preroll" />"
|
||||
,prerollSite:"<xsl:value-of select="$prerollSite" />"
|
||||
,bannerImageUrl:"<xsl:value-of select="$bannerImageUrl" />"
|
||||
,bannerUrl:"<xsl:value-of select="$bannerUrl" />"
|
||||
,scaleMode:"<xsl:value-of select="$scaleMode" />"
|
||||
,bannerUrl:"<xsl:value-of select="$bannerUrl" />"
|
||||
,controlBarAutoHide: <xsl:value-of select="$controlBarAutoHide" />
|
||||
,streamType:"<xsl:value-of select="$streamType" />"
|
||||
,javascriptCallbackFunction: "<xsl:value-of select="$onJavaScriptBridgeCreated" />"
|
||||
};
|
||||
|
||||
swfobject.embedSWF
|
||||
( "<xsl:value-of select="pe:InstallDir()"/>Player/PowerPlayback.swf"
|
||||
,"powerPlayback"
|
||||
,<xsl:value-of select="$width" />
|
||||
,<xsl:value-of select="$height" />
|
||||
,"10.1.0"
|
||||
,{}
|
||||
,parameters
|
||||
,{ allowFullScreen: "true",wmode:"opaque"}
|
||||
,{ name: "powerPlayback" }
|
||||
);
|
||||
|
||||
</script>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</LabelTemplate>
|
||||
<Version officialVersion="" modifiedVersions="4702" compatibleVersion="" />
|
||||
</root>
|
||||
@@ -0,0 +1,145 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>在线访谈即时刷新文字列表</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3501" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>InterviewId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>在线访谈唯一id</intro>
|
||||
</attributes>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<div class="Iv_showconbox" id="IvShowConBoxId">
|
||||
<dt><span>访谈内容 >></span>
|
||||
<label id="labASC" onclick="changeorder('0');">正序</label>
|
||||
<label id="labDESC" onclick="changeorder('1');">倒序</label>
|
||||
间隔:
|
||||
<select id="selectinterval" onchange="setIntervalTime(this);">
|
||||
<option value="30000">30秒</option>
|
||||
<option value="60000" selected="selected">1分钟</option>
|
||||
<option value="120000">2分钟</option>
|
||||
<option value="300000">5分钟</option>
|
||||
</select>
|
||||
<a href="#IvShowConBoxId">自动刷新</a>
|
||||
<a href="javascript:handmovement()">手动刷新</a>
|
||||
</dt>
|
||||
</div>
|
||||
<div class="Iv_showconbox">
|
||||
<dd>
|
||||
<ul class="Iv_showcon" id="interviewdatalist"></ul>
|
||||
</dd>
|
||||
<dd class="Iv_showall"></dd>
|
||||
</div>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
var InterviewId = "<xsl:value-of select="$InterviewId"/>";
|
||||
var statusvalue="<xsl:value-of select="$StatusValue"/>";
|
||||
var interval;
|
||||
var order="0";
|
||||
var renew;
|
||||
var scroll;
|
||||
var responsevalue;
|
||||
function ReaderData(value)
|
||||
{
|
||||
responsevalue=value;
|
||||
toInnerHtml();
|
||||
$(document).scrollTop(scroll);
|
||||
}
|
||||
function toInnerHtml()
|
||||
{
|
||||
var template="";
|
||||
var j=0;
|
||||
for(var i=0;i<responsevalue.length;i++)
|
||||
{
|
||||
if(order=="0")
|
||||
{
|
||||
j=i;
|
||||
}
|
||||
else
|
||||
{
|
||||
j=responsevalue.length-i-1;
|
||||
}
|
||||
template+="<li><p class=\"answer\"><b>【"+responsevalue[j].Speaker+"】</b>"+responsevalue[j].Content+"<span> ["+responsevalue[j].InputTime+"] </span></p></li>";
|
||||
}
|
||||
document.getElementById("interviewdatalist").innerHTML=template;
|
||||
}
|
||||
function loadData()
|
||||
{
|
||||
scroll=$(document).scrollTop();
|
||||
document.getElementById("interviewdatalist").innerHTML="<li><p>正在加载数据...</p></li>";
|
||||
PowerEasy.Module.Government.WebSite.Government.Interview.DetailListService.GetDetailListById(InterviewId,ReaderData);
|
||||
}
|
||||
|
||||
function setIntervalTime(obj) {
|
||||
if(statusvalue==2){
|
||||
interval = obj.options[obj.selectedIndex].value;
|
||||
clearTimeout(renew);
|
||||
renew = setInterval("loadData()", interval);
|
||||
}
|
||||
}
|
||||
window.onload = function() {
|
||||
var obj = document.getElementById("selectinterval");
|
||||
interval = obj.options[obj.selectedIndex].value;
|
||||
setLable();
|
||||
loadData();
|
||||
if(statusvalue==2){
|
||||
renew = setInterval("loadData()", interval);}
|
||||
}
|
||||
function changeorder(text) {
|
||||
clearTimeout(renew);
|
||||
order=text;
|
||||
setLable();
|
||||
toInnerHtml();
|
||||
if(statusvalue==2){
|
||||
renew = setInterval("loadData()", interval);
|
||||
}
|
||||
}
|
||||
function handmovement()
|
||||
{
|
||||
switch(parseInt(statusvalue))
|
||||
{
|
||||
case 1:
|
||||
alert("访谈正在预告中...");
|
||||
break;
|
||||
case 2:
|
||||
clearTimeout(renew);
|
||||
loadData();
|
||||
renew = setInterval("loadData()", interval);
|
||||
break;
|
||||
case 3:
|
||||
alert("访谈已经结束!");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function setLable() {
|
||||
var labDESC = document.getElementById("labDESC");
|
||||
var labASC = document.getElementById("labASC");
|
||||
switch (order) {
|
||||
case "0":
|
||||
labASC.className = "Iv_showconbox_dt_label";
|
||||
labDESC.className = "";
|
||||
break;
|
||||
case "1":
|
||||
labASC.className = "";
|
||||
labDESC.className = "Iv_showconbox_dt_label";
|
||||
break;
|
||||
default:
|
||||
labASC.className = "Iv_showconbox_dt_label";
|
||||
labDESC.className = "";
|
||||
break;
|
||||
}
|
||||
}
|
||||
</script>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>StatusValue</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>在线访谈状态值</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelSqlString>SELECT * FROM PE_GV_InterviewDetail WHERE InterviewId = @interviewId</LabelSqlString>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2512" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<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="interviewId" />
|
||||
<xsl:param name="pictureClass" />
|
||||
<xsl:param name="titleClass" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
没有任何文字内容
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<p class="answer">
|
||||
<b>【<xsl:value-of select="Speaker"/>】</b>
|
||||
<xsl:value-of select="Content"/>
|
||||
<span> 回复时间: [<xsl:value-of select="pe:FormatDate(InputTime,'yyyy-mm-dd hh:ff:ss')"/>] </span>
|
||||
</p>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2511" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT NodeID,GeneralID,InputTime,PinyinTitle,DefaultPicUrl,Title FROM PE_CommonModel WHERE GeneralID IN (SELECT MIN(GeneralId) FROM PE_GV_InterviewRelationInfo WHERE InterviewId = @interviewId AND InfoType = 3) AND Status = 99 ORDER BY GeneralID DESC</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="interviewId" />
|
||||
<xsl:param name="isShowLink" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>Images/nopic.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="isShowLink = 'True'">
|
||||
<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:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="DefaultPicUrl != ''">
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>
|
||||
<xsl:value-of select="DefaultPicUrl"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:InstallDir()"/>Images/nopic.gif
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
</xsl:element>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:choose>
|
||||
<xsl:when test="DefaultPicUrl != ''">
|
||||
<xsl:value-of select="pe:UpLoadDir()"/>
|
||||
<xsl:value-of select="DefaultPicUrl"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:InstallDir()"/>Images/nopic.gif
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>isShowLink</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>True</default>
|
||||
<intro>是否显示链接</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>3</default>
|
||||
<intro>输出个数</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty * FROM PE_GV_Interview WHERE Status != 0 AND Status != 1 ORDER BY BeginTime DESC</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="outputQty" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
没有访谈内容
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<div class="Iv_homelistpic">
|
||||
{PE.Label id="访谈首图片" interviewId="<xsl:value-of select="InterviewId"/>" isShowLink="false" /}
|
||||
</div>
|
||||
<div class="Iv_homelisttext">
|
||||
<p>
|
||||
<b>主 题:</b> <xsl:value-of select="InterviewTitle"/>
|
||||
</p>
|
||||
<p>
|
||||
<b>时 间:</b> <xsl:value-of select="pe:FormatDate(BeginTime,'yyyy年mm月dd日 hh时')"/>(星期<xsl:value-of select="pe:ConverToWeek(BeginTime)"/>)</p>
|
||||
<p>
|
||||
<b>嘉 宾:</b> <xsl:value-of select="pe:ReplaceText(HonoredGuest,'$$$',' ')"/>
|
||||
</p>
|
||||
<p>
|
||||
<b>提 示:</b> <xsl:value-of select="Content"/> </p>
|
||||
</div>
|
||||
<div class="clearbox">
|
||||
</div>
|
||||
<div class="Iv_homelistline">
|
||||
<b>
|
||||
<a>
|
||||
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}Government/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>访谈实录 >>
|
||||
</a>
|
||||
</b>
|
||||
<span>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
{PE.SiteConfig.ApplicationPath/}Government/Interview/Picture.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
_blank
|
||||
</xsl:attribute>
|
||||
图片</a>
|
||||
</span>
|
||||
<span>
|
||||
<a>
|
||||
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}Government/Interview/Detail.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>文字</a>
|
||||
</span>
|
||||
<span>
|
||||
<a>
|
||||
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}Government/Interview/Abstract.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>访谈摘要</a>
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>访谈类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>12</default>
|
||||
<intro>输出个数</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty * FROM PE_GV_Interview WHERE Status != 0 ORDER BY BeginTime DESC</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="outputQty" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<li>·暂时没有其它访谈</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<li>
|
||||
<a><xsl:attribute name="href">
|
||||
{PE.SiteConfig.ApplicationPath/}Government/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
·<xsl:choose>
|
||||
<xsl:when test="Status = 1">
|
||||
<strong>预告:</strong>
|
||||
</xsl:when>
|
||||
<xsl:when test="Status = 2">
|
||||
<strong>进行中:</strong>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<strong>回放:</strong>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="pe:CutText(InterviewTitle,48,'...')"/></a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>startRow</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>3</default>
|
||||
<intro>起始行</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user