<%@ 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.AddWrkflPage" %> <%@ 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" %> <%@ Register Tagprefix="Workflow" Namespace="Microsoft.SharePoint.Workflow" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <% if (StringGuidAssoc == null) { %> <% } else { %> <% } %> <% if (m_ct == null && List == null) { %> <% } else if (m_ct != null) { if (m_ct.ParentList == null) { %> ><%SPHttpUtility.HtmlEncode(ReturnUrlDisplayText,Response.Output);%> <% } else { %> ><%SPHttpUtility.HtmlEncode(List.Title,Response.Output);%> > ><%SPHttpUtility.HtmlEncode(ReturnUrlDisplayText,Response.Output);%> <% } } else { %> ><%SPHttpUtility.HtmlEncode(List.Title,Response.Output);%> > <% } if (StringGuidAssoc == null) { %> <% } else { %> <% } %> <% if(List != null && List.ContentTypesEnabled) { %> <% } %> <% if (m_bContentTypeTemplate) { %> <% } %> value="" accesskey="" />
 
 
 
 

 
<% if (Template != null) { %> <% SPHttpUtility.HtmlEncode(Template.Description,Response.Output); %> <% } %>
 
 
 
  <% if (m_bContentTypeTemplate) { %> <% } else { %> <% } %>

 
<% if (!m_bContentTypeTemplate && !string.IsNullOrEmpty(StrTaskListDefault)) { SPList defaultList = Web.Lists[new Guid(StrTaskListDefault)]; %> <% SPHttpUtility.HtmlEncode(defaultList.Description,Response.Output); %> <% } %>
 
  <% if (m_bContentTypeTemplate) { %> <% } else { %> <% } %>

 
<% if (!m_bContentTypeTemplate && !string.IsNullOrEmpty(StrHistoryListDefault)) { SPList defaultList = Web.Lists[new Guid(StrHistoryListDefault)]; %> <% SPHttpUtility.HtmlEncode(defaultList.Description,Response.Output); %> <% } %>
 
  <% } else { %>   <% } %>
 
 
 
 
 
 
 
 
 
<% foreach (SPWorkflowTemplate wt in WorkflowTemplates) { string strBaseId = wt.BaseId.ToString(); string urlPath = ""; bool fClose = true; if (!string.IsNullOrEmpty(wt.AssociationUrl)) { fClose = false; if (wt.AssociationUrl.StartsWith("/")) urlPath = SPHttpUtility.UrlPathEncode(Web.Site.Url + wt.AssociationUrl, true); else urlPath = SPHttpUtility.UrlPathEncode(Web.Url + "/" + wt.AssociationUrl, true); } else urlPath = SPHttpUtility.UrlPathEncode(Web.Url + "/_layouts/AssocWrkfl.aspx", true); %> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(wt.Description),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(wt.AllowDefaultContentApproval ? "true" : "false"),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(wt.AutoStartCreate ? "true" : "false"),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(wt.AutoStartChange ? "true" : "false"),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlUrlAttributeEncode(urlPath),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlUrlAttributeEncode((fClose) ? "true" : "false"),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(wt.AllowManual ? "true" : "false"),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode((wt.PermissionsManual & SPBasePermissions.EditListItems) != 0 ? "true" : "false"),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode((wt.PermissionsManual & SPBasePermissions.ManageLists) != 0 ? "true" : "false"),Response.Output); %> /> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode((!wt.IsDeclarative || (string)wt["Visibility"] == "RootPublic" || (string)wt["Visibility"] == "Public") ? "false" : "true"),Response.Output); %> /> <% } %> <% foreach (SPList list in Web.Lists) { if (list.BaseTemplate == SPListTemplateType.Tasks || list.BaseTemplate == SPListTemplateType.WorkflowHistory) { %> value=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(list.Description),Response.Output); %> /> <% } } %>
<%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %>