<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="TotCms.Web.Office.Workflow.Manage" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="right_dqwz">工作流管理</div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td colspan="6" class="topic"><a href="Wf_Add.aspx">＋添加工作流</a></td>
      </tr>  
      <tr>        
        <td height="22">
        <asp:Repeater ID="rpCatalogs" runat="server">
        <ItemTemplate>· <a href='Manage.aspx?classid=<%# Eval("id") %>'><%# Eval("Title") %></a> </ItemTemplate>
        </asp:Repeater>
        </td>
      </tr>   
    </table>
    <asp:ListView ID="lvList" runat="server" ItemPlaceholderID="items"
        onselectedindexchanged="lvList_SelectedIndexChanged" 
        onitemcommand="lvList_ItemCommand" 
      onitemdatabound="lvList_ItemDataBound" DataKeyNames="id">
        <LayoutTemplate>
          <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">            
          <tr class="suphead">
              <td>名称</td>
              <td>创建人</td>
              <td>创建日期</td>
              <td>状态</td>
              <td>步骤</td>
              <td>操作</td>
          </tr>
          <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
          </table>
        </LayoutTemplate>   
        <ItemTemplate>
            <tr class="lines" onmouseover="this.style.backgroundColor='#ffffff';" onmouseout="this.style.backgroundColor='#f5f5f5';">
            <td><%# Eval("Title")%></td>
            <td><%# Eval("CreateBy")%></td>
            <td><%# Eval("PubDate")%></td>
            <td><%# GetStatus(Eval("IsOk"))%></td>
            <td><a href='WfStep.aspx?flowid=<%# Eval("id")%>'>管理步骤-&gt;</a></td>
            <td>
            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="editobj" CommandArgument='<%# Eval("id") %>'>编辑</asp:LinkButton>
						|
						<asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="deleteobj" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
            </td>
            </tr>
        </ItemTemplate>     
        <EmptyDataTemplate>
            <div class="info">暂时没有数据.</div>
        </EmptyDataTemplate>       
    </asp:ListView>
    
    <div class="pages">
      <cc1:Pager ID="Pager1" runat="server" GenerateFirstLastSection="True" 
      GenerateGoToSection="True" GenerateHiddenHyperlinks="False" 
      QueryStringParameterName="CurrentPage" OnCommand="pager_Command" 
      GoToStyle="text" OfClause="/" PageClause="页" PageSize="15" /></div>
    </form>
</body>
</html>

