<%@ 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.BasicFieldEditPage" %> <%@ 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="LinksTable" src="/_controltemplates/LinksTable.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %> <%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/LinkSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/ActionBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> <%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/Welcome.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" %> <% 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 = ""; %> <% if (null == spList) { throw new SPException(SPResource.GetString(Strings.ListGone)); } %> ><%SPHttpUtility.HtmlEncode(spList.Title,Response.Output);%> > <% String strLinkTitle = ""; String strList = ""; String strName = ""; String strDisplayName = ""; String strDescription = ""; String strFieldTypeParam = ""; bool bRequired = false; bool bEnforceUniqueValues = false; bool bIndexed = false; bool bUnlimitedLengthInDocumentLibrary = false; bool bSealed = false; bool bCanBeDeleted = true; String strDirection = "None"; String strFormat = ""; String strDefault = ""; String strDefaultFormula = String.Empty; bool fDefaultFormulaEmpty = true; String strDefaultURLDesc = ""; int iMaxLength = int.MaxValue; int iNumLines = int.MaxValue; double dblMin = double.MinValue; double dblMax = double.MaxValue; String strDecimals = ""; bool bPercentage = false; bool bRichText = false; bool bDisableRichTextModeControl = false; SPRichTextMode RichTextMode = SPRichTextMode.FullHtml; bool bAllowHyperlink = false; bool bAppendOnly = false; String strFromBaseType = ""; String strLookupList = ""; String strLookupField = ""; String strShowPresence = ""; String strDisplaySize = ""; String strDisplayNameParam = ""; bool bShowIME = RegionalSettings.IsEastAsia; bool bShowBidiDirection = RegionalSettings.IsRightToLeft; bool bShowCalendarUI = (RegionalSettings.CalendarType != 1); int iWebCalType = (int) RegionalSettings.CalendarType; int iCalType = iWebCalType; bool bUseDefault = true; String strCalType = ""; String strChoiceTextArea =""; String strGridChoiceTextArea =""; int GridStartNum = 1; int GridEndNum = 5; String strGridTxtRng1 = ""; String strGridTxtRng2 = ""; String strGridTxtRng3 = ""; String strGridNATxt = ""; String strIMEMode = ""; String strFillInChoice = ""; String strResultType = ""; String strFormula = ""; SPView spDefaultView = spList == null ? null : spList.DefaultView; string strHiddenSchema = ""; string strCheckedLiteral = " checked=\"checked\" "; bool bPrevDeniedState = SPSecurity.CatchAccessDeniedException; string strDisableRequired = ""; string strDisableEnforceUniqueValues = ""; if (strListId == null) { string customGroup = SPResource.GetString(Strings.CustomColumnsGroup); ContentTypePageUtil.FetchFieldGroups( Web.AvailableFields, SelectExistingGroupName, customGroup, null); } if (strListId == null) { string defaultGroup = Request.QueryString.Get("GroupNameParam"); if (defaultGroup != null) defaultGroup.Trim(); if (defaultGroup != null && defaultGroup.Length > 0) { ListItem item = SelectExistingGroupName.Items.FindByValue(defaultGroup); if (item != null) { SelectExistingGroupName.Value = defaultGroup; } else { RadNewGroup.Checked = true; TxtNewGroupName.Value = defaultGroup; } } } if ( Request.Url.ToString().IndexOf("DisplayNameParam") != -1 ) { strDisplayName = Request.QueryString.GetValues("DisplayNameParam")[0]; } if ( Request.Url.ToString().IndexOf("DescriptionParam") != -1 ) { strDescription = Request.QueryString.GetValues("DescriptionParam")[0];} if ( Request.Url.ToString().IndexOf("FieldTypeParam") != -1 ) { strFieldTypeParam = Request.QueryString.GetValues("FieldTypeParam")[0]; FieldTypeName = strFieldTypeParam; } if ( Request.Url.ToString().IndexOf("LookupListParam") != -1 ) {strLookupList = Request.QueryString.GetValues("LookupListParam")[0] ; } if ( Request.Url.ToString().IndexOf("LookupFieldParam") != -1 ) {strLookupField = Request.QueryString.GetValues("LookupFieldParam")[0]; } if ( Request.Url.ToString().IndexOf("ShowPresence") != -1 ) {strShowPresence = Request.QueryString.GetValues("ShowPresence")[0]; } if ( Request.Url.ToString().IndexOf("VldFormulaParam") != -1 ) { VldFormula.Text = Request.QueryString.GetValues("VldFormulaParam")[0]; } if ( Request.Url.ToString().IndexOf("VldMessageParam") != -1 ) { VldMessage.Text = Request.QueryString.GetValues("VldMessageParam")[0]; } if (FieldTypeName == "") { FieldTypeName = "Choice"; } if (FieldTypeName == "PageSeparator") { strDisplayName = (string)(this.GetGlobalResourceObject("wss", "fldnew_PageSeparator_DisplayName")); } else { String tDisplayNameParam = ""; if ( Request.Url.ToString().IndexOf("DisplayNameParam") != -1 ) { tDisplayNameParam = Request.QueryString.GetValues("DisplayNameParam")[0]; } switch ( tDisplayNameParam ) { case "": String L_strDisplayName_Text = (string)(this.GetGlobalResourceObject("wss", "fldedit_typeyourquestion")); strDisplayName =L_strDisplayName_Text ; break; } } if ( Request.Url.ToString().IndexOf("CalType") != -1 ) { strCalType = Request.QueryString.GetValues("CalType")[0]; if (strCalType != "") { iCalType = Convert.ToInt32(strCalType); if (iCalType > 0) bUseDefault = false; else if(iCalType == 0) { bUseDefault = true; iCalType = iWebCalType; } } } string L_strAutoIndexConfirm_Text = SPHttpUtility.EcmaScriptStringLiteralEncode(SPResource.GetString(Strings.EnforceUniqueValuesAutoIndex)); switch(FieldTypeName) { case "Text": if (iMaxLength == int.MaxValue) iMaxLength = 255; break; case "Note": if (iNumLines == int.MaxValue) iNumLines = 6; break; case "Choice": strFormat = "RadioButtons"; strFillInChoice = "FALSE"; break; case "MultiChoice": FieldTypeName = "Choice"; strFormat = "Checkboxes"; strFillInChoice = "FALSE"; break; case "DateTime": strFormat = "DateOnly"; break; case "Calculated": strResultType = "Text"; strFormula = ""; strFormat = "DateOnly"; CurrencyLocaleId = Web.CurrencyLocaleID; break; case "Currency": CurrencyLocaleId = Web.CurrencyLocaleID; break; } %> <% %>
name="Name" /> <% if (FieldTypeName == "PageSeparator") goto showSubmitButtons; %> <% if (!bSealed) { switch ( FieldTypeName ) { case "Boolean" : break; case "Calculated" : break; default : %> <% break; } %> <% if (CanSetUniquenessOnNewField(FieldTypeName) && !(spList == null && !string.IsNullOrEmpty(ContentTypeId))) { %> <% } %> <% switch ( FieldTypeName ) { case "Note" : if (SPBaseType.DocumentLibrary == iBaseType || SPBaseType.UnspecifiedBaseType == iBaseType) { string strYes = (string)(this.GetGlobalResourceObject("wss", "fldedit_UnlimitedLengthInDocumentLibraryYes")); string strNo = (string)(this.GetGlobalResourceObject("wss", "fldedit_UnlimitedLengthInDocumentLibraryNo")); %> <% } %> <% if ((SPBaseType.DocumentLibrary != iBaseType) ) { %> <% } if (bShowBidiDirection) {%> <%}%> <% break; case "Boolean": %> <% break; case "URL": %> <%if (bShowBidiDirection) {%> <%}%> <% break; case "Calculated" : %> <%if (bShowBidiDirection) {%> <%}%> <% break; case "Number" : %> <%if (bShowBidiDirection) {%> <%}%> <% break; case "Currency": %> <%if (bShowBidiDirection) {%> <%}%> <% break; case "Lookup" : case "User" : %> <% if (strLookupList == "UserInfo" && Web.EffectivePresenceEnabled) { %> <% } %> <%if (bShowBidiDirection) {%> <%}%> <% break; case "Choice": %> <%if (bShowBidiDirection) {%> <%}%> <% break; case "GridChoice": %> <%if (bShowBidiDirection) {%> <%}%> <% break; case "DateTime": %> <%if (bShowCalendarUI) {%> <%}%> <%if (bShowBidiDirection) {%> <%}%> <% break; case "Text": %> <%if (bShowBidiDirection) {%> <%}%> <% break; } } else { if (bShowBidiDirection) {%> <%} } %> <% if (bShowIME && !bSealed && FieldTypeName !="Lookup" && FieldTypeName!="DateTime" && FieldTypeName != "GridChoice" && FieldTypeName != "Calculated" && FieldTypeName != "Number" && FieldTypeName != "Currency" && FieldTypeName != "User" && FieldTypeName != "Boolean" && !(FieldTypeName == "Note" && bRichText == true) && strField != "PageSeparator") { %> <% } %> <% if (spList == null && !string.IsNullOrEmpty(ContentTypeId)) { %>
<% } %> <% string strValidationSectionStyle = ""; string strValidationSettingsStyle = " style='display: none'"; string strValidationImgSrc = "/_layouts/images/plus.gif"; if (!String.IsNullOrEmpty(VldFormula.Text) || !String.IsNullOrEmpty(VldMessage.Text)) { strValidationSettingsStyle = ""; strValidationImgSrc = "/_layouts/images/minus.gif"; } switch (FieldTypeName) { case "Choice": case "Currency": case "DateTime": case "Integer": case "Number": case "Text": %> > > <% break; } %> <% %> <% showSubmitButtons: %>
<% if (!bSealed) { %> <% } else { %> <% } %>

   
   
<% SPFieldTypeDefinitionCollection fieldTypes = Web.FieldTypeDefinitionCollection; SPFieldTypeDefinition selctedFieldType = null; for (Int32 i = 0; i < fieldTypes.Count; i++) { if(! fieldTypes[i].UserCreatable) continue; if (Enum.IsDefined(typeof(SPFieldType), fieldTypes[i].TypeName)) continue; if (spList == null) { if(! fieldTypes[i].ShowOnColumnTemplateCreate) continue; } else { if (spList.BaseType == SPBaseType.GenericList) { if(! fieldTypes[i].ShowOnListCreate) continue; } else if (spList.BaseType == SPBaseType.DocumentLibrary) { if(! fieldTypes[i].ShowOnDocumentLibraryCreate) continue; } else if (spList.BaseType == SPBaseType.Survey) { if(! fieldTypes[i].ShowOnSurveyCreate) continue; } } %> <% } %>
<% if ( FieldTypeName == "Text" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "Note" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "Choice" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "GridChoice" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "Number" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "Currency" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "DateTime" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "Lookup" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "Boolean" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "User" ) { %> <% ; } else { %> <% ; } %>
<% if ( FieldTypeName == "PageSeparator" ) { %> <% ; } else { %> <% ; } %>
" <%if ( FieldTypeName == fieldTypes[i].TypeName ) {%> checked="checked" <%}%>/>
  

 
 
  

  <% if (spList == null && !string.IsNullOrEmpty(ContentTypeId)) strDisableRequired = "DISABLED"; %>  
