<%@ 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.IndexColumns" %> <%@ 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="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.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" %> <%if (m_list != null) {%>: ><%SPHttpUtility.HtmlEncode(m_list.Title,Response.Output);%> <% } %>
<% { string strCheckedState; SPField fld; SPFieldLookup fldLookup; string L_RIReasonForDisabling = SPHttpUtility.HtmlEncode((string) GetGlobalResourceObject("wss", "indxcol_RIReasonForDisabling")); string L_UQReasonForDisabling = SPHttpUtility.HtmlEncode((string) GetGlobalResourceObject("wss", "indxcol_UQReasonForDisabling")); string L_BothReasonForDisabling = SPHttpUtility.HtmlEncode((string) GetGlobalResourceObject("wss", "indxcol_BothReasonForDisabling")); ArrayList spOrderedFields = SortFields(m_flds,m_web.Locale); for (int i = 0; i < spOrderedFields.Count; i++) { bool hasDeleteBehavior = false; string theReasonForDisabling = String.Empty; bool disableInputDueToConstraints = false; fld = (SPField)spOrderedFields[i]; if (fld.Indexed) { strCheckedState = "checked"; } else { strCheckedState = ""; } if (fld is SPFieldLookup && ((SPFieldLookup)fld).RelationshipDeleteBehavior != SPRelationshipDeleteBehavior.None) { hasDeleteBehavior = true; } if (hasDeleteBehavior || fld.EnforceUniqueValues == true) { disableInputDueToConstraints = true; if (hasDeleteBehavior && fld.EnforceUniqueValues == true) theReasonForDisabling = L_BothReasonForDisabling; else if (hasDeleteBehavior) theReasonForDisabling = L_RIReasonForDisabling; else theReasonForDisabling = L_UQReasonForDisabling; } if (IsFieldIndexable(fld) || fld.InternalName == "ContentTypeId") { %> <% if (fld.InternalName == "ContentTypeId" || disableInputDueToConstraints) { if (fld.Indexed == false) continue; %> <% } else { %> <% } %> <% } } } %>
     
disabled="disabled" name="IndexedColumns" id=<%SPHttpUtility.NoEncode("\"chk" + fld.InternalName + "\"",Response.Output);%> type="checkbox" <% SPHttpUtility.HtmlEncode(strCheckedState,Response.Output); %> value=<%SPHttpUtility.NoEncode("\"" + fld.InternalName + "\"",Response.Output);%> />   disabled="true">
type="checkbox" <% SPHttpUtility.HtmlEncode(strCheckedState,Response.Output); %> value=<%SPHttpUtility.NoEncode("\"" + fld.InternalName + "\"",Response.Output);%> />  
<%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %>