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

<!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="../../styles/1/style.css" rel="stylesheet" type="text/css" />
</head>
<body class="bodycolor">
    <form id="form1" runat="server">
    <div>
        <table align="center" width="100%">
        <tr height="30">
					<td width="3%" background="../Images/topbg.jpg" align=left><IMG height="16" src="~/Images/icon/right.GIF" id="IMG1" runat="server"><strong>日程安排</strong></td>
		
				</tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" Width="798px" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" AutoGenerateColumns="False" DataKeyNames="CalendarID" OnRowDataBound="GridView1_RowDataBound2" OnRowDeleting="GridView1_RowDeleting2" OnRowEditing="GridView1_RowEditing1"  >
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <RowStyle ForeColor="#000066" Height="10px" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="AddTime" HeaderText="日期" />
                            <asp:BoundField DataField="Motif" HeaderText="摘要" />
                            <asp:TemplateField HeaderText="查看" ShowHeader="False">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        Text="更新"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                   <a href="See.aspx?id=<%#Eval("CalendarID") %>"  target="main">
                                   查看
                                   </a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                            <asp:BoundField DataField="CalendarID" HeaderText="CalendarID" Visible="False" />
                        </Columns>
                    </asp:GridView>
                
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
