<WebPartPages:DataFormWebPart runat="server" IsIncluded="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="0" Title="Документы" ListName="{C268D737-E7E6-4737-A3AB-B5E2F2892138}" Default="FALSE" DisplayName="Документы" __markuptype="vsattributemarkup" __WebPartId="{70438291-83FE-4D84-A652-5DB5BF9A1762}" id="g_70438291_83fe_4d84_a652_5db5bf9a1762" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""> <DataSources> <SharePoint:SPDataSource runat="server" DataSourceMode="List" UseInternalName="true" selectcommand="&lt;View&gt;&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef Name=&quot;docType&quot; Ascending=&quot;TRUE&quot;/&gt;&lt;FieldRef Name=&quot;Title&quot; Ascending=&quot;TRUE&quot;/&gt;&lt;FieldRef Name=&quot;DocDate&quot; Ascending=&quot;FALSE&quot;/&gt;&lt;/OrderBy&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ContentType&quot;/&gt;&lt;Value Type=&quot;Text&quot;&gt;Документ&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;" id="_x0414__x043e__x043a__x0443__x043c__x0435__x043d__x0442__x044b_1"><SelectParameters><WebPartPages:DataFor mParameter Name="ListID" ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{C268D737-E7E6-4737A3AB-B5E2F2892138}"/></SelectParameters><DeleteParameters><WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{C268D737-E7E6-4737-A3ABB5E2F2892138}"/></DeleteParameters><UpdateParameters><WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{C268D737-E7E6-4737-A3ABB5E2F2892138}"/></UpdateParameters><InsertParameters><WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{C268D737-E7E6-4737-A3ABB5E2F2892138}"/></InsertParameters></SharePoint:SPDataSource> </DataSources> <ParameterBindings> <ParameterBinding Name="ListID" Location="None" DefaultValue="{C268D737E7E6-4737-A3AB-B5E2F2892138}"/> <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/> <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/> <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/> <ParameterBinding Name="dvt_groupfield" Location="Postback;Connection"/> </ParameterBindings> <datafields>@FileLeafRef,Имя (для использования в формах);@Title,Название;@Description,Описание;@DocDate,Дата документа;@docType,Тип документа;@ID,ИД;@ContentType,Тип контента;@Created,Создан;@Author,Кем создано;@Modified,Изменен;@Editor,кем изменено;@_CopySource,Источник копии;@CheckoutUser,Кем извлечено;@_CheckinComment,Заметки к возврату;@CheckedOutTitle,Кем извлечено;@CheckedOutUserId,Идентификатор пользователя%2C который извлек элемент;@FileDirRef,Путь;@FSObjType,Тип элемента;@HTML_x0020_File_x0020_Type,Тип HTMLфайла;@File_x0020_Type,Тип файла;@IsCheckedoutToLocal,Извлечен на локальный компьютер;@_SourceUrl,Исходный URL-адрес;@_HasCopyDestinations,Имеет копии;@ContentTypeId,Идентификатор типа контента;@_ModerationStatus,Состояние утверждения;@_UIVersion,Версия ИП;@Created_x0020_Date,Создан;@FileRef,Путь URL-адреса;@File_x0020_Size,Размер файла;@ItemChildCount,Число дочерних элементов;@FolderChildCount,Число дочерних папок;@_UIVersionString,Версия;@ParentVersionString,Исходная версия (преобразованный документ);@ParentLeafName,Исходное название (преобразованный документ);@TemplateUrl,Ссылка на шаблон;</datafields> <XSL> <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/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="dvt_groupfield" /> <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.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls"> <xsl:call-template name="dvt_1"/> </xsl:template> <xsl:template name="dvt_1"> <xsl:variable name="dvt_StyleName">Table</xsl:variable> <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" /> <xsl:variable name="dvt_RowCount" select="count($Rows)" /> <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%" cellpadding="2" cellspacing="0"> <tr valign="top"> <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1"> <th class="ms-vh" width="1%" nowrap="nowrap" /> </xsl:if> </tr> <xsl:call-template name="dvt_1.body"> <xsl:with-param name="Rows" select="$Rows" /> <xsl:with-param name="FirstRow" select="1" /> <xsl:with-param name="LastRow" select="$dvt_RowCount" /> </xsl:call-template> </table></xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="dvt_1.body"> <xsl:param name="Rows" /> <xsl:param name="FirstRow" /> <xsl:param name="LastRow" /> <xsl:variable name="dvt_Rows"><root> <xsl:for-each select="$Rows"> <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow)"><xsl:copy-of select="." /></xsl:if> </xsl:for-each> </root></xsl:variable> <xsl:for-each select="$Rows"> <xsl:variable name="NewGroup_0"> <xsl:choose> <xsl:when test="not ($dvt_groupfield)"><xsl:value-of select="ddwrt:NameChanged(string(@docType), 0)" /></xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="0" /> <xsl:when test="not($dvt_groupfield) and (not($NewGroup_0='') and position() &gt;= $FirstRow and position() &lt;= $LastRow or ($FirstRow = position()))"> <xsl:variable name="groupheader0"> <xsl:choose> <xsl:when test="not (@docType) and (@docType) != false()"><xsl:value-of select="' '" /></xsl:when> <xsl:otherwise><xsl:value-of select="@docType" /></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="not ((position()=1) or (position()=$FirstRow))"></xsl:if> <xsl:call-template name="dvt_1.groupheader0"> <xsl:withparam name="fieldtitle">Тип документа</xsl:with-param> <xsl:withparam name="fieldname">docType</xsl:with-param> <xsl:withparam name="fieldvalue" select="$groupheader0" /> <xsl:withparam name="fieldtype" select="'Lookup'" /> <xsl:withparam name="nodeset" select="msxsl:node-set($dvt_Rows)/root//Row[((@docType)=$groupheader0 or ((not(@docType) or @docType='') and $groupheader0=' '))]" /> <xsl:withparam name="groupid" select="'0'" /> <xsl:withparam name="displaystyle" select="'auto'" /> <xsl:withparam name="imagesrc" select="'/_layouts/images/plus.gif'" /> <xsl:withparam name="alttext" select="'развернуть'" /> <xsl:withparam name="altname" select="'свернуть'" /> <xsl:withparam name="hidedetail" select="false()" /> <xsl:withparam name="showheader" select="true()" /> <xsl:withparam name="showheadercolumn" select="false()" /> </xsl:call-template> </xsl:when> </xsl:choose> <xsl:variable name="BreakOut"> <xsl:choose> <xsl:when test="not($dvt_groupfield) and position()=$LastRow+1"><xsl:value-of select="ddwrt:NameChanged('', -1)" /></xsl:when> <xsl:otherwise>BreakOut</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="dvt_KeepItemsTogether" select="false()" /> <xsl:variable name="dvt_HideGroupDetail" select="false()" /> <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether"> <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1"> <xsl:call-template name="dvt_1.rowview" /> </xsl:if> </xsl:if> <xsl:choose> <xsl:when test="0" /> </xsl:choose> </xsl:for-each> </xsl:template> <xsl:template name="dvt_1.rowview"> <xsl:variable name="dvt_GroupStyle" select="'none'" /> <tr style="display:{$dvt_GroupStyle}"> <td class="text" width="5%" valign="top" align="left"> <a href="/{@FileRef}"><img src="/_layouts/images/ic{@DocIcon}.gif" alt="" /></a></td> <td class="text" width="25%" valign="top" align="left" style="padding-right: 10px"> <a href="/{@FileRef}" class="textlink"><xsl:value-of select="substringbefore(@LinkFilename, '.')" /></a><br /> <xsl:if test="@DocDate != ''"><span style="font-size:10px;"><xsl:value-of select="ddwrt:FormatDate(string(@DocDate) ,1049 ,1)" /> | </span></xsl:if> <span style="color:gray; font-size:10px;"><xsl:value-of select="formatnumber(number(@File_x0020_Size) div 1024, &quot;# ##0,;-# ##0,&quot;, &quot;lcid1049&quot;)" /> Kb</span> </td> <td class="text" width="70%" valign="top" align="left"><xsl:value-of select="@Description" disableoutput-escaping="yes" /></td> </tr> <tr style="display:{$dvt_GroupStyle}"> <td style="padding-bottom: 5px;" colspan="3"> <xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:nbsppreserve="yes" disable-output-escaping="yes">&amp;nbsp;</xsl:text> </td> </tr></xsl:template> <xsl:template name="dvt_1.groupheader0"> <xsl:param name="fieldtitle" /> <xsl:param name="fieldname" /> <xsl:param name="fieldvalue" /> <xsl:param name="fieldtype" /> <xsl:param name="nodeset" /> <xsl:param name="groupid" /> <xsl:param name="displaystyle" /> <xsl:param name="imagesrc" /> <xsl:param name="alttext" /> <xsl:param name="altname" /> <xsl:param name="hidedetail" /> <xsl:param name="showheader" /> <xsl:param name="showheadercolumn" /> <xsl:if test="$showheader" ddwrt:cf_ignore="1"> <tr id="group{$groupid}" style="display:{$displaystyle}"> <td class="ms-gb" style="padding-bottom: 5px;background : white; font-size: 12px; fontweight: bold; border-bottom: silver 1px solid" colspan="3"> <xsl:choose> <xsl:when test="$groupid='0' or $groupid='9'"> <xsl:text /> </xsl:when> <xsl:when test="$groupid='1'"> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> </xsl:when> <xsl:when test="$groupid='2'"> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> </xsl:when> <xsl:when test="$groupid='3'"> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> </xsl:when> <xsl:when test="$groupid='4'"> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> </xsl:when> <xsl:when test="$groupid='5'"> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> </xsl:when> <xsl:when test="$groupid='6'"> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> </xsl:when> </xsl:choose> <xsl:if test="not($hidedetail)" ddwrt:cf_ignore="1"> <a href="javascript:" onclick="javascript:ExpGroupBy(this);return false;"> <img src="{$imagesrc}" border="0" alt="{$alttext}" name="{$altname}" /></a> </xsl:if> <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">&amp;nbsp;</xsl:text> <xsl:choose> <xsl:when test="$fieldtype='url'"> <a href="{$fieldvalue}"> <xsl:value-of select="$fieldvalue" /> </a> </xsl:when> <xsl:when test="$fieldtype='user'"> <xsl:value-of select="$fieldvalue" disable-outputescaping="yes" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$fieldvalue" /> </xsl:otherwise> </xsl:choose> </td> </tr> </xsl:if> </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:decimal-format decimal-separator="," grouping-separator=" " name="lcid1049" /></xsl:stylesheet> </XSL> </WebPartPages:DataFormWebPart>