<%@ 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.ListEditPage" 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="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" %> <%@ Register TagPrefix="wssuc" TagName="LinkSection" src="~/_controltemplates/LinkSection.ascx" %> <%@ Register Tagprefix="Meetings" Namespace="Microsoft.SharePoint.Meetings" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Workflow" Namespace="Microsoft.SharePoint.Workflow" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="System.Collections.Generic" %> <% 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) { %> <% } %>
<% string listDescription; listDescription = ListPageBase.RenderListDescription(Web, spList); %> <% if (spList.HasExternalDataSource) { %> <% } if (bEmailServiceEnabled && !String.IsNullOrEmpty(spList.EmailAlias)) { %> <% } %> <% if (IsUpLevelBrowser && bShowThrottleMeter) { %> <% } %>

<%SPHttpUtility.HtmlEncode(spList.Title,Response.Output); %>
<%SPHttpUtility.HtmlEncode(Site.MakeFullUrl(strDefaultViewUrl),Response.Output);%>
<%SPHttpUtility.NoEncode(listDescription,Response.Output); %>
<%SPHttpUtility.HtmlEncodeAllowSimpleTextFormatting(spList.DataSource.GetProperty(Microsoft.SharePoint.SPListDataSource.BDCProperties.Entity),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 (!spList.HasExternalDataSource) { %> <% } %>

<% 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; bool bMcolLookup = fldLookup != null && fldLookup.IsDependentLookup && fldLookup.LookupList != "Docs"; SPFieldType t = spField.Type; if ( t == SPFieldType.Computed || t == SPFieldType.File || t == SPFieldType.Recurrence || t == SPFieldType.CrossProjectLink || t == SPFieldType.AllDayEvent) { continue; } if (!spField.Reorderable && !bCountRelated && !(spField.ReadOnlyField && spField.Type == SPFieldType.User) && !(bMcolLookup && !spField.Hidden) && !spList.HasExternalDataSource) { continue; } if (spField.ShowInListSettings == false) { continue; } if ((spField.ReadOnlyField && !bCountRelated && !bMcolLookup) || spList.HasExternalDataSource) { switch (spField.Type) { case SPFieldType.Calculated: rowClass = (rowClass == "")? "ms-alternating" : ""; %> <% break; case SPFieldType.User: break; default: if (!spField.Hidden) { if (spField.XPath != null || spList.HasExternalDataSource) { %> <% } } 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.HasExternalDataSource) { %> <% } else { %> <% } %> <% if (!spList.ContentTypesEnabled) { %> <% } else { %> <% } %>
&Field=<%SPHttpUtility.UrlKeyValueEncode(spField.InternalName, Response.Output);%>"> <%SPHttpUtility.HtmlEncode(spField.Title,Response.Output);%> <%SPHttpUtility.HtmlEncode(GetUsedIn(spField), 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);%>
<%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);%> <% bool bHasJumpTo = false; if (spField.Type == SPFieldType.Choice) { SPFieldChoice choice = (SPFieldChoice)spField; Int32 j; for (j=0; j < choice.ChoicesJumpTo.Count && !bHasJumpTo; j++) bHasJumpTo= (choice.ChoicesJumpTo[j] != null); if (!bHasJumpTo && choice.FillInChoice && choice.FillinChoiceJumpTo != null) { bHasJumpTo = true; } } else if (spField.Type == SPFieldType.Boolean) { SPFieldBoolean boolean = (SPFieldBoolean)spField; if (boolean.JumpToYesField != null || boolean.JumpToNoField != null) { bHasJumpTo = true; } } else if (spField.JumpToField != null) { bHasJumpTo = true; } %> <% if ( bHasJumpTo == true ) { %> Checked <% ; } %>
<%SPHttpUtility.HtmlEncode(invalidFldsDispNames[i].ToString(),Response.Output);%>
<% if (!spList.ContentTypesEnabled) { %> <% } %>
  ">
  ">
 
 
<%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %>