<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Page Language="C#" DynamicMasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.ApplicationPages.ViewListsPage" EnableViewState="false" EnableViewStateMac="false" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ViewHeader" src="~/_controltemplates/ViewHeader.ascx" %> <%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<% DateTime dtCurrent = DateTime.UtcNow; string alternatingClass = (null != SPContext.Current.Web && SPContext.Current.Web.UIVersion < 4) ? "ms-alternating" : "ms-alternatingstrong"; if (!bShowSites) { System.Collections.IEnumerator myRgs = rgRgs.GetEnumerator(); int j = 0; while (myRgs.MoveNext()) { SPBaseType currBaseType = (SPBaseType)myRgs.Current; myRgs.MoveNext(); SPListTemplateType currListTemplate = (SPListTemplateType)myRgs.Current; myRgs.MoveNext(); String strBaseType=(String)myRgs.Current; myRgs.MoveNext(); String strNoBaseType=(String)myRgs.Current; myRgs.MoveNext(); myRgs.MoveNext(); ArrayList currList = (ArrayList)myRgs.Current; System.Collections.IEnumerator currRg = currList.GetEnumerator(); if (!bBaseTypeInited || (spBaseType == currBaseType && spListTemplate == currListTemplate)) { if (j == 0) { %> <% j = 1; } else { %> <% } %> <% if (currList.Count == 0) { %> <% } } %> <% string rowClass = alternatingClass; while (currRg.MoveNext()) { int iList = (int)currRg.Current; SPList spList = (iList>=spLists.Count )? spListsIssue[iList - spLists.Count ] : spLists[iList]; if (spList.Hidden) { continue; } %> <% string listDescription; listDescription = ListPageBase.RenderListDescription(Web, spList); %> <% rowClass = (rowClass == "")? alternatingClass : ""; } } } if (!bBaseTypeInited || bShowSites) { %> <% SPWebCollection webs = Web.GetSubwebsForCurrentUser(); if (webs.Count==0) { %> <% } else { %> <% } } string rowClass = alternatingClass; foreach (SPWeb webToDisplay in webs) { string imageUrl; string toolTip; Pair webImageData = SPUtility.MapWebToIcon(webToDisplay); imageUrl = (string)(webImageData.First); toolTip = SPHttpUtility.HtmlEncode((string)(webImageData.Second)); string destUrl = SPHttpUtility.UrlPathEncode(webToDisplay.Url + "/",true); %> <% rowClass = (rowClass == "")? alternatingClass : ""; } } if (bShowRecycleBin) { %> <% } %>
 
     

  <%SPHttpUtility.HtmlEncode(strBaseType,Response.Output);%>

  <%SPHttpUtility.HtmlEncode(strBaseType,Response.Output);%>

<%SPHttpUtility.NoEncode(strNoBaseType,Response.Output);%>
<% string listViewUrl; try { if (spList.BaseTemplate == SPListTemplateType.WebPageLibrary) { listViewUrl = GetRootFolderOfList(spList); } else { listViewUrl = spList.DefaultViewUrl; } } catch { listViewUrl = ""; } if (listViewUrl == "") listViewUrl = "ListEdit.aspx?List=" + spList.ID.ToString("B").ToUpper(); %> href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(listViewUrl,true),Response.Output);%> > <%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(spList.Title),Response.Output);% src=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(spList.ImageUrl,true),Response.Output);%> width="16" height="16" /> href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(listViewUrl,true),Response.Output);%>><%SPHttpUtility.HtmlEncode(spList.Title,Response.Output);%>  <%SPHttpUtility.NoEncode(listDescription,Response.Output);%>  <% if (spList.DataSource != null) { bShowExternalDataListCountInfo = true; %> <% } else { SPHttpUtility.NoEncode(spList.ItemCount,Response.Output); } %> <% SPHttpUtility.HtmlEncode(SPUtility.TimeDeltaAsString(spList.LastItemModifiedDate, dtCurrent),Response.Output); %>

 

<% if(Web.DoesUserHavePermissions(SPBasePermissions.ManageSubwebs)) { %>
<%=toolTip%>" width="16" height="16" /> <%SPHttpUtility.HtmlEncode(webToDisplay.Title,Response.Output);%>  <%SPHttpUtility.HtmlEncode(webToDisplay.Description,Response.Output);%> <%=SPUtility.TimeDeltaAsString(webToDisplay.LastItemModifiedDate, dtCurrent)%>

 

<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,viewlsts_recyclebin%>' EncodeMethod='HtmlEncode'/>   <% SPHttpUtility.NoEncode(Convert.ToString(RecycleBinItemCount),Response.Output); %>  
<% if (bShowExternalDataListCountInfo) { %> <% } %>