>
>
>
>
>
>
>
>
>
>
>
>
>
>
| |
 |
 |
|
<% { string str = (string)(this.GetGlobalResourceObject("wss", "viewedit_typenameforthisview")); 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 (!bViewPoisoned && !bViewReadOnly) { %>
 |
|
|
 |
| |
|
|
 |
<%
if (strViewType != "CALENDAR" && !bThreaded)
{
%>
 |
| |
|
|
|
|
|
|
|
|
|
<%
int iCurrentIndex = -1;
if (spViewFields != null)
{
for ( int iInd1 = 0 ; iInd1 < spViewFields.Count ; iInd1 ++ )
{
try
{
if (projectedFieldNames != null && projectedFieldNames.ContainsKey(spViewFields[iInd1]))
{
spField = new SPFieldDummyProjected(spFields, "Lookup", spViewFields[iInd1]);
}
else
{
spField = spFields.GetFieldByInternalName(spViewFields[iInd1]);
}
}
catch (ArgumentException)
{
continue;
}
iCurrentIndex++;
String strFieldName = spField.Title;
String strAuthoringInfo = strFieldName+" "+spField.AuthoringInfo;
%>
|
<% if (spViewFields.Explicit(iInd1))
{%>
<%
}
%>
|
|
|
<% string strTemp324 = (string)(this.GetGlobalResourceObject("wss", "viewedit_position_param"));
strTemp324 = string.Format(strTemp324, SPHttpUtility.HtmlEncode(strAuthoringInfo));
%>
|
|
<%
}
}
for ( int iIndex1 = 0 ; iIndex1 < spOrderedFields.Count ; iIndex1 ++ )
{
spField = (SPField)spOrderedFields[iIndex1];
String strFieldName = spField.Title;
if (!ShowField(spField))
continue;
if (spViewFields != null && spViewFields.Exists(GetInternalName(spField)))
continue;
iCurrentIndex++;
String strAuthoringInfo = strFieldName+" "+spField.AuthoringInfo;
%>
|
|
|
|
<% string strTemp324 = (string)(this.GetGlobalResourceObject("wss", "viewedit_position_param"));
strTemp324 = string.Format(strTemp324, SPHttpUtility.HtmlEncode(strAuthoringInfo));
%>
|
|
<%
}
%>
|
| | |
<%
}
%>
<%
if (strViewType == "GANTT")
{
%>
 |
| |
|
|
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
<%
if (spWeb.UIVersion == 4)
{
%>
|
|
 |
|
<%
}
%>
|
|
| |
|
<%
}
%>
<%
if (strViewType == "CALENDAR")
{
string strFirstDateFieldName = null;
%>
 |
| |
|
|
|
|
|
 |
|
|
|
 |
|
|
|
|
| | |
<%
if (strViewType == "CALENDAR")
{
%>
 |
| |
|
|
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
|
| | |
<%
}
%>
 |
| |
|
|
|
|
| | |
<%
}
%>
<%
if(!bThreaded)
{
%>
<%
if (strViewType != "CALENDAR" && !bRecurrenceRowset)
{
%>
 |
| |
<%
if (bOrderedList && !bPersonalView)
{
%>
|
|
|
|
 |
 |
|
<% } %>
|
|
|
|
|
 |
|
|
|
| |
<%
}
else
{
%>
>
<%
}
}
else
{
%>
>
>
>
>
>
<%
}
%>
<%
if (spList.HasExternalDataSource)
{
%>
 |
| |
|
|
|
|
| |
<%
}
%>
<%
if(!bThreaded)
{
%>
 |
| |
|
|
<%
if (iBaseType == SPBaseType.Issue)
{
%>
<%
}
%>
| |
|
|
|
| | |
<% if ((FilterCount < 10))
{ %>
| |
|
<% } %>
<%
if (strViewType != "GRID" && strViewType != "CALENDAR" && strViewType != "GANTT" && !bRecurrenceRowset &&
!spList.HasExternalDataSource)
{
%>
 |
| |
|
|
|
|
| |
<%
}
%>
<%
if (strViewType != "GRID" && strViewType != "CALENDAR" && strViewType != "GANTT" && DisplayTabularViewSection())
{
%>
 |
| |
|
|
|
|
| |
<%
}
%>
<%
if (strViewType != "GRID" && strViewType != "CALENDAR" && !bRecurrenceRowset)
{
%>
 |
| |
|
|
|
|
:
|
|
 |
|
|
:
|
|
 |
|
|
|
|
|
|
| |
<%
}
%>
<%
if (strViewType != "CALENDAR" && !bRecurrenceRowset)
{
%>
 |
| |
|
|
|
|
|
|
<%
int cdt = spWeb.Site.WebApplication.DocumentConverters.Count;
for ( int iIndex1 = 0 ; iIndex1 < spOrderedFields.Count ; iIndex1 ++ )
{
spField = (SPField)spOrderedFields[iIndex1];
String strFieldName = spField.Title;
SPFieldType type = spField.Type;
if (spField.Hidden ||
(spField.ShowInViewForms == false) ||
(type == SPFieldType.Computed && !spField.Sortable) ||
(type == SPFieldType.Lookup && (spField as SPFieldLookup) != null && (spField as SPFieldLookup).CountRelated) ||
(bAttachmentsDisabled && SPFieldType.Attachments == type) ||
(spField as SPFieldLookup) != null && (spField as SPFieldLookup).AllowMultipleValues ||
(strViewType != "GRID" &&
(spField is SPFieldCalculated ||
spField is SPFieldMultiLineText ||
spField is SPFieldMultiColumn ||
type == SPFieldType.MultiChoice ||
type == SPFieldType.GridChoice)))
continue;
if (cdt == 0 &&
(spField.Id == SPBuiltInFieldId.ParentLeafName ||
spField.Id == SPBuiltInFieldId.ParentVersionString))
{
continue;
}
if (iBaseType == SPBaseType.DocumentLibrary)
{
if (GetInternalName(spField) == "FileSizeDisplay")
type = SPFieldType.Integer;
if (GetInternalName(spField) == "Created_x0020_Date"
|| GetInternalName(spField) == "Last_x0020_Modified")
type = SPFieldType.DateTime;
}
if (strViewType == "GRID" && spField is SPFieldCalculated)
{
type = ((SPFieldCalculated)spField).OutputType;
}
String strAggregation = String.Empty;
if (bBasedOnExistingView)
strAggregation = spView.GetAggregationString(GetInternalName(spField));
%>
|
<%SPHttpUtility.HtmlEncode(strFieldName,Response.Output);
if (strViewType != "GRID" &&
(!ListViewWebPart.RestrictedTemplateType(spList)) &&
(spField is SPFieldDateTime) &&
(!spList.HasExternalDataSource)) {%>
<%}%>
|
|
<%
}
%>
|
| | |
<%
}
if (strViewType != "GRID" && strViewType != "CALENDAR")
{
if (iBaseType != SPBaseType.DiscussionBoard)
{
%>
 |
| |
|
|
|
:
| |
|
|
| | |
<%
}
}
%>
<%
if (viewScope == SPViewScope.Default || viewScope == SPViewScope.Recursive)
{
if (strViewType != "CALENDAR" &&
!spList.HasExternalDataSource &&
!(SPMeeting.IsMeetingWorkspaceWeb(spWeb)
&& iBaseType != SPBaseType.DocumentLibrary
&& !spList.ContentTypesEnabled))
{
%>
 |
| |
|
|
|
|
| | |
<%
}
else if (strViewType == "CALENDAR")
{
%>
<%
}
}
else if (viewScope == SPViewScope.Recursive)
{
%>
<%
}
else if (viewScope == SPViewScope.RecursiveAll)
{
%>
<%
}
}
if (bIncludeRootFolder)
{
%>
<%
}
if (strViewType != "GRID" && strViewType != "CALENDAR")
{
%>
 |
<%
}
else
{
%>
<%
}
%>
|
|
|
<% { string str = (string)(this.GetGlobalResourceObject("wss", "viewedit_itemlimitdesc2")); 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); } %>
| |
|
|
:
|
| | |
<%
}
else if (strViewType == "GRID")
{
%>
 |
| |
|
|
<% { string str = (string)(this.GetGlobalResourceObject("wss", "viewedit_itemlimitdesc2")); 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); } %>
| |
|
|
|
| | |
<%
}
else
{
%>
<%
}
%>
<%
}
%>
<%
if (!bPersonalView && !bViewPoisoned && !bViewReadOnly &&
!bModerationView &&
iServerTemplate != SPListTemplateType.ListTemplateCatalog &&
iServerTemplate != SPListTemplateType.WebTemplateCatalog &&
iServerTemplate != SPListTemplateType.WebPartCatalog &&
iServerTemplate != SPListTemplateType.MasterPageCatalog &&
iServerTemplate != SPListTemplateType.DataConnectionLibrary &&
iServerTemplate != SPListTemplateType.WorkflowHistory &&
iServerTemplate != SPListTemplateType.DiscussionBoard)
{
if (strViewType == "HTML" || strViewType == "RECURRENCE" || strViewType == "CALENDAR")
{
%>
 |
| |
|
|
|
|
|
|
|
<%
if (strViewType != "CALENDAR" &&
iServerTemplate != SPListTemplateType.Contacts &&
iServerTemplate != SPListTemplateType.Events)
{
%>
|
|
| |
<%
if (spViewFields != null)
{
%>
<%
}
%>
|
|
<%
}
%>
| |
<%
}
}
%>
 |
 |
| |
| |
|
|