<%@ 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.CreatePage" 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="ToolBar" src="~/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.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" %>
 
<% for (Int32 iCat = 0; iCat < rgRgs.Count; iCat += iCategorySize) { string strDisplay = (string)rgRgs[iCat + 2]; if((strDisplay.Equals(L_szWebpages_Text) && Web.DoesUserHavePermissions(SPBasePermissions.ManageSubwebs)) || Web.DoesUserHavePermissions(SPBasePermissions.ManageLists)) { %> <% } } %>

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

<% System.Collections.IEnumerator currRg = ((ArrayList)rgRgs[iCat + 5]).GetEnumerator(); while (currRg.MoveNext()) { SPListTemplate spListTmpl = (SPListTemplate)currRg.Current; SPListTemplateType iTemplateType = spListTmpl.Type; if (iTemplateType == SPListTemplateType.InvalidType) continue; Guid featidTemplate = spListTmpl.FeatureId; string strTemplateDisplayName = SPHttpUtility.HtmlEncode(spListTmpl.Name); string strTemplateDisplayNameScript = SPHttpUtility.EcmaScriptStringLiteralEncode(spListTmpl.Name); string strTemplateDescription = SPHttpUtility.HtmlEncode(spListTmpl.Description); string strTemplateDescriptionScript = SPHttpUtility.EcmaScriptStringLiteralEncode(spListTmpl.Description); String strQuery = null; if (spListTmpl.IsCustomTemplate) strQuery = "CustomTemplate=" + SPHttpUtility.UrlKeyValueEncode(spListTmpl.InternalName) +"&"; string strAddWebPartQuery = ""; if (bIsMWS) { string strDocUrlForWebPart = null; HttpCookie cookie = Page.Request.Cookies["MtgLastTabVisited"]; if (cookie != null && cookie.Value != null) strDocUrlForWebPart = HttpUtility.UrlDecode(cookie.Value); if (strDocUrlForWebPart != null) strAddWebPartQuery += "&DocUrlForWebPart=" + SPHttpUtility.UrlKeyValueEncode(strDocUrlForWebPart); strAddWebPartQuery += "&WebPartZoneID=Left"; } if (featidTemplate != Guid.Empty) { strQuery += "FeatureId=" + featidTemplate.ToString("B") + "&"; } strQuery += "ListTemplate=" + (int)iTemplateType + strAddWebPartQuery; String strImageUrl = spListTmpl.ImageUrl; if (String.IsNullOrEmpty(strImageUrl)) { strImageUrl = "/_layouts/images/itgen.gif"; } int indx = strImageUrl.LastIndexOf("/"); if (indx <= 0) continue; string strImageUrlScript = SPHttpUtility.EcmaScriptStringLiteralEncode(strImageUrl.Substring(0, indx+1) + "l" + strImageUrl.Substring(indx+2)); string strNewPage = "new.aspx"; string strCustomPage = spListTmpl.NewPage; if (strCustomPage != null && strCustomPage != String.Empty) strNewPage = strCustomPage; strNewPage += "?"; %>
<% =strTemplateDescription %>  id=<% SPHttpUtility.AddQuote(SPHttpUtility.NoEncode("onetCreate" + ((int)iTemplateType).ToString()),Response.Output); %>> <%=strTemplateDisplayName%>
<% } if (strDisplay == L_szCustom_Text && Web.DoesUserHavePermissions(SPBasePermissions.UseClientIntegration)) { %> ','','/_layouts/images/ltiss.png')" onmouseout="this.className='ms-itemstatic';HideListInformation()" cellspacing="0" cellpadding="0" width="100%" border="0">
<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,viewlsts_import_ss_desc%>' EncodeMethod='HtmlEncode'/> 
<% } if (strDisplay == L_szWebpages_Text) { string strUrlPrefix = (Web.Url.Length > 55) ? SPHttpUtility.HtmlEncode(Web.Url.Substring(0,50) + "...") : SPHttpUtility.HtmlEncode(Web.Url); %> ','','/_layouts/images/ltsmrtpg.png')" onmouseout="this.className='ms-itemstatic';HideListInformation()" cellspacing="0" cellpadding="0" width="100%" border="0">
<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,viewlsts_wp_page_desc%>' EncodeMethod='HtmlEncode'/> 
<% if(Web.DoesUserHavePermissions(SPBasePermissions.ManageSubwebs)) { %> ','','/_layouts/images/ltworksp.png')" onmouseout="this.className='ms-itemstatic';HideListInformation()" cellspacing="0" cellpadding="0" width="100%" border="0">
<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,viewlsts_sitesandworkspaces_desc%>' EncodeMethod='HtmlEncode'/> 
<% } %> <% } %>
<% for (Int32 iCat = 0; iCat < rgRgs.Count; iCat += iCategorySize) { string strDisplay = (string)rgRgs[iCat + 2]; if((strDisplay.Equals(L_szWebpages_Text) && Web.DoesUserHavePermissions(SPBasePermissions.ManageSubwebs)) || Web.DoesUserHavePermissions(SPBasePermissions.ManageLists)) { %> <% } } %>

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

<% uint currentLanguage = (uint) System.Threading.Thread.CurrentThread.CurrentUICulture.LCID; if(Web.Site.WebApplication.AllowSilverlightPrompt && IsSupportedLanguage(Web.Language) && IsSupportedLanguage(currentLanguage)) { %> <% } %> <%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %>