<%@ Page Title="" Language="C#" MasterPageFile="~/WuJin.Master" AutoEventWireup="true"
    CodeBehind="message.aspx.cs" Inherits="CuzcmsCcwl.message" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="Javascript">
        function CheckClick() {

            if (document.getElementById("ctl00$ContentPlaceHolder1$txt1").value == "") {
                alert('请输入昵称');
                return false;
            }
            if (document.getElementById("ctl00$ContentPlaceHolder1$txt2").value == "") {
                alert('请输入邮箱');
                return false;
            }
            if (document.getElementById("ctl00$ContentPlaceHolder1$txt3").value == "") {
                alert('请输入电话');
                return false;
            }
            if (document.getElementById("ctl00$ContentPlaceHolder1$TextBox1").value == "") {
                alert('请输入留言内容');
                return false;
            }
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="right">
        <div class="title1">
            <span><a href="../">网站首页：</a> >>
                <asp:Literal ID="Literal1" runat="server"></asp:Literal></span></div>
        <div class="product">
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" id="table">
                <tr height="45">
                    <td align="right">
                        昵称：
                    </td>
                    <td>
                        <input type="text" name="name" class="text" id="txt1" runat="server" />
                    </td>
                </tr>
                <tr height="45">
                    <td align="right">
                        邮箱：
                    </td>
                    <td>
                        <input type="text" name="name" class="text" id="txt2" runat="server" />
                    </td>
                </tr>
                <tr height="45">
                    <td align="right">
                        电话：
                    </td>
                    <td>
                        <input type="text" name="name" class="text" id="txt3" runat="server" />
                    </td>
                </tr>
                <tr height="45">
                    <td align="right">
                        内容：
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Height="144px" Width="426px"></asp:TextBox>
                    </td>
                </tr>
                <tr height="45">
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="提 交" CssClass="btn" OnClick="Button1_Click"
                            OnClientClick="return CheckClick()" />
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <dl class="online">
                        <dt><strong>游客：<%# Eval("Cms_Title") %></strong>[<%# ((DateTime)Eval("Cms_Time")).Date.ToString("yyyy-MM-dd") %>]</dt>
                        <dd>
                            <%# Eval("Cms_Cot")%>
                        </dd>
                        <dd>
                            <strong>回复：</strong><%# Eval("Cms_Liu3") %></dd>
                    </dl>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class="page span-18">
            <webdiyer:AspNetPager ID="Aspage_All" CssClass="paginator" runat="server" PageSize="8"
                AlwaysShow="True" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" UrlPaging="false"
                OnPageChanging="Aspage_PageChanging" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                PrevPageText="上一页" TextAfterPageIndexBox="页" TextBeforePageIndexBox="跳到">
            </webdiyer:AspNetPager>
        </div>
    </div>
</asp:Content>
