first commit
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelSqlString>SELECT TOP 1 PE_CommonModel.*,PE_U_Article.* FROM PE_CommonModel INNER JOIN PE_U_Article ON PE_CommonModel.ItemID = PE_U_Article.ID WHERE (PE_CommonModel.GeneralID = @itemId) AND PE_CommonModel.Status = 99</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:param name="itemId"/>
|
||||
<xsl:template match="/">
|
||||
<card id="main" title="{pe:SiteName()}" newcontext="false" ordered="true">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:WapEnable() = 'false'">
|
||||
<p align="left">本站尚未开放WAP功能!</p> </xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table) = 0">
|
||||
<p>内容不存在!</p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<p>
|
||||
<xsl:value-of select="NewDataSet/Table/Title"/>
|
||||
</p>
|
||||
<p>作者:<xsl:value-of select="/NewDataSet/Table/Author"/>来源:<xsl:value-of select="/NewDataSet/Table/CopyFrom"/>更新时间:<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy年mm月dd日')"/>
|
||||
</p>
|
||||
<p>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/NewDataSet/Table/PaginationType = '手动分页'">{PE.ContentPage id="contentpage" mode="manual" pagesize="<xsl:value-of select="/NewDataSet/Table/MaxCharPerPage" />" urlpage="true"}</xsl:when>
|
||||
<xsl:when test="/NewDataSet/Table/PaginationType = '自动分页'">{PE.ContentPage id="contentpage" mode="auto" pagesize="<xsl:value-of select="/NewDataSet/Table/MaxCharPerPage" />" urlpage="true"}</xsl:when>
|
||||
<xsl:otherwise>{PE.ContentPage id="contentpage" mode="none"}</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:FiltText(pe:FiltInsideLink(/NewDataSet/Table/Content))" />{/PE.ContentPage}</p>
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:SitePath()"/>/wap/wap.aspx</xsl:attribute>返回首页</a>
|
||||
</p>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</card>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>itemId</name>
|
||||
<default>1</default>
|
||||
<intro>文章ID</intro>
|
||||
</attributes>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3602" compatibleVersion="" />
|
||||
<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="/">
|
||||
<a id="db" ></a>
|
||||
<div class="header">
|
||||
<div id="logo">
|
||||
<a href="Default.aspx?sid=@Request_sid">
|
||||
|
||||
<img src="images/logo.gif" alt="动易网络" /></a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3600" compatibleVersion="" />
|
||||
<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="/">
|
||||
<a id="db" >
|
||||
</a>
|
||||
<div class="header">
|
||||
<div id="logo">
|
||||
<a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/Default.aspx?sid=@Request_sid</xsl:attribute>
|
||||
<img alt="动易网络">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/images/logo.gif</xsl:attribute>
|
||||
</img>
|
||||
</a>
|
||||
</div>
|
||||
<div class="reg">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetLoginedUserInfo('UserName') =''">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/Login.aspx?sid=@Request_sid</xsl:attribute>登录</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/Register.aspx?sid=@Request_sid</xsl:attribute>注册</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:GetLoginedUserInfo('UserName')"/>欢迎您!<a><xsl:attribute name="href"><xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/Logout.aspx?sid=@Request_sid</xsl:attribute>退出</a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3503" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>WapArticleId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>-1</default>
|
||||
<intro>WAP文章ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @Count * FROM PE_Comment WHERE WapId=@WapArticleId AND CommentType=2 AND Status=1 ORDER BY UPDATETIME 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="GeneralID" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<div class="article_Comment">
|
||||
<xsl:for-each select="Table">
|
||||
<p class="common_title">
|
||||
<xsl:choose>
|
||||
<xsl:when test="normalize-space(UserName)=''">
|
||||
手机网友
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="UserName"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>于
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yy-mm-dd hh:ff')"/>发表
|
||||
</p>
|
||||
|
||||
<p><xsl:value-of select="Content"/></p>
|
||||
|
||||
</xsl:for-each>
|
||||
<div class="more_Comment">
|
||||
<a href='Comment.aspx?WapArticleId=@Request_WapArticleId&wapCategoryId=@Request_WapCategoryId&sid=@Request_sid'>更多评论</a>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>Count</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>10</default>
|
||||
<intro>显示数量</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,46 @@
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>SELECT TOP @outputQty PE_CommonModel.* FROM PE_CommonModel WHERE NodeID IN (@nodeArray) AND Status = 99 ORDER BY UpdateTime DESC</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" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table) = 0">
|
||||
<p>本栏目尚无内容!</p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:SitePath()"/>/wap/wapitem.aspx?id=<xsl:value-of select="GeneralID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>nodeArray</name>
|
||||
<default>1,2,3,4</default>
|
||||
<intro>栏目ID组</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>列表数量</intro>
|
||||
</attributes>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,49 @@
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>SELECT TOP @pagesize PE_Nodes.* FROM PE_Nodes WHERE NodeID NOT IN (SELECT TOP @startrow NodeID FROM PE_Nodes WHERE ParentID = @parentId ORDER BY OrderID) AND (ParentID = @parentId) ORDER BY OrderID</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" />
|
||||
<xsl:param name="parentId" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<card id="main" title="{pe:SiteName()}" newcontext="false" ordered="true">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:WapEnable() = 'false'">
|
||||
<p align="left">本站尚未开放WAP功能!</p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table) = 0">
|
||||
<p>
|
||||
<xsl:value-of select="pe:GetNode($parentId,'name')" />
|
||||
</p>{PE.Label id="WAP终极栏目信息列表" nodeId="<xsl:value-of select="$parentId"/>" /}</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<p>
|
||||
<xsl:value-of select="NodeName"/>
|
||||
</p>{PE.Label id="WAP栏目信息列表" nodeArray="<xsl:value-of select="arrChildID" />" /}</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</card>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>父栏目ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>SELECT COUNT(*) FROM PE_Nodes WHERE ParentID = @parentId</LabelSqlCount>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,43 @@
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>SELECT TOP @pagesize PE_CommonModel.* FROM PE_CommonModel WHERE GeneralID NOT IN (SELECT TOP @startrow GeneralID FROM PE_CommonModel WHERE NodeID = @nodeId ORDER BY UpdateTime DESC) AND (NodeID = @nodeId) AND Status = 99 ORDER BY UpdateTime DESC</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" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table) = 0">
|
||||
<p>本栏目尚无内容!</p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:SitePath()"/>/wap/wapitem.aspx?id=<xsl:value-of select="GeneralID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>nodeId</name>
|
||||
<default>1</default>
|
||||
<intro>栏目ID</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>SELECT COUNT(*) FROM PE_CommonModel WHERE NodeID = @nodeId AND Status = 99 ORDER BY UpdateTime DESC</LabelSqlCount>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>wap</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3502" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>WapCategoryID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>-1</default>
|
||||
<intro>Wap类别</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>WapArticleId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>-1</default>
|
||||
<intro>Wap内容ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_WAP_ARTICLE A WHERE A.WapArticleId<@WapArticleId AND A.WapCategoryID=@WapCategoryID AND A.STATUS=99 ORDER BY A.WapArticleId 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="WapCategoryID" />
|
||||
<xsl:param name="WapArticleId" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<font style="color:red"><<没有了!<br/>
|
||||
</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<<<a>
|
||||
<xsl:attribute name="href">
|
||||
Content.aspx?WapArticleId=<xsl:value-of select="WapArticleId"/>&WapCategoryId=@request_WapCategoryId<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
<br/>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>wap</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3502" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>WapCategoryID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>-1</default>
|
||||
<intro>Wap类别</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>WapArticleId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>-1</default>
|
||||
<intro>Wap内容ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_WAP_ARTICLE A WHERE A.WapArticleId>@WapArticleId AND A.WapCategoryID=@WapCategoryID AND A.STATUS=99 ORDER BY A.WapArticleId ASC]]></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="WapCategoryID" />
|
||||
<xsl:param name="WapArticleId" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<font style="color:red">>>没有了!</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
>> <a>
|
||||
<xsl:attribute name="href">
|
||||
Content.aspx?WapArticleId=<xsl:value-of select="WapArticleId"/>&WapCategoryId=@request_WapCategoryId<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Title"/>
|
||||
</a><br/>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4004" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>letterId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>当前信件ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 PE_GV_Letters.* FROM PE_GV_Letters WHERE LetterId < @letterId AND Status > -1 AND IsPublic = 1 AND LetterTypeId = @typeId ORDER BY LetterId 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="letterId" />
|
||||
<xsl:param name="titleLength"/>
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<div>
|
||||
<font style="color:red"><<没有了!
|
||||
</font>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<< <a>
|
||||
<xsl:attribute name="href">
|
||||
Letter.aspx?LetterId=<xsl:value-of select="LetterId"/>&TypeId=<xsl:value-of select="LetterTypeId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
||||
</a>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>30</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>typeId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>信件类型</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4004" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>letterId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>当前信件ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 PE_GV_Letters.* FROM PE_GV_Letters WHERE LetterId > @letterId AND Status > -1 AND IsPublic = 1 AND LetterTypeId = @typeId ORDER BY LetterId 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="letterId" />
|
||||
<xsl:param name="titleLength"/>
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<div><font style="color:red">>>没有了!</font>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
>> <a>
|
||||
<xsl:attribute name="href">
|
||||
Letter.aspx?LetterId=<xsl:value-of select="LetterId"/>&TypeId=<xsl:value-of select="LetterTypeId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
||||
</a>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>30</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>typeId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>信件类型</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4000" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>letterId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>信件ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 PE_GV_Letters.* FROM PE_GV_Letters WHERE LetterId = @letterId AND IsPublic = 1 AND Status > -1]]></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="letterId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<div class="article_title">
|
||||
<xsl:value-of select="Title"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>提交人:</span>
|
||||
<xsl:value-of select="Name"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>写信日期:</span>
|
||||
<xsl:value-of select="pe:FormatDate(InputTime,'yyyy-mm-dd')"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>受理编号:</span>
|
||||
<xsl:value-of select="IndexNumber"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>信件内容:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="Content"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4002" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>name</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>姓名</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 PE_GV_Letters.* FROM PE_GV_Letters WHERE Name='@name' AND IndexNumber='@indexNumber']]></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="letterId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<p>
|
||||
信件不存在!<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/Letter/Search.aspx</xsl:attribute>重新查询</a>
|
||||
</p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<div class="article_title">
|
||||
<xsl:value-of select="Title"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>提交人:</span>
|
||||
<xsl:value-of select="Name"/>
|
||||
<br/>
|
||||
<span>写信日期:</span>
|
||||
<xsl:value-of select="pe:FormatDate(InputTime,'yyyy-mm-dd')"/>
|
||||
<br/>
|
||||
<span>受理编号:</span>
|
||||
<xsl:value-of select="IndexNumber"/>
|
||||
<br/>
|
||||
<span>信件内容:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="Content"/>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>indexNumber</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>受理编号</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4000" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>6</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty PE_GV_LetterType.* FROM PE_GV_LetterType </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="/NewDataSet/Table">
|
||||
<div class="column_title">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/Letter/List.aspx?typeId=<xsl:value-of select="LetterTypeId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="LetterTypeName"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="column_content">
|
||||
<ul>
|
||||
{PE.Label id="通用信件信息列表" bindStyle="Wap样式" outputQty="5" titleLenth="32" usepage="false" openType="_blank" typeId="<xsl:value-of select="LetterTypeId"/>" /}
|
||||
</ul>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4002" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>6</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @outputQty PE_GV_LetterType.* FROM PE_GV_LetterType </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:param name="titleLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>wap/Letter/List.aspx?typeId=<xsl:value-of select="LetterTypeId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="LetterTypeName"/>
|
||||
</a>|
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3107" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>WapArticleId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>文章ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT * FROM PE_Wap_Article A WHERE WapArticleId=@WapArticleId</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:param name="WapArticleId"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
|
||||
<div class="article_title"><xsl:value-of select="Title"/></div>
|
||||
<div class="article_time">发表日期:<xsl:value-of select='pe:FormatDate(UpdateTime,"yyyy-mm-dd")'/></div>
|
||||
<div class="article_content">
|
||||
<xsl:value-of disable-output-escaping="yes" select="Content"/>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3506" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>WapCategoryId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>Wap类别</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP @pagesize * FROM PE_Wap_Article WHERE WapArticleId NOT IN (SELECT TOP @startrow WapArticleId FROM PE_Wap_Article WHERE WapCategoryId = @WapCategoryId AND Status>0 ORDER BY UpdateTime DESC) AND WapCategoryId = @WapCategoryId AND Status>0 ORDER BY UpdateTime DESC]]></LabelSqlString>
|
||||
<LabelSqlCount><![CDATA[SELECT COUNT(*) FROM PE_Wap_Article WHERE WapCategoryId = @WapCategoryId AND Status>0]]></LabelSqlCount>
|
||||
<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="WapCategoryId" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
Content.aspx?WapArticleid=<xsl:value-of select="WapArticleId"/>&WapCategoryId=<xsl:value-of select="WapCategoryID"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="Title"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>其他类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3101" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>Type</name>
|
||||
<datatype>string</datatype>
|
||||
<default>0</default>
|
||||
<intro>是否为第一个参数</intro>
|
||||
</attributes>
|
||||
<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" />
|
||||
<xsl:template match="/">
|
||||
<xsl:value-of select="pe:AddSid(Type)"/>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>wap</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3500" compatibleVersion="" />
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT * FROM PE_WAP_CATEGORY ORDER BY ORDERID</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="xml" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<a><xsl:attribute name="href"> ContentList.aspx?wapCategoryId=<xsl:value-of select="WapCategoryId"/><xsl:value-of select="pe:AddSid(1)"/></xsl:attribute><xsl:value-of select="WapCategoryName"/></a>| </xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>wap</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3105" compatibleVersion="" />
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @CategoryLength * FROM PE_Wap_Category ORDER BY OrderId</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="xml" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="OrderID mod 3 = 0">
|
||||
<div class="column_title">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
ContentList.aspx?wapCategoryId=<xsl:value-of select="WapCategoryId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="WapCategoryName"/>
|
||||
</a>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:when test="OrderID mod 3 = 1">
|
||||
<div class="column_title">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
ContentList.aspx?wapCategoryId=<xsl:value-of select="WapCategoryId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="WapCategoryName"/>
|
||||
</a>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div class="column_title" >
|
||||
<a >
|
||||
<xsl:attribute name="href">
|
||||
ContentList.aspx?wapCategoryId=<xsl:value-of select="WapCategoryId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="WapCategoryName"/>
|
||||
</a>
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<div class="column_content">
|
||||
<ul>
|
||||
{PE.Label id="Wap类别详情" WapCategory="<xsl:value-of select="WapCategoryId"/>" Lenth="<xsl:value-of select="@ContentLength" />" TitleLenth="25" /}
|
||||
</ul>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>ContentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>5</default>
|
||||
<intro>每个栏目显示的文章数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>CategoryLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>6</default>
|
||||
<intro>显示的类别数</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3103" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>WapCategory</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>Wap栏目类别</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>Lenth</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>5</default>
|
||||
<intro>显示的条数</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP @Lenth * FROM PE_Wap_Article A WHERE A.Status > 0 AND A.WapCategoryID = @WapCategory ORDER BY A.InputTime 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="WapCategory" />
|
||||
<xsl:param name="Lenth" />
|
||||
<xsl:param name="TitleLenth" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
Content.aspx?WapArticleId=<xsl:value-of select="WapArticleId"/>&WapCategoryId=<xsl:value-of select="WapCategoryID"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="Title"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$TitleLenth,'...')"/>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>TitleLenth</name>
|
||||
<datatype>int</datatype>
|
||||
<default>18</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4005" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>40</default>
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>
|
||||
</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>string</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否分页</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>select 1</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:param name="titleLength" />
|
||||
<xsl:param name="interviewId" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="usePage" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template name="_constraint">
|
||||
<xsl:param name="_doubleApos"/>
|
||||
InterviewId = <xsl:value-of select="$interviewId"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="/">
|
||||
{PE.Label id="Wap获取访谈发言列表_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" queryCond="EXEC [dbo].[PR_Common_PagingLarge] 'PE_GV_InterviewDetail', 'DetailId', '*', @pagesize, @startrow, '<xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'true'"/>
|
||||
</xsl:call-template>', '', 'InputTime DESC'" queryCount="SELECT COUNT(*) FROM PE_GV_InterviewDetail WHERE <xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'false'"/>
|
||||
</xsl:call-template>" page="<xsl:value-of select="$usePage"/>" pagesize="<xsl:value-of select="$outputQty"/>" /}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4008" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>40</default>
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>
|
||||
</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>string</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否分页</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</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:param name="usePage" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<p>
|
||||
<div class="article_content">
|
||||
【<xsl:value-of select="Speaker"/>】 [<xsl:value-of select="pe:FormatDate(InputTime,'yyyy-mm-dd hh:mm:ff')"/>]
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<xsl:value-of select="pe:CutText(Content,$titleLength,'...')"/>
|
||||
</div>
|
||||
</p>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>select 1</default>
|
||||
<intro>SQL查询</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>SQL统计</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4001" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 PE_GV_Interview.* FROM PE_GV_Interview WHERE InterviewId = @interviewId AND Status > 0]]></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="/NewDataSet/Table">
|
||||
<xsl:value-of select="InterviewTitle"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4006" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>40</default>
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>
|
||||
</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>string</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否分页</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>select 1</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:param name="titleLength" />
|
||||
<xsl:param name="interviewId" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="usePage" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template name="_constraint">
|
||||
<xsl:param name="_doubleApos"/>
|
||||
AND InterviewId = <xsl:value-of select="$interviewId"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="/">
|
||||
{PE.Label id="Wap获取访谈网友提问列表_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" queryCond="EXEC [dbo].[PR_Common_PagingLarge] 'PE_GV_InterviewTopic', 'TopicId', '*', @pagesize, @startrow, 'Status = 2 <xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'true'"/>
|
||||
</xsl:call-template>', '', 'InputTime DESC'" queryCount="SELECT COUNT(*) FROM PE_GV_InterviewTopic WHERE Status = 2 <xsl:call-template name="_constraint">
|
||||
<xsl:with-param name="_doubleApos" select="'false'"/>
|
||||
</xsl:call-template>" page="<xsl:value-of select="$usePage"/>" pagesize="<xsl:value-of select="$outputQty"/>" /}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4007" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>40</default>
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>
|
||||
</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>string</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否分页</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</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:param name="usePage" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<div>
|
||||
<div class="article_content">
|
||||
【<xsl:value-of select="NickName"/>】 [<xsl:value-of select="pe:FormatDate(InputTime,'yyyy-mm-dd hh:mm:ff')"/>]
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<xsl:value-of select="pe:CutText(Content,$titleLength,'...')"/>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>访谈ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>select 1</default>
|
||||
<intro>SQL查询</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>SQL统计</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4001" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>interviewId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 PE_GV_Interview.* FROM PE_GV_Interview WHERE InterviewId = @interviewId AND Status > 0]]></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="/NewDataSet/Table">
|
||||
<div class="article_title">
|
||||
主题:<xsl:value-of select="InterviewTitle"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>时间:</span>
|
||||
<xsl:value-of select="pe:FormatDate(InterviewTime,'yyyy年mm月dd日 hh时')"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>嘉宾:</span>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>状态:</span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="Status = 1">预告</xsl:when>
|
||||
<xsl:when test="Status = 2">进行中</xsl:when>
|
||||
<xsl:when test="Status = 3">已结束</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
<span>简介:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="Content"/>
|
||||
</div>
|
||||
<div class="article_content">
|
||||
访谈内容:<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>Wap/Interview/QuestionList.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>提问与点评</a>|<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>Wap/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>刷新</a>
|
||||
</div>
|
||||
{PE.Label id="Wap获取访谈发言列表" bindStyle="普通式" titleLength="1000" usePage="true" outputQty="5" interviewId="<xsl:value-of select="InterviewId"/>" /}
|
||||
<div class="page">{PE.Page id="wap_动易后台风格" datasource="Wap获取访谈发言列表_普通式" /}</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4005" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>输出记录数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>40</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<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:param name="usePage" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>Wap/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
||||
</xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="Status = 1">预告:</xsl:when>
|
||||
<xsl:when test="Status = 2">进行中:</xsl:when>
|
||||
<xsl:when test="Status = 3">已结束:</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="pe:CutText(InterviewTitle,$titleLength,'...')"/>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>标题式</default>
|
||||
<intro>
|
||||
</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>string</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否分页</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>select 1</default>
|
||||
<intro>SQL查询</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>SQL统计</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3506" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>WapArticleId</name>
|
||||
<datatype>sql.int</datatype>
|
||||
<default>-1</default>
|
||||
<intro>wap内容ID</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Comment WHERE CommentID NOT IN (SELECT TOP @startrow CommentID FROM PE_Comment WHERE WapId = @WapArticleId AND Status=1 AND CommentType=2 ORDER BY UpdateTime DESC) AND WapId= @WapArticleId AND Status=1 AND CommentType=2 ORDER BY UpdateTime DESC</LabelSqlString>
|
||||
<LabelSqlCount>SELECT COUNT(*) FROM PE_Comment WHERE WapId= @WapArticleId AND Status=1 AND CommentType=2</LabelSqlCount>
|
||||
<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="GeneralID" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<p>
|
||||
<xsl:choose>
|
||||
|
||||
<xsl:when test="normalize-space(UserName)=''">
|
||||
手机网友
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="UserName"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
||||
<xsl:value-of select="pe:FormatDate(UpdateTime,'yy-mm-dd hh:ff')"/>
|
||||
<br />
|
||||
<xsl:value-of select="Content"/>
|
||||
<br />
|
||||
</p>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3601" compatibleVersion="" />
|
||||
<LabelTemplate><![CDATA[<div id="footer">
|
||||
<div class="copyright">
|
||||
<a href="#db">返回顶部</a> <a href="{PE.SiteConfig.ApplicationPath/}Wap/Letter/Default.aspx?sid=@Request_sid">网上信访</a> <a href="{PE.SiteConfig.ApplicationPath/}Wap/Interview/Default.aspx?sid=@Request_sid">在线访谈</a> <a href="{PE.SiteConfig.ApplicationPath/}Wap/Default.aspx?sid=@Request_sid">返回首页</a>
|
||||
</div>
|
||||
</div>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4002" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>openType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>_blank</default>
|
||||
<intro>打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>select 1</default>
|
||||
<intro>SQL查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>SQL统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
<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="titleLength" />
|
||||
<xsl:param name="openType" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<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">
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>Wap/Letter/Letter.aspx?LetterId=<xsl:value-of select="LetterId"/>&TypeId=<xsl:value-of select="LetterTypeId"/>
|
||||
<xsl:value-of select="pe:AddSid(1)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user