<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.gbook.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>
<title runat="server" id="ptitle">留言本</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.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">
            <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/ico/gbook.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor" id="bName" runat="server">留言本</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                    <li class="current"><a href="index.aspx">我的留言</a></li>
                                 </ul>
                            </div>        
                     </div>
                 <div class="body_sec_all">
                        <div class="msg-error" id="sERR" runat="server" visible="false"></div>
                        <div class="msg-succ" id="sSucc" runat="server" visible="false"></div>
                        <div class="pstr" runat="server" id="formDiv">
                              <form id="form1" runat="server">
                              
                                <div class="content">
                                   <asp:TextBox ID="TXTContent" runat="server" MaxLength="200" Height="80" CssClass="f-text" Width="500"></asp:TextBox>
                                 </div> 
                                 
                                 <div class="content">
                                    <a href="javascript:void(0);"  id="face" onclick="showface(this.id,'TXTContent',0);"><img src="../../template/images/face/c.gif" title="选择表情"  align="absmiddle" /></a> 
                                    <asp:Button ID="Button1" runat="server" CssClass="f-button" Text=" 留言 " OnClick="Button1_Click" /> &nbsp; 
                                     <asp:CheckBox ID="isPub" runat="server" Text="公开" Checked="true" /> &nbsp;  &nbsp; <span class="recordnumber"><asp:Literal runat="server" ID="LtrNum"></asp:Literal></span>
                                 </div> 
                                 
                              </form>
                        </div>
                            
                             <asp:Repeater ID="GbookLists" runat="server">
                                    <HeaderTemplate>
                                        <div class="gbooklist">
                                            <ul>
                                     </HeaderTemplate>
                                        <ItemTemplate>
                                            <%# DataBinder.Eval(Container.DataItem, "Gbook") %>
                                        </ItemTemplate>
                                    <FooterTemplate>
                                          </ul> 
                                       </div> 
                                    </FooterTemplate>
                            </asp:Repeater>
                             <div class="pagination" runat="server" id="DivPage"></div>
                 </div>
                 </div>
               <!--底部-->
                 <div class="divbottom">
                  <%=this.GetHtmlFoot()%>
                  </div>
                 
                 </div>
                 </div>
                 </div>
</body>
</html>
<script>
function checkdata()
{
    if(document.getElementById("TXTContent").value=="")
    {
        alert("填写留言内容."); 
        document.getElementById("TXTContent").focus();
        return false;
    }
}
</script>