<%@ Page Title="" Language="C#" ValidateRequest="false" MasterPageFile="~/BackCenter/Home/Edit.master" AutoEventWireup="true" CodeFile="SetFile.aspx.cs" Inherits="BackCenter_Data_SetFile" %>

<asp:Content ID="head" ContentPlaceHolderID="HeadContextPlaceHolder" runat="server">

</asp:Content>

<asp:Content ID="main" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="r_top_line">
        <cite style="float: right">
            <img src="/App_Themes/BackCenter/images/right_tr.gif" /></cite></div>
    <div class="r_tit">
        <p class="home">
        位置：后台中心 >> 数据管理 >> 附件设置 >>  <asp:Label ID="lab_ClassName1" runat="server"></asp:Label>
        </p>
    </div>
    <div class="bd">
    <asp:GridView ID="GridView1" GridLines="None" runat="server" Width="94%"  DataKeyNames="Id" AutoGenerateColumns="false" CssClass="tab_style">
        <Columns>
         <asp:TemplateField HeaderText="附件" HeaderStyle-Width="60px">
            <ItemTemplate>
            <a href="<%# Eval("FilePath") %>" target="_blank">下载</a>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="FileName" HeaderText="文件名"  ItemStyle-HorizontalAlign="Center" /> 
            <asp:BoundField DataField="OrderNum" HeaderText="权重"  ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="40px"  /> 
            <asp:TemplateField HeaderText="删除" HeaderStyle-Width="40px">
            <ItemTemplate>
            <asp:LinkButton ID="btnDelete" CommandArgument='<%# Eval("Id") %>'  runat="server" OnCommand="btnDelete_Command" Text="<div class=&quot;bluelk&quot; id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定要删除该记录吗？')&quot;>[删除]</div>"></asp:LinkButton>
            </ItemTemplate>
            </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂无相关数据!
            </EmptyDataTemplate>
    </asp:GridView>
    </div>
    <div class="bd">
        <table width="94%" border="0" cellpadding="0" cellspacing="0" class="tab_style fl">
            <tr>
                <td class="n1">
                    附件名称：
                </td>
                <td class="n2">
                    <asp:TextBox ID="txt_FileName" runat="server" MaxLength="50" CssClass="required"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="n1">
                    附件路径：
                </td>
                <td class="n2">
                    <asp:FileUpload ID="fu_FilePath" runat="server"  CssClass="required"/>
                </td>
            </tr>
            <tr>
                <td class="n1">
                    权重：
                </td>
                <td class="n2">
                    <asp:TextBox ID="txt_OrderNum" runat="server" MaxLength="50" CssClass="required number"></asp:TextBox>
                </td>
            </tr>
        </table>
        <div class="menu">
            <asp:Button ID="btnSave" CssClass="menu_b" runat="server" Text="保存" OnClick="btnSave_Click">
            </asp:Button>
            <input id="inputBack" type="button" class="menu_o" value="返回"  onclick="window.location.href='DataIndex.aspx?PageIndex=true&Conditions=true&ClassId=<%=Request["ClassId"] %>'"/>

        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>

