<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TaskAddPlan.ascx.cs" Inherits="uc_case_Pall" %>
<%@Register TagPrefix="dntb" Namespace="DotNetTextBox" Assembly="DotNetTextBox"%>
<link href="d:\david\web\moban\web/./system_dntb/skin/xp/toolbar.css" rel="stylesheet"
    type="text/css" />
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Panel ID="ADDTaksPanel1" runat="server" Height="50px" Width="100%" HorizontalAlign="Left">
<table border="0" cellpadding="2" cellspacing="0" style="height: 28px;" width="100%">
    <tr>
        <td align="left" colspan="5" style="height: 2px">
        标题
        <asp:TextBox ID="AddPlanSubject1" runat="server" Width="494px" CssClass="TaskAddInput"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="AddPlanSubject1"
            ErrorMessage="请输入主题"></asp:RequiredFieldValidator></td>
    </tr>
    <tr style="color: #000000">
        <td align="center" colspan="1" style="width: 50%; height: 16px" valign="top">
            <asp:Panel ID="UploadFilePanel" runat="server" Height="50px" Width="100%" HorizontalAlign="Left">
            附件<asp:FileUpload ID="TaksFileUpload1" runat="server" CssClass="TaskAddInput" />
                <asp:LinkButton ID="UploadFileKey" runat="server" CausesValidation="False" OnClick="UploadFileKey_Click" Width="38px" CssClass="TaskAddButton">上传</asp:LinkButton><br />
                <asp:Label ID="UploadMaxFileText" runat="server" Text="Label" ForeColor="Gray"></asp:Label></asp:Panel>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="UploadTaksAccMessage" runat="server" Visible="False" ForeColor="Red"></asp:Label>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCreated="GridView1_RowCreated" OnRowDeleting="GridView1_RowDeleting" PageSize="2">
                        <Columns>
                            <asp:BoundField DataField="id">
                                <ItemStyle Width="30px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="filename">
                                <ItemStyle Width="100px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="文件">
                                <ItemTemplate>
                                    &nbsp;
                                    <asp:Image ID="Image1" runat="server" Height="60px" ImageAlign="AbsMiddle" ImageUrl='<%# ViewImg(Eval("filename").ToString()) %>'
                                        Width="80px" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="filesize" HeaderText="字节数">
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FileAtt" HeaderText="文件类型">
                                <ItemStyle HorizontalAlign="Center" Width="64px" />
                            </asp:BoundField>
                            <asp:TemplateField>
                                <ItemStyle HorizontalAlign="Center" Width="64px" />
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# FilePath(Eval("filename").ToString()) %>'
                                        Target="_blank" BorderStyle="None" Height="18px">打开</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowDeleteButton="True" >
                                <ItemStyle Width="64px" />
                            </asp:CommandField>
                        </Columns>
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
        <td align="left" colspan="4" style="width: 50%; height: 16px" valign="top">
            作品释义<br />
            &nbsp;<asp:TextBox ID="PlanInfo" runat="server" Height="290px" TextMode="MultiLine"
                Width="90%"></asp:TextBox>
            <br />
            <br />
            &nbsp;
            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click1" Width="149px" CssClass="TaskAddButton01">确定提交</asp:LinkButton></td>
    </tr>
</table>
    <strong><span style="color: #cc3300">
    上传注意事项:</span></strong><p style="text-align: left">
        1.请上传至少1幅.最多10幅作品;</p>
    <p style="text-align: left">
        2.为了您投标作品的良好呈现,请将您的作品图片控制在800x600像素,文件大小<span class="v2_xing">500k</span>以内;</p>
    <p style="text-align: left">
        3.允许文件格式:jpg/gif;</p>
    <p style="text-align: left">
        4.切勿同时开启多个上传作品页面，提交作品之前请勿刷新页面。</p>
</asp:Panel>
<asp:Panel ID="AddTaksPanel2" runat="server" Height="50px" HorizontalAlign="Center"
    Visible="False" Width="100%">
    <br />
    <br />
    <asp:Image ID="Image2" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/task/OK.gif" />
    &nbsp;
    作品上传成功．<asp:LinkButton ID="TaskAddPlanLinkButton2" runat="server" OnClick="TaskAddPlanLinkButton2_Click">返回当前任务</asp:LinkButton>
    &nbsp;<asp:LinkButton ID="TaskAddPlanLinkButton3" runat="server" OnClick="TaskAddPlanLinkButton3_Click">任务查找</asp:LinkButton>&nbsp;
    <asp:HyperLink ID="TaskAddPlanHyperLink2" runat="server" NavigateUrl="~/default.aspx">返回首页</asp:HyperLink><br />
    <br />
</asp:Panel><asp:Panel ID="ADDTaksPanel3" runat="server" Height="50px" HorizontalAlign="Center"
    Visible="False" Width="100%">
    <br />
    <br />
    <asp:Image ID="Image3" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/task/err.gif" />&nbsp;
    对不起，请先先登录才能发表作品．<asp:LinkButton ID="LinkButton2" runat="server" OnClick="TaskAddPlanLinkButton2_Click">返回当前任务</asp:LinkButton>
    &nbsp;<asp:LinkButton ID="LinkButton3" runat="server" OnClick="TaskAddPlanLinkButton3_Click">任务查找</asp:LinkButton>&nbsp;
    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/default.aspx">返回首页</asp:HyperLink><br />
    <br />
</asp:Panel>
