first commit
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>政务公开</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>departmentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>部门ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>showNumber</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>20</default>
|
||||
<intro>显示数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>标题显示长度</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @showNumber ID,PublicTime,Title FROM PE_GV_PublicInformation WHERE DepartmentId = @departmentId AND IsExpired = 0 AND Status = 2 ORDER BY PublicTime 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">
|
||||
<!--params-->
|
||||
<xsl:output method="html" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="departmentId" />
|
||||
<xsl:template match="/">
|
||||
<dt>
|
||||
<a>
|
||||
<span>最新公开信息</span>
|
||||
</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;&nbsp;</xsl:text> 信息总数:<xsl:value-of select="count(/NewDataSet/Table)"/>
|
||||
</dt>
|
||||
<dd class="orgBox OpenSearch">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0" id="table3">
|
||||
<tbody>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<tr>
|
||||
<td style="width:80%">
|
||||
<a> <xsl:attribute name="href">PublicInfoShow.aspx?Id=<xsl:value-of select="ID"/>
|
||||
</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<xsl:value-of select="pe:FormatDate(PublicTime,'yyyy-mm-dd')"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</tbody>
|
||||
</table>
|
||||
</dd>
|
||||
<li style="text-align:right">
|
||||
<a> <xsl:attribute name="href">PublicInfoList.aspx?DepartmentId=<xsl:value-of select="$departmentId"/></xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute>更多</a>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user