<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.note.index" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title id="ptitle" runat="server">我的记事本</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<script language="javascript" type="text/javascript" src="../../js/date.js"></script> 
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css"   id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
   <!--头部-->
   <%=this.GetHtmlShort()%> 
    <div id="divhead">
        <%=this.GetHtmlHead()%>
    </div>
    <div id="divbody">
        <div id="body_first">
            <div class="body_menu">
                <%=this.GetHtmlLeft()%>
            </div>
        </div>
        <div id="body_sec">
           <form id="form1" runat="server"> 
                <div id="body_mid">
                    <div class="body_frame">
                        <!--主题内容中-->
                        <div class="body_frame_otherinfo">
                            <div class="title">
                                <div class="l">
                                    <img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/note.gif" align="absmiddle" />
                                    <span class="bold shenlan font14 ocolor">记事本</span>
                                </div>
                                <div class="r">
                                    <a href="javascript:history.back();">返回上一级</a>                                   
                                </div>
                                <div class="c">
                                </div>
                            </div>
                            <div class="nav-menu">
                                <ul>
                                    <li class="current" id="MyNote" runat="server"><a href="../note">我的记事本</a></li>
                                    <li id="WriteNote" runat="server"><a href="../note/?r=write">写新事件</a></li>
                                </ul>
                            </div>
                        </div>
                        
                        
                        
                        <div class="body_sec_all">
                                <div class="msg-error" id="msg_error" runat="server" visible="false"></div>
                                <div class="msg-succ" id="msg_success" runat="server" visible="false"></div>
                                
                                <div class="content nl" id="showListNote" runat="server" visible="true">
                                    <div  class="recordnumber nl" runat="server" id="noNote1"> 没有事件<span class="pipe"> | </span><a href="/home/note/?r=write">创建新事件</a></div>
                                    <asp:Repeater ID="MyNoteList" runat="server">
                                        <HeaderTemplate>
                                                <div class="notet nl">
                                                    <div class="name nl">名称</div>
                                                    <div class="contents nl">详情</div>
                                                    <div class="txtime nl">提醒时间</div>
                                                    <div class="posttime nl">发布时间</div>
                                                    <div class="del nl">删除</div>
                                                </div>
                                                <div class="c"></div>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <div class="notetc nl c"> 
                                                <%# DataBinder.Eval(Container.DataItem, "d") %>
                                            </div>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                    <div id="DivPage" runat="server"  class="pagination"></div>
                                </div>
                                
                                <div class="pstr" id="ShowWriteNote" runat="server" visible="false">
                                   <div class="content-reshow">用来记电话号码、约会地点等；只有自己能看到</div>
                                
                                    <div class="content">
                                        <label class="f-label">标题</label>
                                       <asp:TextBox ID="title" CssClass="f-text" runat="server" Width="400"></asp:TextBox> 
                                    </div>
                                    
                                    <div class="content">
                                        <label class="f-label">内容</label>
                                        <asp:TextBox ID="Content"  CssClass="f-text" TextMode="MultiLine" MaxLength="1000" Width="400" Height="150" runat="server"></asp:TextBox>
                                    </div>
                                    
                                    <div class="content">
                                        <label class="f-label">提醒时间</label>
                                       <asp:TextBox ID="TXTime" CssClass="f-text"  onclick="SelectDate(this,'yyyy-MM-dd')" runat="server" Width="400"></asp:TextBox> 
                                    </div>
                                    
                                    <div class="content">
                                        <label class="f-label">&nbsp;</label>
                                        <asp:Button ID="Button1" runat="server" CssClass="f-button" Text="保存事件" OnClick="Button1_Click" />
                                        <span id="span_Result" runat="server"></span>
                                    </div>

                                </div>
                                <div class="spline"></div>
                        </div>
                        </div>
                        <!--底部-->
                        <div class="divbottom">
                            <%=this.GetHtmlFoot()%>
                        </div>                          
                </div>
            </form>
     </div>
</div>
</body>
</html>
<script type="text/javascript">
    function showNoteContent(cid)
    {
        var ct=document.getElementById("c_"+cid);
        if(ct.style.display=="none")
        {
            ct.style.display="";
        }
        else
        {
            ct.style.display="none";
        }
        
    } 
    
</script>
