69 lines
2.4 KiB
XML
69 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelType>博客类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
|
|
<attributes>
|
|
<name>blogId</name>
|
|
<datatype>sql.int</datatype>
|
|
<default>0</default>
|
|
<intro>博客ID</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>isBlogOwner</name>
|
|
<datatype>bool</datatype>
|
|
<default>false</default>
|
|
<intro>是否博客主</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT TOP 1 BlogName,Nickname,Face,Intro FROM PE_BG_Blog WHERE BlogID=@blogId</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="blogId" />
|
|
<xsl:param name="isBlogOwner" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/NewDataSet/Table">
|
|
<div id="blogerInfo" class="sideInfo">
|
|
<div class="moduleHeader">
|
|
<h3>个人资料</h3>
|
|
<div class="moduleMenu">
|
|
<xsl:if test="$isBlogOwner='true'">
|
|
[<a>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:InstallDir()"/>Blog/UserInfo.aspx?id=@RequestInt_Id</xsl:attribute>
|
|
<xsl:attribute name="title">管理</xsl:attribute>管理</a>]
|
|
</xsl:if>
|
|
</div>
|
|
</div>
|
|
<div class="moduleContent">
|
|
<div class="pic">
|
|
<img src="个人头像" title="个人头像">
|
|
<xsl:attribute name="src">
|
|
<xsl:choose>
|
|
<xsl:when test="Face!= ''">
|
|
<xsl:value-of select="pe:ConvertToAbsolutePath(Face)"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="pe:SkinDir()"/>Blog/images/noPic.png
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
</img>
|
|
</div>
|
|
<h4>
|
|
<xsl:value-of select="Nickname"/>
|
|
</h4>
|
|
<strong>自我介绍:</strong>
|
|
<p>
|
|
<xsl:value-of select="Intro"/><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></p>
|
|
</div>
|
|
</div>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
</root> |