| |
|
|
|
|
| |
|
|
|
|
<%
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)
{
%>
<%SPHttpUtility.HtmlEncode(strBaseType,Response.Output);%>
|
<%
j = 1;
}
else
{
%>
<%SPHttpUtility.HtmlEncode(strBaseType,Response.Output);%>
|
<%
}
%>
<%
if (currList.Count == 0)
{
%>
|
<%SPHttpUtility.NoEncode(strNoBaseType,Response.Output);%>
|
<%
}
}
%>
<%
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 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);%> >
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);%>
|
<%
string listDescription;
listDescription = ListPageBase.RenderListDescription(Web, spList);
%>
<%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);
%>
|
<%
rowClass = (rowClass == "")? alternatingClass : "";
}
}
}
if (!bBaseTypeInited || bShowSites)
{
%>
|
<%
SPWebCollection webs = Web.GetSubwebsForCurrentUser();
if (webs.Count==0)
{
%>
|
<% if(Web.DoesUserHavePermissions(SPBasePermissions.ManageSubwebs)) { %>
|
<% } 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);
%>
" width="16" height="16" />
|
<%SPHttpUtility.HtmlEncode(webToDisplay.Title,Response.Output);%>
|
<%SPHttpUtility.HtmlEncode(webToDisplay.Description,Response.Output);%>
|
|
<%=SPUtility.TimeDeltaAsString(webToDisplay.LastItemModifiedDate, dtCurrent)%>
|
<%
rowClass = (rowClass == "")? alternatingClass : "";
}
}
if (bShowRecycleBin)
{
%>
|
|
|
|
<%
SPHttpUtility.NoEncode(Convert.ToString(RecycleBinItemCount),Response.Output);
%>
|
|
<%
}
%>