<% if ( bRequired == true ) { %> title="" checked="checked" /> <% ; } else { %> title="" /> <% ; } %> <% if ( bRequired == true ) { %> title="" /> <% ; } else { %> title="" checked="checked" /> <% ;} %>
   
<% if ( bEnforceUniqueValues == true ) { %> <% ; } else { %> <% ; } %> <% if ( bEnforceUniqueValues == true ) { %> <% ; } else { %> <% ;} %>
   
checked="checked"<%}%> value="TRUE" /> checked="checked"<%}%> value="TRUE" />
   
   
<% if (bAllowHyperlink) {%> <%}%>
<% if ( bRichText == true ) { %> disabled="true"<% } %>title="" /> <% ; } else { %> disabled="true"<% } %>title="" checked="checked" /> <% ;} %>
<% if ( (bRichText && RichTextMode == SPRichTextMode.Compatible) == true ) { %> disabled="true"<% } %>title="" checked="checked" /> <% ; } else { %> disabled="true"<% } %>title="" /> <% ; } %>
<% if ( (bRichText && RichTextMode == SPRichTextMode.FullHtml) == true ) { %> disabled="true"<% } %>title="" checked="checked" /> <% ; } else { %> disabled="true"<% } %>title="" /> <% ; } %>
   
  : 
   
   
 
 
   
