<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="upfiles_add_task2.aspx.vb" Inherits="work_plan_web_deploy.upfiles_add_task2" %>
<%@ Import namespace="work_plan_web_deploy"%>
<!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="site_css.css" type="text/css" rel="stylesheet">
</head>
<body>
    <form id="form1" runat="server">
            <iframe frameborder="0" scrolling="no" src="swfupload.aspx?how=add_task&t=<%=t%>&tempid=<%=tempid%>" width="100%" height="25px"></iframe>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" ForeColor="Black" GridLines="Horizontal" PageSize="15" 
        ShowHeader="False" Width="100%">
        <PagerSettings FirstPageText="&amp;lt;&amp;lt;首页" 
            LastPageText="尾页&amp;gt;&amp;gt;" Mode="NumericFirstLast" 
            NextPageText="下一页&amp;gt;" PreviousPageText="&amp;lt;上一页" />
        <RowStyle Height="20px" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="编号" ReadOnly="True">
            <ItemStyle ForeColor="White" Width="0px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="文件类型">
                <ItemTemplate>
                                                <%# getfileico(DataBinder.Eval(Container, "DataItem.id"), "temp")%>
                                            </ItemTemplate>
                <ItemStyle Width="50px" />
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="id" 
                DataNavigateUrlFormatString="view_file.aspx?t=temp&id={0}" DataTextField="fname" 
                HeaderText="文件名" Target="_blank" />
            <asp:TemplateField HeaderText="文件大小">
                <ItemTemplate>
                    <asp:Label ID="Label211" runat="server" 
                        Text='<%# filessizt(DataBinder.Eval(Container, "DataItem.fsize"),1)%>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="上传时间">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" 
                        Text='<%# c_date_c(DataBinder.Eval(Container, "DataItem.addtime"))%>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="id" 
                DataNavigateUrlFormatString="view_file.aspx?t=temp&id={0}" HeaderText="查看" 
                Target="_blank" Text="查看" />
            <asp:HyperLinkField DataNavigateUrlFields="id" 
                DataNavigateUrlFormatString="view_file.aspx?t=temp&id={0}&amp;dl=yes" HeaderText="下载" 
                Target="_blank" Text="下载" />
            <asp:CommandField HeaderText="删除" SelectText="删除" ShowSelectButton="True" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <PagerStyle BackColor="White" CssClass="pagerclass" ForeColor="Black" 
            HorizontalAlign="Right" />
        <EmptyDataTemplate>
            暂无相关附件！
        </EmptyDataTemplate>
        <SelectedRowStyle Font-Bold="False" Height="20px" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" 
            Height="20px" />
        <EditRowStyle Height="25px" />
        <AlternatingRowStyle Height="20px" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#242121" />
    </asp:GridView>
  
    </form>
</body>
</html>
