<%@ page language="C#" autoeventwireup="true" inherits="Remind_RemindInfo, App_Web_55gtsuzb" theme="Themes" stylesheettheme="Themes" %>

<%@ Register TagPrefix="ECalendar" Namespace="ExtendedControls" Assembly="EventCalendar" %>
<!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>

 <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>

    <script type="text/javascript" src="../Js/jquery.js"></script>

    <script type="text/javascript" src="../Js/InterfaceContrl.js"></script>

    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

    <script type="text/javascript" src="../Js/WebValidator.js"></script>

    <style type="text/css">
        #LayerAll
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #CCCCCC;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 3;
            display: none;
        }
        #LayerAllone
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #CCCCCC;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 1;
            display: none;
        }
        #right
        {
            position: absolute;
            width: 60%;
            height: 30%;
            z-index: 4;
            left: 25%;
            top: 25%;
        }
        #divt
        {
            position: absolute;
            width: 80%;
            height: 30%;
            z-index: 2;
            left: 10%;
            top: 16%;
        }
        .t1
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t2
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t1 .m
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            line-height: 18px;
            font-size: 12px;
            font-weight: normal;
        }
        .t2
        {
            padding-bottom: 0px;
            line-height: 18px;
            border-right-width: 0px;
            padding-left: 0px;
            padding-right: 0px;
            margin-bottom: 2px;
            border-top-width: 0px;
            border-bottom-width: 0px;
            color: #5b9400;
            border-left-width: 0px;
            padding-top: 0px;
        }
        .t3
        {
            z-index: 6553;
            position: relative;
            line-height: 30px;
            padding-left: 55px;
            background: url(http://img.baidu.com/hi/img/index/iconhi.gif) no-repeat;
            height: 35px;
            font-size: 14px;
            font-weight: bold;
        }
        .rcb
        {
            height: 5px;
            clear: both;
        }
        .rct .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .l
        {
            float: left;
            left: -1px;
        }
        .rcb .l
        {
            float: left;
            left: -1px;
        }
        .rct .r
        {
            float: right;
            right: -1px;
        }
        .rcb .r
        {
            float: right;
            right: -1px;
        }
        .rct .l
        {
            top: -1px;
        }
        .rct .r
        {
            top: -1px;
        }
        .rcb .l
        {
            top: 1px;
        }
        .rcb .r
        {
            top: 1px;
        }
        .b2
        {
            border-bottom: #ccc 1px solid;
            border-left: #ccc 1px solid;
            margin-bottom: 10px;
            background: #fff;
            border-top: #ccc 1px solid;
            border-right: #ccc 1px solid;
        }
        .b2 .cnt
        {
            padding: 10px;
            width: 596px;
        }
        .tl1
        {
            background-position: left top;
        }
        .tr1
        {
            background-position: right top;
        }
        .bl1
        {
            background-position: left bottom;
        }
        .br1
        {
            background-position: right bottom;
        }
        .lginfo
        {
            line-height: 22px;
            clear: both;
        }
        .fan
        {
            margin-top: 10px;
        }
        .fan TD
        {
            padding-bottom: 2px;
            padding-left: 8px;
            padding-right: 8px;
            color: #666;
            padding-top: 2px;
        }
        .f14
        {
            line-height: 24px;
            font-size: 14px;
        }
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="LayerAll" runat="server">
    </div>
    <div id="LayerAllone" runat="server">
    </div>
    <div id="right" algin="center" style="display: none" runat="server">
        <div id="m_onlineuser" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14" style="width: 98%">
                <div style="color: #666;" align="center">
                     <table width="100%" cellspacing="0" cellpadding="6" border="0"  style="background-color:#DEEFFA;"><%--#deeffa--%>
                        <tr>
                            <td style="width: 30%" align="right">
                                备忘类型：
                            </td>
                            <td style="width: 70%" align="left">
                                <asp:RadioButton ID="rbtnTimePoint1" runat="server" GroupName="r1" Text="时间点" AutoPostBack="True"
                                    Checked="True" OnCheckedChanged="rbtnTimePoint1_CheckedChanged" />
                                <asp:RadioButton ID="rbtnTimeSpan1" runat="server" GroupName="r1" Text="时间段" AutoPostBack="True"
                                    OnCheckedChanged="rbtnTimeSpan1_CheckedChanged" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                备忘时间：
                            </td>
                            <td align="left">
                            <input id="txtTP1" name="txtTP1" style="width:100px;" class="Wdate"  runat="server" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"/>
                                
                                <div id="divTime" runat="server" style="display: none">
                                <input id="txtTSS1" name="txtTSS1" style="width:100px;" class="Wdate"  runat="server" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"/>
                                  -
                                   <input id="txtTSE1" name="txtTSE1" style="width:100px;" class="Wdate"  runat="server" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"/>
                                    时间：
                                    <asp:DropDownList ID="ddlh" runat="server">
                                    </asp:DropDownList>
                                    时
                                    <asp:DropDownList ID="ddlm" runat="server">
                                    </asp:DropDownList>
                                    分
                                </div>
                            </td>
                        </tr>
                        <%-- <tr>
                                                                <td>
                                                                    提前提醒时间：
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtTime" runat="server" ></asp:TextBox>分钟
                                                                </td>
                                                            </tr>--%>
                        <tr>
                            <td align="right">
                                是否持续提醒：
                            </td>
                            <td align="left">
                                <asp:RadioButtonList ID="rbtlist" runat="server" AutoPostBack="True" RepeatColumns="2">
                                    <asp:ListItem Value="0" Selected>否</asp:ListItem>
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                标题：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTitle1" runat="server" Width="267px" MaxLength="20"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                内容：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtContent1" runat="server" Height="126px" TextMode="MultiLine"
                                    Width="271px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                            </td>
                            <td align="left">
                                <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保 存" />
                                <asp:Button ID="btnCloseDiv" runat="server" OnClick="btnCloseDiv_Click" Text="关 闭" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
        <!--CMSLOADOK--->
    </div>
    <%-----------------------------------导航_start--------------------------------%>
    <div class="right_postion_bg">
        <span class="s_potion_font"><img src="../Images/homen.gif" class="pic_style" />  当前的位置：个人管理 > 日程管理 </span>
    </div>
    <%-----------------------------------导航_end--------------------------------%>
    <div style="width:100%">
        <ECalendar:EventCalendar Width="100%" ID="CalendarRemind" runat="server"  FirstDayOfWeek="Monday" NextMonthText="下一月 &gt;" PrevMonthText="&lt; 上一月"
            SelectionMode="Day" ShowGridLines="True" ShowDescriptionAsToolTip="True" EventDateColumnName=""
            EventDescriptionColumnName="" EventHeaderColumnName="" OnDayRender="CalendarRemind_DayRender"
            DayNameFormat="Shortest" OnSelectionChanged="CalendarRemind_SelectionChanged" 
            CssClass="calendar_header" SelectedDayStyle-CssClass="select_day" SelectorStyle-CssClass="selector" 
            TodayDayStyle-CssClass="today_style"  OtherMonthDayStyle-CssClass="other_month" NextPrevStyle-CssClass="next_style" DayHeaderStyle-CssClass="day_header" TitleStyle-CssClass="title_style">
            <SelectedDayStyle />
            <SelectorStyle />
            <TodayDayStyle />
            <OtherMonthDayStyle />
            <NextPrevStyle />
            <DayHeaderStyle />
            <TitleStyle/>
        </ECalendar:EventCalendar>
    </div>
    <div runat="server" id="divt" style="display: none" algin="center">
        <div id="Div2" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14" style="width: 98%">
                <div style="color: #666" align="center">
                    <table width="100%" align="center"  style="background-color:#deeffa;"><%--#deeffa--%>
                        <tr>
                            <td align="right">
                                <asp:Button ID="btnTian" runat="server" Text=" 添  加 " OnClick="btnTian_Click" />
                                <asp:Button ID="btng" OnClick="btng_Click" runat="server" Text="关  闭" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:GridView ID="dlist" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    DataKeyNames="id" OnRowCommand="dlist_RowCommand" OnRowDataBound="dlist_RowDataBound">
                                    <PagerSettings Visible="False" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="ID" HeaderStyle-Width="25%" Visible="false">
                                            <ItemTemplate>
                                                <asp:Label ID="lblID" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="类型" HeaderStyle-Width="25%">
                                            <ItemTemplate>
                                                <asp:Label ID="lblType" runat="server" Text='<%# Eval("type") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="时间" HeaderStyle-Width="25%">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTime" runat="server" Text='<%# Eval("time") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="标题" HeaderStyle-Width="25%">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTm" runat="server" Text='<%# Eval("tm") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="操作">
                                            <ItemTemplate>

                                                      <asp:LinkButton ID="ibtnEdit" CommandName="ed" runat="server"> 编 辑 </asp:LinkButton>
                                                      
                                                        <asp:LinkButton ID="ibtnDelte" CommandName="de" runat="server"> 删 除 </asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <div class="nodata">
                                            <img src="../images/waring_pic01.gif" />
                                            <asp:Label ID="lbltext" runat="server" Text="没有你要查询的数据！" HorizontalAlign="Center"
                                                Height="30px"></asp:Label>
                                        </div>
                                    </EmptyDataTemplate>
                                   
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
    </div>
    </form>

    <script type="text/javascript">
        $(document).ready(function() {
            Validator();
        });
        function Validator() {
            $('#<%= btnSave.ClientID %>').bind('click', function() {
                ValidatorEmpty($("#<%=txtTitle1.ClientID %>"), "备忘标题");
                ValidatorEmpty($("#<%=txtContent1.ClientID %>"), "详细内容");


                return GetValidatorMessage();
            });

        }
       
    </script>

</body>
</html>
