<%@ Page Language="C#" AutoEventWireup="true" CodeFile="mp4manage.aspx.cs" Inherits="mp4manage" SmartNavigation="true" %>

<!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">
    <title>通过id指定查询,删除,更新等操作</title>
       <link href="mp4.css" rel="Stylesheet" type="text/css" />
       

</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="15%" style="background-color: #003399">
                    </td>
                    <td width="800">
                        <table width="800" align="center">
                            <tr>
                                <td height="100">
                                    <!--#include file="head.html"  -->
                                </td>
                            </tr>
                             <tr>
                                <td height="30">
                                <img src="images\dot1.gif" alt="" /><a href="index.aspx" target="_blank">MP4手机影视</a><img
                                                    src="images\dot1.gif" alt="" />
                                                    <font color="red"><b>管理员：(<%=Session["UserName"] %>)</b></font>|<a href="mp4manage.aspx">后台管理|</a><a href="mp4add.aspx">数据添加|</a><a href="yuanwang.aspx">愿望管理|</a><a href="userManage.aspx">用户管理|</a><a href="mp4LookAdd.aspx">影视添加|</a><a href="mp4LookManage.aspx">在线管理|</a></td>
                            </tr>
                            <tr>
                                <td height="20">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DataGrid ID="selectmp4" runat="server" Width="800px" CellPadding="0"
                                        DataKeyField="DownID" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="center"
                                        PageSize="20" AutoGenerateColumns="False" OnEditCommand="selectmp4_EditCommand"
                                        OnCancelCommand="selectmp4_CancelCommand" OnUpdateCommand="selectmp4_UpdateCommand"
                                        OnDeleteCommand="selectmp4_DeleteCommand" OnItemDataBound="selectmp4_ItemDataBound" AllowPaging="True" OnPageIndexChanged="selectmp4_PageIndexChanged">
                                        <HeaderStyle Height="22px" HorizontalAlign="Center" />
                                        <ItemStyle Height="22px" HorizontalAlign="Center" />
                                        <FooterStyle Height="22px" HorizontalAlign="Center" />
                                        <PagerStyle Height="22px" HorizontalAlign="Center" Mode="NumericPages" />
                                        
                                        <Columns> 
                                       
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;mp4编号&lt;/B&gt;">
                                                <ItemTemplate>
                                                  <asp:Label ID="DownID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"DownID") %>'></asp:Label> 
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;类型编号&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"TypeID") %>(<%# DataBinder.Eval(Container.DataItem,"TypeName") %>)
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;mp4标题&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"DownTitle") %>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="DownTitle" Width="100" Text='<%# DataBinder.Eval(Container.DataItem,"DownTitle") %>'
                                                        runat="server" />
                                                </EditItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;mp4格式&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"DownFormat") %>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="DownFormat" Width="40" Text='<%# DataBinder.Eval(Container.DataItem,"DownFormat") %>'
                                                        runat="server" />
                                                </EditItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;下载地址&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"DownUrl") %>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;点击数&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"Hits") %>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="Hits" Width="40" Text='<%# DataBinder.Eval(Container.DataItem,"Hits") %>'
                                                        runat="server" />
                                                </EditItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;更新时间&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"UpdateTime") %>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                            </asp:TemplateColumn>
                                           
                                            
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;mp4大小&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"DownSize") %>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                            </asp:TemplateColumn>
                                            
                                           
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;mp4说明&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"DownIntro") %>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="DownIntro" Width="200" Text='<%# DataBinder.Eval(Container.DataItem,"DownIntro") %>'
                                                        runat="server" />
                                                </EditItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="200px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;推荐星级&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"DownRecommend") %>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="DownRecommend" Width="50" Text='<%# DataBinder.Eval(Container.DataItem,"DownRecommend") %>'
                                                        runat="server" />
                                                </EditItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="50px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;信息修改&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <asp:LinkButton CommandName="Edit" Text="<B>编辑</B></font>" runat="server" ID="Linkbutton1"
                                                        ForeColor="Red" />
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <asp:LinkButton CommandName="Cancel" Text="<B>取消</B>" runat="server" ID="Linkbutton2"
                                                        ForeColor="Red" />
                                                    <asp:LinkButton CommandName="Update" Text="<B>确定</B>" runat="server" ID="Linkbutton3"
                                                        ForeColor="Red" />
                                                </EditItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;删除&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <asp:LinkButton CommandName="Delete" Text="<B>删除</B>" runat="server" ID="Linkbutton4"
                                                        ForeColor="Red" />
                                                    <%--<a href="delete.aspx?pageurl=admin_stuInfor_edit.aspx&type=stuDel&delID=<%# DataBinder.Eval(Container.DataItem, "学号") %>"   onFocus="if(this.blur)this.blur()" onclick='javascript: return confirm("您确定要删除该学生信息吗? ");'  title="删除此作业<font color=red>(管理员才具有的哦!)">删除</a> 
--%>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                            </asp:TemplateColumn>
                                        </Columns>
                                    </asp:DataGrid>
                                </td>
                            </tr>
                            <tr>
                                <td height="20">
                                </td>
                            </tr>
                            <tr>
                                <td height="100">
                                    <!-- #include file="Bottom.htm" -->
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="15%" style="background-color: #003399">
                    </td>
                </tr>
            </table>
    
    </div>
    </form>
</body>
</html>
 
