<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Page Language="C#" Inherits="Microsoft.SharePoint.ApplicationPages.ListEditPage" MasterPageFile="~/_layouts/application.master" EnableViewState="false" EnableViewStateMac="false" %> <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register TagPrefix="wssuc" TagName="LinkSection" src="~/_controltemplates/LinkSection.ascx" %> <%@ Register Tagprefix="Meetings" Namespace="Microsoft.SharePoint.Meetings" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Workflow" Namespace="Microsoft.SharePoint.Workflow" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="System.Collections.Generic" %> style="display:none;" style="display:none;" <% String strType = ""; String strTypeSaveAsTempDesc = ""; String strTypeSaveAsTempText2 = ""; String strListType = ""; String strDelWarn = ""; String L_strType_Text = ""; String L_strTypeSaveAsTmplDesc_Text = ""; String L_strTypeSaveAsTmplText2_Text = ""; String L_strListType_Text = ""; String L_strDelWarn_Text = ""; %> <% switch (iBaseType) { case SPBaseType.DocumentLibrary: if (SPListTemplateType.PictureLibrary == iServerTemplate) { L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_picturelibrary_type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_picturelibrary_saveastmpldesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_picturelibrary_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_picturelibrary_ListType"); L_strDelWarn_Text = (string)GetGlobalResourceObject("wss", "liststr_picturelibrary_DelWarn"); } else if (SPListTemplateType.XMLForm == iServerTemplate) { L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_formlibrary_Type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_formlibrary_SaveAsTmplDesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_formlibrary_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_formlibrary_ListType"); L_strDelWarn_Text = (string)GetGlobalResourceObject("wss", "liststr_formlibrary_DelWarn"); } else if (SPListTemplateType.DataConnectionLibrary == iServerTemplate) { L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_dataconnectionlibrary_Type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_dataconnectionlibrary_SaveAsTmplDesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_dataconnectionlibrary_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_dataconnectionlibrary_ListType"); L_strDelWarn_Text = (string)GetGlobalResourceObject("wss", "liststr_dataconnectionlibrary_DelWarn"); } else if (SPListTemplateType.ListTemplateCatalog == iServerTemplate || SPListTemplateType.WebTemplateCatalog == iServerTemplate || SPListTemplateType.WebPartCatalog == iServerTemplate) { L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_gallery_Type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_gallery_SaveAsTmplDesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_gallery_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_gallery_ListType"); L_strDelWarn_Text = (string)GetGlobalResourceObject("wss", "liststr_gallery_DelWarn"); } else { L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_doclib_Type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_doclib_SaveAsTmplDesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_doclib_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_doclib_ListType"); L_strDelWarn_Text = (string)GetGlobalResourceObject("wss", "liststr_doclib_DelWarn"); } break; case SPBaseType.DiscussionBoard: L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_disc_Type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_disc_SaveAsTmplDesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_disc_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_disc_ListType"); L_strDelWarn_Text =""; break; case SPBaseType.Survey: L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_survey_Type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_survey_SaveAsTmplDesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_survey_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_survey_ListType"); L_strDelWarn_Text = ""; break; default: L_strType_Text = (string)GetGlobalResourceObject("wss", "liststr_list_Type"); L_strTypeSaveAsTmplDesc_Text = (string)GetGlobalResourceObject("wss", "liststr_list_SaveAsTmplDesc"); L_strTypeSaveAsTmplText2_Text = (string)GetGlobalResourceObject("wss", "liststr_list_SaveAsTmplText2"); L_strListType_Text = (string)GetGlobalResourceObject("wss", "liststr_list_ListType"); L_strDelWarn_Text = ""; break; } strType = L_strType_Text ; strTypeSaveAsTempDesc = L_strTypeSaveAsTmplDesc_Text; strTypeSaveAsTempText2 = L_strTypeSaveAsTmplText2_Text; strListType = L_strListType_Text ; strDelWarn = L_strDelWarn_Text ; %> <% if (spList.ContentTypesEnabled) { %> <% } %> <% if (iServerTemplate != (SPListTemplateType)MeetingListTemplateType.MeetingTextbox) { %> <% } %>
<% if (bEmailServiceEnabled && !String.IsNullOrEmpty(spList.EmailAlias)) { %> <% } %>

<%SPHttpUtility.HtmlEncode(spList.Title,Response.Output); %>
<%SPHttpUtility.HtmlEncode(Site.MakeFullUrl(strDefaultViewUrl),Response.Output);%>
<%SPHttpUtility.HtmlEncodeAllowSimpleTextFormatting(spList.Description,Response.Output); %>
<%SPHttpUtility.HtmlEncode(spList.EmailAlias + "@" + strEmailSuffix,Response.Output); %>

<% if (IsDocumentLibrary) { %> <% } else { %> <% } %>
<% rowClass = "ms-alternating"; int idxCt = 0; IList ctoFolder = spList.RootFolder.UniqueContentTypeOrder; foreach (SPContentType contentType in ContentTypeOrder) { rowClass = (rowClass == "")? "ms-alternating" : ""; bool fAllowedCt = false; if (ctoFolder == null) { fAllowedCt = !contentType.Id.IsChildOf(SPBuiltInContentTypeId.UntypedDocument); } else { foreach (SPContentType ct2 in ctoFolder) { if (ct2.Id == contentType.Id) { fAllowedCt = true; break; } } } %> <% idxCt++; } %>
&ctype=<%SPHttpUtility.UrlKeyValueEncode(contentType.Id.ToString(), Response.Output);%>"> <%SPHttpUtility.HtmlEncode(contentType.Name,Response.Output);%> <% if ( fAllowedCt == true ) { %> Checked <% ; } %> <% if ( idxCt == 0 == true ) { %> Checked <% ; } %>
  ">
  ">
 

<% if (IsDocumentLibrary) { if (spList.ContentTypesEnabled) { %> <% } else {%> <% } } else if (SPBaseType.Survey == spList.BaseType) { %> <% } else { if (spList.ContentTypesEnabled) { %> <% } else {%> <% } } %>
<% rowClass = "ms-alternating"; for (Int32 iIndex = 0; iIndex < spFields.Count; iIndex ++ ) { SPField spField = (SPField)spFields[iIndex]; SPFieldLookup fldLookup = spField as SPFieldLookup; bool bCountRelated = fldLookup != null && fldLookup.CountRelated; SPFieldType t = spField.Type; if ( t == SPFieldType.Computed || t == SPFieldType.File || t == SPFieldType.Integer || t == SPFieldType.Recurrence || t == SPFieldType.CrossProjectLink || t == SPFieldType.AllDayEvent) { continue; } if (!spField.Reorderable && !bCountRelated && !(spField.ReadOnlyField && spField.Type == SPFieldType.User)) { continue; } if (spField.ShowInListSettings == false) { continue; } if (spField.ReadOnlyField && !bCountRelated) { switch (spField.Type) { case SPFieldType.Calculated: rowClass = (rowClass == "")? "ms-alternating" : ""; %> <% break; case SPFieldType.User: rowClass = (rowClass == "")? "ms-alternating" : ""; %> <% break; default: if (spField.XPath != null && !spField.Hidden) { %> <% } break; } } else { rowClass = (rowClass == "")? "ms-alternating" : ""; %> <% } } for (int i = 0; i < invalidFldsDispNames.Count; i++) { rowClass = (rowClass == "")? "ms-alternating" : ""; strField = invalidFldsIntNames[i].ToString(); string strurl = strHttpPath + "Cmd=DeleteField&" + strListParam + "&Field=" + strField + "&owshiddenversion=" + spList.Version.ToString() + "&NextUsing=" + strNextUsing; %> <% } %>
<% if (!spList.ContentTypesEnabled) { %> <% } else { %> <% } %> Internal Name
&Field=<%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>"> <%SPHttpUtility.HtmlEncode(spField.Title,Response.Output);%> <%SPHttpUtility.HtmlEncode(GetUsedIn(spField), Response.Output);%> <%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>
&Field=<%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>" > <%SPHttpUtility.HtmlEncode(spField.Title,Response.Output);%> <%SPHttpUtility.HtmlEncode(spField.TypeDisplayName, Response.Output);%> <%SPHttpUtility.HtmlEncode(GetUsedIn(spField), Response.Output);%> <%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>
<%SPHttpUtility.HtmlEncode(spField.Title,Response.Output);%> <%SPHttpUtility.HtmlEncode(spField.TypeDisplayName, Response.Output);%> <% if ( !spList.ContentTypesEnabled && spField.Required == true ) { %> Checked <% ; } %> <%SPHttpUtility.HtmlEncode(GetUsedIn(spField), Response.Output);%> <%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>
<%if (Enum.IsDefined(typeof(SPFieldType), spField.TypeAsString) && spField.Type != SPFieldType.Lookup && spField.Type != SPFieldType.User) {%> &Field=<%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>"> <%SPHttpUtility.HtmlEncode(spField.Title,Response.Output);%> <%} else {%> &Field=<%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>"> <%SPHttpUtility.HtmlEncode(spField.Title,Response.Output);%> <%}%> <%SPHttpUtility.HtmlEncode(spField.TypeDisplayName, Response.Output);%> <% if ( !spList.ContentTypesEnabled && spField.Required == true ) { %> Checked <% ; } %> <%SPHttpUtility.HtmlEncode(GetUsedIn(spField), Response.Output);%> <%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>
<%SPHttpUtility.HtmlEncode(invalidFldsDispNames[i].ToString(),Response.Output);%> );>
<% if (!spList.ContentTypesEnabled) { %> <% } %>
  ">
  ">
  ">
  ">
 

<% { string str = (string)(this.GetGlobalResourceObject("wss", "listedit_viewsdescription_part1")); string strParam; switch (iBaseType) { case SPBaseType.DocumentLibrary: if (SPListTemplateType.PictureLibrary == iServerTemplate) { strParam = "listname_picturelib"; } else if (SPListTemplateType.XMLForm == iServerTemplate) { strParam = "listname_formlib"; } else if (SPListTemplateType.DataConnectionLibrary == iServerTemplate) { strParam = "listname_dcllib"; } else if (SPListTemplateType.ListTemplateCatalog == iServerTemplate || SPListTemplateType.WebTemplateCatalog == iServerTemplate || SPListTemplateType.WebPartCatalog == iServerTemplate) { strParam = "listname_gallery"; } else { strParam = "listname_doclib"; } break; case SPBaseType.DiscussionBoard: strParam = "listname_disc"; break; case SPBaseType.Survey: strParam = "listname_survey"; break; default: strParam = "listname_list"; break; } strParam = (string)(this.GetGlobalResourceObject("wss", strParam)); str = string.Format(str, strParam); SPHttpUtility.NoEncode(str,Response.Output); } %> <% { string str = (string)(this.GetGlobalResourceObject("wss", "listedit_viewsdescription_part2")); string strParam; switch (iBaseType) { case SPBaseType.DocumentLibrary: if (SPListTemplateType.PictureLibrary == iServerTemplate) { strParam = "listname_picturelib"; } else if (SPListTemplateType.XMLForm == iServerTemplate) { strParam = "listname_formlib"; } else if (SPListTemplateType.DataConnectionLibrary == iServerTemplate) { strParam = "listname_dcllib"; } else if (SPListTemplateType.ListTemplateCatalog == iServerTemplate || SPListTemplateType.WebTemplateCatalog == iServerTemplate || SPListTemplateType.WebPartCatalog == iServerTemplate) { strParam = "listname_gallery"; } else { strParam = "listname_doclib"; } break; case SPBaseType.DiscussionBoard: strParam = "listname_disc"; break; case SPBaseType.Survey: strParam = "listname_survey"; break; default: strParam = "listname_list"; break; } strParam = (string)(this.GetGlobalResourceObject("wss", strParam)); str = string.Format(str, strParam); SPHttpUtility.NoEncode(str,Response.Output); } %>
<% if (spList.ContentTypesEnabled) { %> <% } else { %> <% } %> <% string encodedPageSource = SPHttpUtility.UrlKeyValueEncode( SPHttpUtility.UrlKeyValueEncode(Request.RawUrl)); SPContentTypeCollection contentTypes = null; if (spList.ContentTypesEnabled) contentTypes = spList.ContentTypes; SPViewCollection spViews = spList.Views; rowClass = "ms-alternating"; for (Int32 iIndex = 0; iIndex < spViews.Count; iIndex ++ ) { SPView spView = spViews[iIndex]; switch ( spView.Hidden ) { case true: break; default: rowClass = (rowClass == "")? "ms-alternating" : ""; bFoundAtLeastOneView = true; %> <% break; } } %> <% switch (bFoundAtLeastOneView) { case true: break; default: %> <% break; } %>
&View=<%SPHttpUtility.UrlKeyValueEncode(spView.ID.ToString("B").ToUpper(), Response.Output);%>&Source=<%SPHttpUtility.NoEncode(encodedPageSource, Response.Output);%>"> <%SPHttpUtility.HtmlEncode(spView.Title,Response.Output);%> <% if (spList.ContentTypesEnabled) { %> <% SPContentTypeId contentTypeId = spView.ContentTypeId; if (contentTypeId == SPBuiltInContentTypeId.System) { %><% } else if (contentTypeId == SPBuiltInContentTypeId.RootOfList) { %><% } else if (contentTypes[contentTypeId] != null) { SPHttpUtility.HtmlEncode(contentTypes[contentTypeId].Name, Response.Output); } } %> <% if ( (spView.DefaultView || (spList.ContentTypesEnabled && spView.DefaultViewForContentType)) == true ) { %> Checked <% ; } %>
  ">