first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,69 @@
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString>SELECT TOP 1 *
FROM
PE_CommonModel CM
INNER JOIN PE_U_Announce UT ON (CM.ItemID = UT.ID)
WHERE
CM.ItemID = @itemId AND
CM.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:template match="/">
<Root>
<NodeID>
<xsl:value-of select="/NewDataSet/Table/NodeID"/>
</NodeID>
<GeneralID>
<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
</GeneralID>
<Title>
<xsl:value-of select="pe:EncodeText(/NewDataSet/Table/Title,'htmlencode')"/>
</Title>
<Content>
<xsl:value-of disable-output-escaping="yes" select="/NewDataSet/Table/Content" />
</Content>
<Inputer>
<xsl:value-of select="/NewDataSet/Table/Inputer" />
</Inputer>
<Author>
<xsl:value-of select="/NewDataSet/Table/Author"/>
</Author>
<DateAndTime>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/DateAndTime,'yyyy-mm-dd')"/>
</DateAndTime>
<UpdateTime>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy-mm-dd')"/>
</UpdateTime>
<Hits>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</Hits>
<DayHits>
<xsl:value-of select="/NewDataSet/Table/DayHits+1"/>
</DayHits>
<WeekHits>
<xsl:value-of select="/NewDataSet/Table/WeekHits+1"/>
</WeekHits>
<MonthHits>
<xsl:value-of select="/NewDataSet/Table/MonthHits+1"/>
</MonthHits>
</Root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>公告ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>数据源</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>
</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2908" compatibleVersion="" />
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>公文ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 *
FROM
PE_CommonModel CM
INNER JOIN PE_U_OfficialDocument UR ON (CM.ItemID = UR.ID)
WHERE
CM.GeneralID = @itemId AND
CM.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="/">
<root>
<!--FieldTipsStart-->
<GeneralID>
<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
</GeneralID>
<NodeID>
<xsl:value-of select="/NewDataSet/Table/NodeID"/>
</NodeID>
<Title>
<xsl:value-of select="/NewDataSet/Table/Title"/>
</Title>
<FileHeader>
<xsl:value-of select="pe:ReplaceText(/NewDataSet/Table/DocHeader,'|','&lt;br/&gt;')"/>
</FileHeader>
<FileType>
<xsl:value-of select="/NewDataSet/Table/DocType"/>
</FileType>
<FileNumber>
<xsl:value-of select="/NewDataSet/Table/IndexNumber"/>
</FileNumber>
<Keyword>
<xsl:value-of select="pe:Trim(pe:EncodeText(pe:ReplaceText(/NewDataSet/Table/Keyword,'|',','),'htmlencode'),',')"/>
</Keyword>
<Content>
<xsl:value-of disable-output-escaping="yes" select="/NewDataSet/Table/Content"/>
</Content>
<CopyTo>
<xsl:value-of select="/NewDataSet/Table/CopyTo"/>
</CopyTo>
<ReleaseBy>
<xsl:value-of select="/NewDataSet/Table/DispatchUnits"/>
</ReleaseBy>
<PrintNumber>
<xsl:value-of select="/NewDataSet/Table/PrintNumber"/>
</PrintNumber>
<UpdateTime>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy年mm月dd日')"/>
</UpdateTime>
<!--FieldTipsEnd-->
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>
@@ -0,0 +1,34 @@
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelImage>
</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString>SELECT * FROM PE_U_FriendSite WHERE ID = @itemId</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>
<SiteUrl>
<xsl:value-of select="/NewDataSet/Table/SiteUrl"/>
</SiteUrl>
<ItemID>
<xsl:value-of select="/NewDataSet/Table/ID"/>
</ItemID>
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>友情链接ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,91 @@
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString>SELECT TOP 1 *
FROM
PE_CommonModel CM
INNER JOIN PE_U_Photo UT ON (CM.ItemID = UT.ID)
WHERE
CM.GeneralID = @itemId AND
CM.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="titleLength" />
<xsl:template match="/">
<root>
<NodeID>
<xsl:value-of select="/NewDataSet/Table/NodeID"/>
</NodeID>
<GeneralID>
<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
</GeneralID>
<Title>
<xsl:value-of select="/NewDataSet/Table/Title"/>
</Title>
<Inputer>
<xsl:value-of select="/NewDataSet/Table/Inputer"/>
</Inputer>
<Keyword>
<xsl:value-of select="pe:Trim(pe:EncodeText(pe:ReplaceText(/NewDataSet/Table/Keyword,'|',','),'htmlencode'),',')"/>
</Keyword>
<Hits>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</Hits>
<DayHits>
<xsl:value-of select="/NewDataSet/Table/DayHits"/>
</DayHits>
<WeekHits>
<xsl:value-of select="/NewDataSet/Table/WeekHits"/>
</WeekHits>
<MonthHits>
<xsl:value-of select="/NewDataSet/Table/MonthHits"/>
</MonthHits>
<UpdateTime>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy-mm-dd')"/>
</UpdateTime>
<LinkAuthor>
<xsl:value-of select="pe:EncodeText(/NewDataSet/Table/Author,'urlencode')"/>
</LinkAuthor>
<Author>
<xsl:value-of select="/NewDataSet/Table/Author"/>
</Author>
<LinkCopyFrom>
<xsl:value-of select="pe:EncodeText(/NewDataSet/Table/CopyFrom,'urlencode')"/>
</LinkCopyFrom>
<CopyFrom>
<xsl:value-of select="/NewDataSet/Table/CopyFrom"/>
</CopyFrom>
<PhotoIntro>
<xsl:value-of disable-output-escaping="yes" select="/NewDataSet/Table/PhotoIntro" />
</PhotoIntro>
<DefaultPicUrl>
&lt;img src="<xsl:value-of select="pe:UpLoadDir()"/>
<xsl:value-of select="/NewDataSet/Table/DefaultPicUrl"/>" alt="<xsl:value-of select="pe:EncodeText(/NewDataSet/Table/Title,'urlencode')"/>" border="0" /&gt;
</DefaultPicUrl>
<PhotoUrl>
<xsl:value-of select="/NewDataSet/Table/PhotoUrl"/>
</PhotoUrl>
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>6</default>
<intro>图片ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<attributes>
<name>titleLength</name>
<default>20</default>
<intro>标题最多字符数</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,40 @@
<?xml version="1.0"?>
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelIntro>显示投票结果柱型图</LabelIntro>
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_Vote WHERE GeneralID = @itemId AND StartTime < EndTime AND IsAlive = 1]]></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>
<VoteTitle>
<xsl:value-of select="/NewDataSet/Table/VoteTitle"/>
</VoteTitle>
<VoteItem>
<xsl:value-of select="pe:ShowVoteImage(/NewDataSet/Table/VoteItem)"/>
</VoteItem>
<StartTime>
<xsl:value-of select="/NewDataSet/Table/StartTime"/>
</StartTime>
<EndTime>
<xsl:value-of select="/NewDataSet/Table/EndTime"/>
</EndTime>
<VoteTotalNumber>
<xsl:value-of select="pe:GetVoteNum(/NewDataSet/Table/VoteItem)"/>
</VoteTotalNumber>
</root>
</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,140 @@
<?xml version="1.0"?>
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelIntro>显示投票结果饼图,需要服务器支持XSLT编程标签方可使用</LabelIntro>
<LabelSqlString>SELECT TOP 1 * FROM PE_Vote WHERE GeneralID = @itemId</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" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:csharp="urn:the-xml-files:xslt-csharp" xmlns:v="urn:schemas-microsoft-com:vml" exclude-result-prefixes="pe ms csharp">
<ms:script language="c#" implements-prefix="csharp">
double curValue = 0;
string preColor = "rgb(0,0,0)";
double mX = Math.Pow(2,16) * 360;
int rocount = 1;
int Socount = 1;
private string startAngle(string vValue, string nnum)
{
double svalue = Convert.ToDouble(vValue) / Convert.ToDouble(nnum);
double preValue = curValue;
curValue += svalue;
return Convert.ToInt32(mX * preValue).ToString();
}
private string endAngle(string vValue, string nnum)
{
double svalue = Convert.ToDouble(vValue) / Convert.ToDouble(nnum);
return Convert.ToInt32(mX * svalue).ToString();
}
public string getheight(int vValue)
{
int a = 1200 * vValue + 1000;
return a.ToString();
}
public string randomColor()
{
Random rn = new Random(unchecked(rocount * (int)DateTime.Now.Ticks));
Random gn = new Random(unchecked(rocount * (int)DateTime.Now.Ticks) + Socount * 9);
Random bn = new Random(unchecked(rocount * (int)DateTime.Now.Ticks) + Socount * 21);
preColor = "rgb(" + rn.Next(0,255) + "," + gn.Next(0,255) + "," + bn.Next(0,255) + ")";
rocount++;
Socount += 5;
return preColor;
}
public string ShowVoteImage(string ostr, string otitle)
{
XmlDocument xmldoc = new XmlDocument();
try
{
xmldoc.LoadXml(ostr);
}
catch (XmlException e)
{
return e.Message;
}
int i = 1;
Decimal totalnum = Convert.ToDecimal(GetVoteNum(ostr));
string outstr = "&lt;![CDATA[&lt;v:group coordsize='21600,21600' " + "style='width:640px;height:450px'" + "&gt;";
outstr += "&lt;v:rect style='width:21600px;height:21600px' fillcolor='#e6e6e6'&gt;";
outstr += "&lt;v:textbox style='text-Align:center;font-size:24px;font-Weight:bold;height:24px'&gt;" + otitle + "&lt;/v:textbox&gt;&lt;/v:rect&gt;";
outstr += "&lt;v:shadow on='t'/&gt;";
foreach (XmlNode inode in xmldoc.DocumentElement.ChildNodes)
{
XmlElement rnode = (XmlElement)inode;
if (!string.IsNullOrEmpty(rnode.GetAttribute("Title")))
{
outstr += "&lt;v:shape style='width:11000px;height:14000px;top:4000px;left:1000px' adj='0,0' strokecolor='window' coordsize='1500,1400'";
outstr += " path='M 750 700 AE 750 700 750 700 " + startAngle(rnode.GetAttribute("VoteNumber"), GetVoteNum(ostr)) + "&#160; " + endAngle(rnode.GetAttribute("VoteNumber"), GetVoteNum(ostr)) + "xe'";
outstr += " fillcolor='" + randomColor() + "'";
outstr += " title='" + rnode.GetAttribute("Title") + "'/&gt;";
outstr += "&lt;v:rect style='left:14000px;width:600px;height:800px;top:" + getheight(i) + "px'";
outstr += " fillcolor='" + preColor + "'/&gt;";
outstr += "&lt;v:rect strokecolor='black'";
outstr += " style='left:14500px;top:" + getheight(i) + "px'&gt;";
outstr += "&lt;v:textbox style='font:caption'&gt;" + rnode.GetAttribute("Title") + "(" + rnode.GetAttribute("VoteNumber") + ")&lt;/v:textbox&gt;";
outstr += "&lt;/v:rect&gt;";
i += 1;
}
}
outstr += "&lt;/v:group&gt;]]&gt;";
return outstr;
}
public string GetVoteNum(string ostr)
{
XmlDocument xmldoc = new XmlDocument();
try
{
xmldoc.LoadXml(ostr);
}
catch (XmlException e)
{
return e.Message;
}
int i = 0;
foreach (XmlNode inode in xmldoc.DocumentElement.ChildNodes)
{
XmlElement rnode = (XmlElement)inode;
if (!string.IsNullOrEmpty(rnode.GetAttribute("Title")))
{
i += Convert.ToInt32(rnode.GetAttribute("VoteNumber"));
}
}
return i.ToString();
}
</ms:script>
<xsl:output method="xml" />
<xsl:template match="/">
<root>
<VoteTitle>
<xsl:value-of select="/NewDataSet/Table/VoteTitle"/>
</VoteTitle>
<VoteItem>
<xsl:value-of select="csharp:ShowVoteImage(/NewDataSet/Table/VoteItem, /NewDataSet/Table/VoteTitle)"/>
</VoteItem>
<StartTime>
<xsl:value-of select="/NewDataSet/Table/StartTime"/>
</StartTime>
<EndTime>
<xsl:value-of select="/NewDataSet/Table/EndTime"/>
</EndTime>
<VoteTotalNumber>
<xsl:value-of select="csharp:GetVoteNum(/NewDataSet/Table/VoteItem)"/>
</VoteTotalNumber>
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<default>1</default>
<intro>投票ID</intro>
</attributes>
<OutType>
</OutType>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,121 @@
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString>
SELECT TOP 1 *
FROM
PE_CommonModel CM
INNER JOIN PE_U_Article UT ON (CM.ItemID = UT.ID)
WHERE
CM.GeneralID = @itemId AND
CM.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="/">
<root>
<!--FieldTipsStart-->
<GeneralID>
<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
</GeneralID>
<NodeID>
<xsl:value-of select="/NewDataSet/Table/NodeID"/>
</NodeID>
<Title>
<xsl:value-of select="/NewDataSet/Table/Title"/>
</Title>
<TitleIntact>
<xsl:choose>
<xsl:when test="/NewDataSet/Table/TitleIntact !=''">
<xsl:value-of select="/NewDataSet/Table/TitleIntact"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/NewDataSet/Table/Title"/>
</xsl:otherwise>
</xsl:choose>
</TitleIntact>
<Subheading>
<xsl:value-of select="/NewDataSet/Table/Subheading"/>
</Subheading>
<Content>
<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}
</Content>
<Vote>
<xsl:value-of select="pe:GetVoteForm(/NewDataSet/Table/GeneralID)"/>
</Vote>
<LinkAuthor>
<xsl:value-of select="pe:EncodeText(/NewDataSet/Table/Author,'urlencode')"/>
</LinkAuthor>
<Author>
<xsl:value-of select="/NewDataSet/Table/Author"/>
</Author>
<Intro>
<xsl:value-of select="pe:EncodeText(/NewDataSet/Table/Intro,'htmlencode')"/>
</Intro>
<Keyword>
<xsl:value-of select="pe:Trim(pe:EncodeText(pe:ReplaceText(/NewDataSet/Table/Keyword,'|',','),'htmlencode'),',')"/>
</Keyword>
<LinkCopyFrom>
<xsl:value-of select="pe:EncodeText(/NewDataSet/Table/CopyFrom,'urlencode')"/>
</LinkCopyFrom>
<CopyFrom>
<xsl:value-of select="/NewDataSet/Table/CopyFrom"/>
</CopyFrom>
<UpdateTime>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy年mm月dd日')"/>
</UpdateTime>
<TitleFontColor>
color:<xsl:value-of select="/NewDataSet/Table/TitleFontColor"/>
</TitleFontColor>
<TitleFontType>
{PE.Label id="转换标题字型" titleFontType="<xsl:value-of select="/NewDataSet/Table/TitleFontType"/>" /}
</TitleFontType>
<ArticleProtect>
<xsl:value-of select="pe:GetNodeEnableProtect(/NewDataSet/Table/NodeID)" />
</ArticleProtect>
<Hits>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</Hits>
<DayHits>
<xsl:value-of select="/NewDataSet/Table/DayHits"/>
</DayHits>
<WeekHits>
<xsl:value-of select="/NewDataSet/Table/WeekHits"/>
</WeekHits>
<MonthHits>
<xsl:value-of select="/NewDataSet/Table/MonthHits"/>
</MonthHits>
<!--FieldTipsEnd-->
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>5</default>
<intro>文章ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<OutType>
</OutType>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,43 @@
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelImage>
</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString>
SELECT TOP 1 UR.ID,UR.RedirectLink
FROM
PE_CommonModel CM
INNER JOIN PE_U_RedirectLink UR ON (CM.ItemID = UR.ID)
WHERE
CM.GeneralID = @itemId AND
CM.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:template match="/">
<root>
<SiteUrl>
<xsl:value-of select="/NewDataSet/Table/RedirectLink"/>
</SiteUrl>
<ItemID>
<xsl:value-of select="/NewDataSet/Table/ID"/>
</ItemID>
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>内容ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<OutType>
</OutType>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString>SELECT TOP 1 *
FROM
PE_CommonModel CM
INNER JOIN PE_U_Soft UT ON (CM.ItemID = UT.ID)
WHERE
CM.GeneralID = @itemId AND
CM.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:template match="/">
<root>
<GeneralID>
<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
</GeneralID>
<NodeID>
<xsl:value-of select="/NewDataSet/Table/NodeID"/>
</NodeID>
<Title>
<xsl:value-of select="/NewDataSet/Table/Title"/>
</Title>
<SoftSize>
<xsl:value-of select="pe:ConvertSoftSize(/NewDataSet/Table/SoftSize)"/>
</SoftSize>
<SoftSizeUnit>
<xsl:value-of select="pe:ConvertSizeToShow(/NewDataSet/Table/SoftSize)"/>
</SoftSizeUnit>
<Hits>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?hitstype=hits&amp;id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</Hits>
<DayDownLoadTimes>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?hitstype=dayhits&amp;id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</DayDownLoadTimes>
<WeekDownLoadTimes>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?hitstype=weekhits&amp;id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</WeekDownLoadTimes>
<MonthDownLoadTimes>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?hitstype=monthhits&amp;id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</MonthDownLoadTimes>
<BrowseTimes>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetBrowseTimes.aspx?id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</BrowseTimes>
<SoftVersion>
<xsl:value-of select="/NewDataSet/Table/SoftVersion"/>
</SoftVersion>
<SoftLanguage>
<xsl:value-of select="/NewDataSet/Table/SoftLanguage"/>
</SoftLanguage>
<Stars>
<xsl:value-of select="/NewDataSet/Table/Stars"/>
</Stars>
<Author>
<xsl:value-of select="/NewDataSet/Table/Author"/>
</Author>
<Keyword>
<xsl:value-of select="pe:EncodeText(pe:ReplaceText(/NewDataSet/Table/Keyword, '|',','),'htmlencode')"/>
</Keyword>
<CopyFrom>
<xsl:value-of select="/NewDataSet/Table/CopyFrom"/>
</CopyFrom>
<SoftType>
<xsl:value-of select="/NewDataSet/Table/SoftType"/>
</SoftType>
<CopyrightType>
<xsl:value-of select="/NewDataSet/Table/CopyrightType"/>
</CopyrightType>
<DecompressPassword>
<xsl:value-of select="/NewDataSet/Table/DecompressPassword"/>
</DecompressPassword>
<OperatingSystem>
<xsl:value-of select="/NewDataSet/Table/OperatingSystem"/>
</OperatingSystem>
<UpdateTime>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy年mm月dd日')"/>
</UpdateTime>
<RegUrl>
<xsl:value-of select="/NewDataSet/Table/RegUrl"/>
</RegUrl>
<DemoUrl>
<xsl:if test="/NewDataSet/Table/DemoUrl != ''">
&lt;a href="<xsl:value-of select="/NewDataSet/Table/DemoUrl"/>" target="_blank"&gt;查看演示&lt;/a&gt;
</xsl:if>
</DemoUrl>
<DefaultPicUrl >
<xsl:choose>
<xsl:when test="/NewDataSet/Table/DefaultPicUrl !=''">
<xsl:if test="pe:IsStartWithhttp(/NewDataSet/Table/DefaultPicUrl)='false'">
<xsl:value-of select="pe:UpLoadDir()"/>
</xsl:if>
<xsl:value-of select="/NewDataSet/Table/DefaultPicUrl"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
</xsl:otherwise>
</xsl:choose>
</DefaultPicUrl >
<SoftIntro>
<xsl:value-of disable-output-escaping="yes" select="/NewDataSet/Table/SoftIntro" />
</SoftIntro>
<SoftIntroEncode>
<xsl:value-of select="pe:EncodeText(pe:RemoveHtml(/NewDataSet/Table/SoftIntro),'htmlencode')" />
</SoftIntroEncode>
<DownloadUrl>
<xsl:value-of select="/NewDataSet/Table/DownloadUrl"/>
</DownloadUrl>
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>文章ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<OutType>
</OutType>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>