<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User_Cerate_WorkFlow.aspx.cs"
    Inherits="WorkFlow.FlowPage.User_Cerate_WorkFlow" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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 runat="server">
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="content-type" content="no-cache, must-revalidate" />
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <title>发启工作流</title>

    <script type="text/javascript">
       function ftp(info)
        {
          var file=document.getElementById(info);
          file.outerHTML=file.outerHTML;
          return true;
        }
         /* 
      *CheckFilePath()验证附件为不为空
      *创建人：typ
      *创建时间：2010-12-21
      */
      function CheckFilePath()
      {
        var FilePath=document.getElementById("<%=fupFilePath.ClientID %>");
        if(FilePath.value=="")
         {
            alert('请先浏览要上传的附件！');return false ;       
         }
      }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table style="width: 100%" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            标题：
                        </td>
                        <td>
                            <asp:TextBox ID="txtTitleInfo" runat="server" Width="345px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" Height="476px">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <table>
                    <tr>
                        <td>
                            类别：
                        </td>
                        <td>
                            <asp:RadioButtonList ID="rbtState" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="开始" Value="开始">开始</asp:ListItem>
                                <asp:ListItem Selected="True" Text="暂存" Value="暂存">暂存</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            附件：
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:FileUpload ID="fupFilePath" runat="server" Style="cursor: pointer;" Height="20px"
                                            onkeypress="return false;" onkeydown="return false;" oncontextmenu="return false;" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:Button ID="btUpLoad" runat="server" Text="上传附件" OnClientClick="return CheckFilePath();"
                                            ToolTip="上传浏览的附件" OnClick="btUpLoad_Click" />
                                    </td>
                                    <td>
                                        <input id="Button1" type="button" value="清除附件" title="清除所浏览的附件" onclick="return ftp('fupFilePath');" />
                                    </td>
                                    <td>
                                        (注:上传文件最大为50M)
                                    </td>
                                </tr>
                            </table>
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                            <Triggers>
                                                <asp:AsyncPostBackTrigger ControlID="ibtDelete" EventName="Click" />
                                            </Triggers>
                                            <ContentTemplate>
                                                <div style="font-size: 14px;">
                                                    <asp:DropDownList ID="ddlFilesView" runat="server" Visible="False">
                                                    </asp:DropDownList>
                                                </div>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                    <td>
                                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                            <ContentTemplate>
                                                <div style="font-size: 14px;">
                                                    <asp:ImageButton ID="ibtDelete" runat="server" OnClick="ibtDelete_Click" ImageUrl="images/mail_delete.png"
                                                        ToolTip="删除您刚刚上传的附件" Visible="False" OnClientClick="return confirm('您确定要删除这个附件吗？');"
                                                        Style="margin-left: 9px;" />
                                                </div>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            备注：
                        </td>
                        <td>
                            <asp:TextBox ID="txtNotes" runat="server" TextMode="MultiLine" Width="880px" Height="30px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:Button ID="btSave" Width="65px" Height="32px" Font-Size="18px" runat="server"
                            Text="保存" OnClick="btSave_Click" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