<% if ( strResultType == "Text" ) { %> <% ; } else { %> <% ; } %>
<% if ( strResultType == "Number" ) { %> <% ; } else { %> <% ; } %>
<% if ( strResultType == "Currency" ) { %> <% ; } else { %> <% ; } %>
<% if ( strResultType == "DateTime" ) { %> <% ; } else { %> <% ; } %>
<% if ( strResultType == "Boolean" ) { %> <% ; } else { %> <% ; } %>
  :  
 
   
   
<% if ( strFormat == "DateOnly" ) { %> <% ; } else { %> <% ; } %> <% if ( strFormat == "DateTime" ) { %> <% ; } else { %> <% ; } %>
   
   
:       : 
  : 
 
onclick="fld.fCalcCheck=false;" title="" /> onclick="fld.fCalcCheck=true;" title="" />
 
<% if ( bPercentage == true ) { %> <% ; } else { %> <% ; } %>
   
   
:  : 
  : 
 
onclick="fld.fCalcCheck=false;" title="" /> onclick="fld.fCalcCheck=true;" title="" />
   
   
   
     
   
<% if ( strShowPresence == "FALSE" ) { %> <% ; } else { %> <% ;} %>
   
  : 
   
<% string strChoiceFormatOnClick = "onclick = 'disableUniquenessIfMultiChoice(); showValidationSection(); return true;'"; %> <% if ( strFormat == "Dropdown" ) { %> id="onetidChoiceDD" title="" checked="checked" /> <% ; } else { %> id="onetidChoiceDD" title="" /> <% ; } %>
<% if ( strFormat == "RadioButtons" ) { %> id="onetidChoiceRadio" title="" checked="checked" /> <% ; } else { %> id="onetidChoiceRadio" title="" /> <% ; } %>
<% if ( strFormat == "Checkboxes" ) { %> id="onetidChoiceCheck" title="" checked="checked" /> <% ; } else { %> id="onetidChoiceCheck" title="" /> <% ; } %>
   
<% if ( strFillInChoice == "TRUE" ) { %> <% ; } else { %> <% ; } %> <% if ( strFillInChoice == "TRUE" ) { %> <% ; } else { %> <% ;} %>
 
title="" id="onetidDefaultChoiceValue0" />   title="" id="onetidDefaultChoiceValue2" />  
   

  : 
  : 
<% int GridSelected = 5; %>
   
     
   
       
 
   
   
<% if ( strFormat == "DateOnly" ) { %> <% ; } else { %> <% ; } %> <% if ( strFormat == "DateTime" ) { %> <% ; } else { %> <% ; } %>
   
<% if ( bUseDefault == true ) { %> <% ; } else { %> <% ; } %>
<% if ( bUseDefault == true ) { %> <% ; } else { %> <% ;} %>
   


<% if (IsPreviewableCalType(iCalType)) { %> id="onetidIOLiteralDefaultDate" title="" />
<% } else { %> <% } %>
<% if (IsPreviewableCalType(iCalType)) { %> onclick="document.forms[MSOWebPartPageFormName].Default[3].checked = 1;" <% } else { %> onclick="document.forms[MSOWebPartPageFormName].Default[2].checked = 1;" <% } %> title=""/>
   
  : 
 
title="" /> title="" />
title="" />
   
   
   
  

 


  

 
  

border="0" alt="" /> 

 

   
  
   
  
 
 
 
/> /> /> /> /> /> />
<%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %>