<%@ 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.WorkflowPage" %> <%@ 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="ToolBar" src="~/_controltemplates/ToolBar.ascx" %> <%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.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 (m_list != null) { %> ><%SPHttpUtility.HtmlEncode(m_list.Title,Response.Output);%>: <% } %> : <% SPHttpUtility.HtmlEncode(ItemName,Response.Output); %> <% if (m_fShowStart && m_alwaStart.Count > 0) { %> <% } %>
 
<% string strImageUrl = "/_layouts/images/itgen.gif"; if (m_fShowStart) { %> <% if (m_alwaStart.Count <= 0) { %> <% } else { %> <% } } if (m_fShowStatus) { %>
"); else Response.Write(""); %>
<% bool fColumnPosition=true; int iwa = 0; strImageUrl = "/_layouts/images/availableworkflow.gif"; foreach (SPWorkflowAssociation wa in m_alwaStart) { string strIniUrl = GenerateStartWorkflowLink(wa); if (strIniUrl == null) strIniUrl = "javascript:StartWorkflow(" + Convert.ToString(iwa) + ")"; %>
title=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(WorkflowDisplayName(wa)),Response.Output);%>> <%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(WorkflowDisplayName(wa)),Response.Output);% src=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(strImageUrl,true),Response.Output);%> />
> <%SPHttpUtility.HtmlEncode(WorkflowDisplayName(wa),Response.Output);%>
<% SPHttpUtility.HtmlEncodeAllowSimpleTextFormatting(wa.Description,Response.Output); %>
 
<% if (fColumnPosition) Response.Write("
"); else Response.Write("
"); fColumnPosition = (fColumnPosition) ? false : true; iwa++; } if (fColumnPosition) Response.Write("
  <% SPHttpUtility.NoEncode(MyWorkflowsUrl,Response.Output); %>
<% if (m_alwfRunning == null || m_alwfRunning.Count <= 0) { %> <% } else { string rowClass = "ms-alternating"; foreach (SPWorkflow wf in m_alwfRunning) { string strStatusUrl = StatusUrl(wf); SPWorkflowAssociation wt = wf.ParentAssociation; string strStatus = StrStatus(wf); rowClass = (rowClass == "")? "ms-alternating" : ""; %> <% } } %> <% if (m_alwfCompleted == null || m_alwfCompleted.Count <= 0) { %> <% } else { string rowClass = "ms-alternating"; foreach (SPWorkflow wf in m_alwfCompleted) { string strStatusUrl = StatusUrl(wf); SPWorkflowAssociation wt = wf.ParentAssociation; string strStatus = StrStatus(wf); rowClass = (rowClass == "")? "ms-alternating" : ""; %> <% } } } %>
title=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(WorkflowDisplayName(wt)),Response.Output);%>> <%SPHttpUtility.HtmlEncode(WorkflowDisplayName(wt),Response.Output);%> <% SPHttpUtility.NoEncode(SPFieldDateTime.GetFieldValueAsHtml(wf.Created, Web, SPDateFormat.DateTime),Response.Output); %> title=<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(strStatus),Response.Output);%>> <% SPHttpUtility.NoEncode(strStatus,Response.Output); %>
title=<%SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(WorkflowDisplayName(wt)),Response.Output);%>> <%SPHttpUtility.HtmlEncode(WorkflowDisplayName(wt),Response.Output);%> <% SPHttpUtility.NoEncode(SPFieldDateTime.GetFieldValueAsHtml(wf.Created, Web, SPDateFormat.DateTime),Response.Output); %> <%SPHttpUtility.NoEncode(SPFieldDateTime.GetFieldValueAsHtml(wf.Modified, Web, SPDateFormat.DateTime),Response.Output); %> title=<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(strStatus),Response.Output);%>> <% SPHttpUtility.NoEncode(strStatus,Response.Output); %>
<%@ Register TagPrefix="wssuc" TagName="TopNavBar" src="~/_controltemplates/TopNavBar.ascx" %>