<%@ Page Language="C#" AutoEventWireup="true" CodeFile="yuanwang.aspx.cs" Inherits="yuanwang" 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>许愿管理</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="selectPromise" runat="server" Width="800px" CellPadding="0"
                                        DataKeyField="PromiseID" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="center"
                                        PageSize="20" AutoGenerateColumns="False" 
                                        AllowPaging="True" OnDeleteCommand="selectPromise_DeleteCommand" OnItemDataBound="selectPromise_ItemDataBound" OnPageIndexChanged="selectPromise_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;编号&lt;/B&gt;">
                                                <ItemTemplate>
                                                  <asp:Label ID="PromiseID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"PromiseID") %>'></asp:Label> 
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;内容&lt;/B&gt;">
                                                <ItemTemplate>
                                                   <%# db.SubStr(DataBinder.Eval(Container.DataItem,"Contents").ToString(),60)%>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="250px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;许愿人&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# DataBinder.Eval(Container.DataItem,"Author") %>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="&lt;B&gt;时间&lt;/B&gt;">
                                                <ItemTemplate>
                                                    <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "UpdateTime")).ToString("yyyy-MM-dd") %>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="80px" />
                                            </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" />
                                                </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>
 
