<% if (!m_hasDocumentStream) %>
<% { %>
title="" rel="sp_DialogLinkInternal">
<% if (m_sortCol == "Number") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
title="" rel="sp_DialogLinkInternal">
<% if (m_sortCol == "Modified") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
title="" rel="sp_DialogLinkInternal">
<% if (m_sortCol == "ModifiedBy") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
<% string itemLinkBase = m_list.Forms[PAGETYPE.PAGE_DISPLAYFORM].ServerRelativeUrl + "?ID=" + m_item.ID.ToString(); %>
<% SPField fldCreatedBy = m_item.Fields.GetFieldByInternalName("Editor"); %>
<% string rowClass = "ms-alternating"; %>
<% string rowTitle = ""; %>
<% for (int c = 0; c < m_itemversions.Count; ++c) %>
<% { %>
<% rowClass = (rowClass == "")? "ms-alternating" : ""; %>
<% ISPItemVersion ver = (ISPItemVersion)m_itemversions[c]; %>
<% if (ver.IsCur && ver.Level == SPFileLevel.Published) %>
<% { %>
<% if (MinorVersionEnabled) %>
<% { %>
<% rowClass = "ms-sectionhighlight"; %>
|
|
<% } %>
<% else if (Moderated) %>
<% { %>
<% rowClass = "ms-sectionhighlight"; %>
|
|
<% } %>
<% } %>
|
<% SPHttpUtility.HtmlEncode(ver.VersionLabel,Response.Output); %>
|
id=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(m_item.ID.ToString()),Response.Output); %>
verId=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.ID.ToString()),Response.Output); %>
verUrl=<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(ver.ID == (int)m_item["_UIVersion"] ? itemLinkBase + "&RootFolder=" + ver.ParentFolder+Sourceparameters: itemLinkBase + "&VersionNo=" + ver.ID.ToString() + "&RootFolder=" + ver.ParentFolder +Sourceparameters,true),Response.Output); %>
isCur=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.IsCur ? "1" : "0"),Response.Output); %>
canViewproperty = "1";
Level =<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(((byte)ver.Level).ToString()),Response.Output); %>
OType= <%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode((string)m_item["FSObjType"]),Response.Output); %>
isMostCur=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.ID == (int)m_item["_UIVersion"] ? "1" : "0"),Response.Output); %>
Perm=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode("0x" + m_item.EffectiveBasePermissions.ToString("X")),Response.Output); %>
>
|
>
<% SPHttpUtility.HtmlEncode(SPUtility.FormatDate(Web, ver.Created, SPDateFormat.DateTime),Response.Output); %>
|
 |
