Sunteți pe pagina 1din 5

<xsl:stylesheet xmlns:x="http://www.w3.

org/2001/XMLSchema" xmlns:d="http://schem
as.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxs
l ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://sch
emas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1
999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint
="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
<xsl:output method="html" indent="no"/>
<xsl:decimal-format NaN=""/>
<xsl:param name="dvt_apos">&apos;</xsl:param>
<xsl:param name="Today">CurrentDate</xsl:param>
<xsl:param name="ListID">F9F5CD9B-92F1-4438-94A4-FE2B2F853F91</xsl:param
>
<xsl:param name="Cat" ></xsl:param>
<xsl:param name="dvt_firstrow">1</xsl:param>
<xsl:param name="dvt_nextpagedata" />
<xsl:variable name="dvt_1_automode">0</xsl:variable>

<xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns


:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.micro
soft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/D
ataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
<xsl:call-template name="dvt_1"/>
</xsl:template>
<xsl:template name="dvt_1">
<xsl:variable name="dvt_StyleName">RepForm3</xsl:variable>
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
<xsl:variable name="dvt_RowCount" select="count($Rows)" />
<xsl:variable name="RowLimit" select="10" />
<xsl:variable name="FirstRow" select="$dvt_firstrow" />
<xsl:variable name="LastRow" select="$FirstRow + $dvt_RowCount -
1" />
<xsl:variable name="IsEmpty" select="$dvt_RowCount = 0 or $RowLi
mit = 0" />
<xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0" />
<xsl:choose>
<xsl:when test="$dvt_IsEmpty">
<xsl:call-template name="dvt_1.empty" />
</xsl:when>
<xsl:otherwise><table border="0" width="100%" ce
llpadding="0" cellspacing="0">
<tr>
<td width="8" align="left" nowrap="nowrap"><img src="/publ
ishingimages/corner-left-new.gif" /></td>
<td align="left" class="gadgetheading03">
News &amp; Events</td>

<td width="8" align="right" nowrap="nowrap"><img src="/pub


lishingimages/corner-right-new.gif" /></td>
</tr>
<xsl:call-template name="dvt_1.body">
<xsl:with-param name="Rows" select="$Row
s"/>
<xsl:with-param name="FirstRow" select="
1" />
<xsl:with-param name="LastRow" select="$
LastRow - $FirstRow + 1" />
</xsl:call-template>
</table></xsl:otherwise>
</xsl:choose>
<xsl:call-template name="dvt_1.commandfooter">
<xsl:with-param name="FirstRow" select="$FirstRow" />
<xsl:with-param name="LastRow" select="$LastRow" />
<xsl:with-param name="RowLimit" select="$RowLimit" />
<xsl:with-param name="dvt_RowCount" select="$dvt_RowCoun
t" />
<xsl:with-param name="RealLastRow" select="number(ddwrt:
NameChanged('',-100))" />
</xsl:call-template>
</xsl:template>
<xsl:template name="dvt_1.body">
<xsl:param name="Rows"/>
<xsl:param name="FirstRow" />
<xsl:param name="LastRow" />
<xsl:for-each select="$Rows">
<xsl:variable name="dvt_KeepItemsTogethe
r" select="false()" />
<xsl:variable name="dvt_HideGroupDetail"
select="false()" />
<xsl:if test="(position() &gt;= $FirstRo
w and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
<xsl:if test="not($dvt_HideGroup
Detail)" ddwrt:cf_ignore="1">
<xsl:call-template name=
"dvt_1.rowview" />
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="dvt_1.rowview">
<tr>
<td width="8" align="left" valign="top" >
<xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebP
arts/v2/DataView/runtime" ddwrt:nbsp-preserve="yes" disable-output-escaping="yes
">&amp;nbsp;</xsl:text>
</td>
<td valign="top" >
<table border="0" cellspacing="0" cellpadding="
0" width="100%">
<tr>
<td height="5px" colspan="2">
</td>
</tr>
<tr>
<td width="75%" class="heading"
>
<xsl:value-of select="@T
itle"/></td>
<td class="posteddate" v
align="top">
Posted on <xsl:value-of select="
ddwrt:FormatDateTime(string(@Publish_x0020_Date),1033,'MMM dd, yyy ')"/>
</td>
</tr>
<tr>
<td width="75%" class="MainConte
nt-small" colspan="2"><xsl:if test="@ShortDescription != ''">
<xsl:value-of select="@ShortDes
cription" disable-output-escaping="yes" />...<a href="NewsDetails.aspx?NewsID={@
ID}">MORE</a>
</xsl:if>
</td>

</tr>
</table>
</td>
<td width="8" align="right" valign="top" >
<xsl:text xmlns:ddwrt="http://schemas.microsoft.
com/WebParts/v2/DataView/runtime" ddwrt:nbsp-preserve="yes" disable-output-escap
ing="yes">&amp;nbsp;</xsl:text>
</td>
</tr>
</xsl:template>
<xsl:template name="dvt_1.empty">
<xsl:variable name="dvt_ViewEmptyText"></xsl:variable>
<table border="0" width="100%">
<tr>
<td class="ms-vb">
<xsl:value-of select="$dvt_ViewEmptyText
" />
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="dvt_1.commandfooter">
<xsl:param name="FirstRow" />
<xsl:param name="LastRow" />
<xsl:param name="RowLimit" />
<xsl:param name="dvt_RowCount" />
<xsl:param name="RealLastRow" />
<table cellspacing="0" cellpadding="4" border="0" width="100%">
<xsl:if test="$FirstRow
&gt; 1 or $dvt_nextpagedata">
<tr class="search-paging-nav">
<xsl:call-template name="dvt_1.navigatio
n">
<xsl:with-param name="FirstRow"
select="$FirstRow" />
<xsl:with-param name="LastRow" s
elect="$LastRow" />
<xsl:with-param name="RowLimit"
select="$RowLimit" />
<xsl:with-param name="dvt_RowCou
nt" select="$dvt_RowCount" />
<xsl:with-param name="RealLastRo
w" select="$RealLastRow" />
</xsl:call-template>
</tr></xsl:if>
</table>
</xsl:template>
<xsl:template name="dvt_1.navigation">
<xsl:param name="FirstRow" />
<xsl:param name="LastRow" />
<xsl:param name="RowLimit" />
<xsl:param name="dvt_RowCount" />
<xsl:param name="RealLastRow" />
<xsl:variable name="PrevRow">
<xsl:choose>
<xsl:when test="$FirstRow - $RowLimit &lt; 1">1<
/xsl:when>
<xsl:otherwise>
<xsl:value-of select="$FirstRow - $RowLi
mit" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="LastRowValue">
<xsl:choose>
<xsl:when test="$LastRow &gt; $RealLastRow">
<xsl:value-of select="$LastRow"></xsl:va
lue-of>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$RealLastRow"></xs
l:value-of>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="NextRow">
<xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
</xsl:variable>
<td nowrap="nowrap" align="center">
<table cellspacing="5" border="0">
<tr>
<td style="width:150px" align="right" c
lass="field-right">
<xsl:if test="$dvt_first
row &gt; 1" ddwrt:cf_ignore="1">
<xsl:text disable-output
-escaping="yes" ddwrt:nbsp-preserve="yes"></xsl:text><a>
<xsl:attribute name="hre
f">javascript: history.back();</xsl:attribute>
Previous</a>
<xsl:text disable-output
-escaping="yes" ddwrt:nbsp-preserve="yes"></xsl:text>
</xsl:if>
</td>
<td align="center" class="field-right
"><xsl:value-of select="$FirstRow" /> - <xsl:value-of select="$LastRowValue" /
>
</td>
<td style="width:150px" align="left" cl
ass="field-right"> <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string
-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
<a>
<xsl:attribute name="hre
f">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstr
ow={',$NextRow,'};dvt_startposition={',$dvt_nextpagedata,'}'))" />;</xsl:attribu
te>
Next</a></xsl:if>
</td>
</tr>
</table>
</td>
</xsl:template></xsl:stylesheet>

S-ar putea să vă placă și