|
<% if (ver.CreatedBy != null) %>
<% { %>
<% SPHttpUtility.NoEncode(ver.GetFieldValueAsHtml(fldCreatedBy,SPHttpUtility.UrlKeyValueEncode(CurrentRequestUrlAndQuery)),Response.Output); %>
<% } %>
|
<% Int32 prevverid = GetPrevItemVersionId(ver.ID); %>
<% ISPItemVersion verprev = GetItemVersionById(prevverid); %>
<% if (ver != null) %>
<% { %>
|
<% Int32 numChanges = 0; %>
<% foreach (SPField field in ver.Item.Fields) %>
<% { %>
<% if (field.ShowInVersionHistory) %>
<% { %>
<% bool bSuppressOldValues = false; %>
<% if (field is SPFieldMultiLineText) %>
<% { %>
<% SPFieldMultiLineText fld = (SPFieldMultiLineText)field; %>
<% if (fld.AppendOnly) %>
<% bSuppressOldValues = true; %>
<% } %>
<% if (numChanges <= 15) %>
<% { %>
<% object val = ver.GetFieldValue(field); %>
<% object valprev = null; %>
<% if (verprev !=null) valprev = verprev.GetFieldValue(field); %>
<% if (((val != null) ? val.ToString() : String.Empty) %>
<% != ((valprev != null) ? valprev.ToString() : String.Empty)) %>
<% { %>
<% if (++numChanges <= 15) %>
<% { %>
<% rowTitle=""; %>
<% if ((!bSuppressOldValues) && (verprev != null)) %>
<% { %>
<% rowTitle=(string)(this.GetGlobalResourceObject("wss", "versions_oldvalue")); %>
<% rowTitle = rowTitle + verprev.GetTruncatedFieldValueAsText(field); %>
<% } %>
ID=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode("vv" + ver.ID.ToString() + field.InternalName),Response.Output); %> >
|
<% SPHttpUtility.HtmlEncode(field.Title,Response.Output); %>
|
<% SPHttpUtility.NoEncode(ver.GetTruncatedFieldValueAsHtml(field),Response.Output); %>
|
<% } else {%>
|
|
<% } %>
<% } %>
<% } %>
<% } %>
<% } %>
|
<% if ((ver.IsCur && ver.Level == SPFileLevel.Published) && (MinorVersionEnabled || Moderated))%>
<% { %>
|
<% } %>
<% } %>
<% } %>
<% } %>
<% else %>
<% { %>
title="" rel="sp_DialogLinkInternal">
<% if (m_sortCol == "Number") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
title="" rel="sp_DialogLinkInternal">
<% if (m_sortCol == "Modified") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
title="" rel="sp_DialogLinkInternal">
<% if (m_sortCol == "ModifiedBy") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
title="" rel="sp_DialogLinkInternal">
<% if (m_sortCol == "Size") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
<% if (m_sortCol == "Comments") %>
<% { %>
alt=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SortAlt()),Response.Output); %> border="0" />
<% } %>
|
<% string itemLinkBase = ""; %>
<% if (m_list != null && m_item != null) %>
<% { %>
<% itemLinkBase = m_list.Forms[PAGETYPE.PAGE_DISPLAYFORM].ServerRelativeUrl + "?ID=" + m_item.ID.ToString(); %>
<% } %>
<% string rowClass = "ms-alternating"; %>
<% string rowTitle = ""; %>
<% for (int c = 0; c < m_fileversions.Count; ++c) %>
<% { %>
<% rowClass = (rowClass == "")? "ms-alternating" : ""; %>
<% ISPFileVersion ver = (ISPFileVersion)m_fileversions[c]; %>
<% ISPItemVersion itemcurr = (m_item != null) ? GetItemVersionById(ver.ID) : null; %>
<% if (ver.IsCur && ver.Level == SPFileLevel.Published) %>
<% { %>
<% if (MinorVersionEnabled) %>
<% { %>
<% rowClass = "ms-sectionhighlight"; %>
|
|
<% } %>
<% else if (Moderated) %>
<% { %>
<% rowClass = "ms-sectionhighlight"; %>
|
|
<% } %>
<% } %>
|
<% SPHttpUtility.HtmlEncode(ver.VersionLabel,Response.Output); %>
|
<% if (m_list != null && m_item != null) %>
<% { %>
id=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(m_item.ID.ToString()),Response.Output); %>
Perm=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode("0x" + m_item.EffectiveBasePermissions.ToString("X")),Response.Output); %>
<% } else { %>
Perm=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode("0x" + Web.EffectiveBasePermissions.ToString("X")),Response.Output); %>
<% } %>
verId=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.ID.ToString()),Response.Output); %>
<% if (itemLinkBase != "") %>
<% { %>
<% if (ver.ID == m_file.UIVersion ) %>
<% { %>
verUrl=<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(itemLinkBase + "&RootFolder=" + ver.ParentFolder + Sourceparameters,true),Response.Output); %>
<% } else { %>
verUrl=<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(itemLinkBase + "&VersionNo=" + ver.ID.ToString() + "&RootFolder=" + ver.ParentFolder+Sourceparameters,true),Response.Output); %>
<% }} else { %>
verUrl=<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(Web.Url + "/" + ver.Url,true),Response.Output); %>
<% } %>
isCur=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.IsCur ? "1" : "0"),Response.Output); %>
CanViewProperty =<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.CanViewProperty ? "1" : "0"),Response.Output); %>
Level =<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(((byte)ver.Level).ToString()),Response.Output); %>
isMostCur=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.ID == m_file.UIVersion ? "1" : "0"),Response.Output); %>
oType = 0
type=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(ver.ProgId),Response.Output); %>
<% if (ver.ID == m_file.UIVersion && CheckoutUserID != 0) %>
<% { %>
COUId=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(CheckoutUserID.ToString()),Response.Output); %>
<% if (m_file.CheckOutType == SPFile.SPCheckOutType.Offline) %>
<% { %>
IsCheckoutToLocal="1"
<% } %>
<% } %>
>
|
<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(ver.ID == m_file.UIVersion ? itemLinkBase : itemLinkBase + "&VersionNo=" + ver.ID.ToString(),true),Response.Output); %>
<% else if (m_isWebPartPage) %>
<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(ver.ID == m_file.UIVersion ? Web.Url + "/" + m_file.Url : Web.Url + "/" + m_file.Url + "?PageVersion=" + ver.ID.ToString(),true),Response.Output); %>
<% else %>
<% { %>
<% string strServerRedirectUrl = null; %>
<% int iDefaultItemOpen = 0; %>
<% SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(Web.Url + "/" + ver.Url,true),Response.Output); %>
<% if (m_list != null)
{
if(m_list.DefaultItemOpen == DefaultItemOpen.Browser)
{
iDefaultItemOpen = 1;
}
strServerRedirectUrl = SPUtility.MapToServerFileRedirect(Web, Web.Url + "/" + ver.Url, HtmlType, (int)SPTypeOfRedirect.GetVersionRedir);
if (strServerRedirectUrl != null && strServerRedirectUrl.Length > 0)
{
strServerRedirectUrl = "1" + strServerRedirectUrl;
}
}%>
onmousedown=<% Response.Write("'"); %>return VerifyHref(this,event,<% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(iDefaultItemOpen.ToString()),Response.Output);%>, <% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(OpenControl),Response.Output); %>, <% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(strServerRedirectUrl),Response.Output); %>); <% Response.Write("'"); %>
onclick=<% Response.Write("'"); %>DispDocItemExWithServerRedirect(this,event,"FALSE","FALSE","FALSE",<% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(OpenControl),Response.Output); %>,<% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(iDefaultItemOpen.ToString()),Response.Output);%>,<% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(strServerRedirectUrl),Response.Output); %>); return false;<% Response.Write("'"); %>
<% } %>
>
<% SPHttpUtility.HtmlEncode(SPUtility.FormatDate(Web, ver.Created, SPDateFormat.DateTime),Response.Output); %>
|
 |
|
<% if (itemcurr != null && itemcurr.CreatedBy != null) %>
<% { %>
<% SPField fldCreatedBy = m_item.Fields.GetFieldByInternalName("Editor"); %>
<% SPHttpUtility.NoEncode(itemcurr.GetFieldValueAsHtml(fldCreatedBy,SPHttpUtility.UrlKeyValueEncode(CurrentRequestUrlAndQuery)),Response.Output); %>
<% } %>
<% else if (ver.CreatedBy != null) %>
<% { %>
<% SPHttpUtility.HtmlEncode(ver.CreatedBy,Response.Output); %>
<% } %>
|
<% SPHttpUtility.HtmlEncode(SPUtility.FormatSize(ver.Size),Response.Output); %>
|
<% SPHttpUtility.HtmlEncodeAllowSimpleTextFormatting(ver.CheckInComment,Response.Output); %>
|
<% if (m_item != null) %>
<% { %>
<% Int32 prevverid = GetPrevFileVersionId(ver.ID); %>
<% ISPItemVersion itemprev = GetItemVersionById(prevverid); %>
<% if (itemcurr != null) %>
<% { %>
|
<% Int32 numChanges = 0; %>
<% foreach (SPField field in itemcurr.Item.Fields) %>
<% { %>
<% if (field.ShowInVersionHistory) %>
<% { %>
<% bool bSuppressOldValues = false; %>
<% if (field is SPFieldMultiLineText) %>
<% { %>
<% SPFieldMultiLineText fld = (SPFieldMultiLineText)field; %>
<% if (fld.AppendOnly) %>
<% bSuppressOldValues = true; %>
<% } %>
<% if (numChanges <= 15) %>
<% { %>
<% object val = itemcurr.GetFieldValue(field); %>
<% object valprev = null; %>
<% if (itemprev != null) valprev = itemprev.GetFieldValue(field); %>
<% if (((val != null) ? val.ToString() : String.Empty) %>
<% != ((valprev != null) ? valprev.ToString() : String.Empty)) %>
<% { %>
<% if (++numChanges <= 15) %>
<% { %>
<% rowTitle=""; %>
<% if ((!bSuppressOldValues) && (itemprev != null)) %>
<% { %>
<% rowTitle=(string)(this.GetGlobalResourceObject("wss", "versions_oldvalue")); %>
<% rowTitle = rowTitle + itemprev.GetTruncatedFieldValueAsText(field); %>
<% } %>
id=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode("vv" + ver.ID.ToString() + field.InternalName),Response.Output); %> >
|
<% SPHttpUtility.HtmlEncode(field.Title,Response.Output); %>
|
<% SPHttpUtility.NoEncode(itemcurr.GetTruncatedFieldValueAsHtml(field),Response.Output); %>
|
<% } else {%>
|
|
<% } %>
<% } %>
<% } %>
<% } %>
<% } %>
|
<% if ((ver.IsCur && ver.Level == SPFileLevel.Published) && (MinorVersionEnabled || Moderated))%>
<% { %>
|
<% } %>
<% } %>
<% } %>
<% } %>
<% } %>