<%@ control language="C#" autoeventwireup="true" inherits="Controls_Message, Huibo.Net" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<div class="Navigation">
    您当前的位置：<span><a href="index.aspx" alt="" title="">首页</a></span><span>&gt;&gt;</span><span
        class="now"><asp:Label ID="SortName" runat="server" Text="客户留言"></asp:Label></span>
</div>
<div class="product">
    <div class="producttitle">
        <asp:Label ID="SortsName" runat="server" Text="客户留言"></asp:Label><span style="padding-left: 650px;"><asp:Image
            ID="MessageImage" ImageUrl="images/more.png" runat="server" /></span></div>
    <div class="p3">
        <div class="baohan">
            <div class="mes_anniu">
                <a href="javascript:Open('Add'); ">发表留言</a></div>
            <div class="mes_anniu" style="margin-left: 35px;">
                <a href="javascript:Open('List');">查看留言</a></div>
        </div>
        <div class="clear">
        </div>
        <div id="AddMessage" class="division" style="display: none;">
            <div class="text_1">
                <div class="text_1a">
                    <div class="text_1aleft">
                        *您的姓名：</div>
                    <div class="text_1aright">
                        <asp:TextBox ID="name" class="inputstyle" runat="server"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name"
                            Display="Dynamic" ErrorMessage="姓名为空！"></asp:RequiredFieldValidator></div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                        性别：</div>
                    <div class="text_1aright">
                        <asp:RadioButton ID="Sex1" Checked="true" GroupName="sex" Text="男" runat="server" />
                        <asp:RadioButton ID="Sex2" GroupName="sex" Text="女" runat="server" />
                        <asp:RadioButton ID="Sex3" GroupName="sex" Text="仅管理员可见" runat="server" />
                    </div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                        <em>*</em>电子邮箱：</div>
                    <div class="text_1aright">
                        <asp:TextBox ID="email" class="inputstyle" runat="server"></asp:TextBox>
                        &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                            ControlToValidate="email" Display="Dynamic" ErrorMessage="邮箱地址不正确！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="email"
                            Display="Dynamic" ErrorMessage="邮箱地址不能为空！"></asp:RequiredFieldValidator></div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                        腾迅 QQ：</div>
                    <div class="text_1aright">
                        <asp:TextBox ID="qq" class="inputstyle" runat="server"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="qq"
                            Display="Dynamic" ErrorMessage="QQ不能不空！"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="QQ号码不正确!"
                            ControlToValidate="qq" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator></div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                        个人主页：</div>
                    <div class="text_1aright">
                        <asp:TextBox ID="web" class="inputstyle" runat="server"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="web"
                            Display="Dynamic" ErrorMessage="个人主页不能为空！"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="web"
                            ErrorMessage="个人地址不正确!格式如：http://www.7p.com.cn" ValidationExpression="^http://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$"></asp:RegularExpressionValidator></div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                        <em>*</em>来自哪里：</div>
                    <div class="text_1aright">
                        <asp:TextBox ID="city" class="inputstyle" runat="server"></asp:TextBox>
                        &nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="city"
                            Display="Dynamic" ErrorMessage="地址不能为空！"></asp:RequiredFieldValidator></div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                        类型选择：</div>
                    <div class="text_1aright">
                        <asp:RadioButton ID="Title1" Text="留言" Checked="true" GroupName="Title" runat="server" />
                        <asp:RadioButton ID="Title2" Text="建议" GroupName="Title" runat="server" />
                        <asp:RadioButton ID="Title3" Text="报错" GroupName="Title" runat="server" />
                        <asp:RadioButton ID="Title4" Text="连接" GroupName="Title" runat="server" />
                        <asp:RadioButton ID="Title5" Text="其它" GroupName="Title" runat="server" />
                    </div>
                </div>
                <div class="text_1b">
                    <div class="text_1bleft">
                        <em>*</em>留言内容：</div>
                    <div class="text_1bright">
                        <textarea class="inputstyle" id="word" name="word" runat="server" cols="35" rows="5"></textarea>&nbsp;
                        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="word"
                            Display="Dynamic" ErrorMessage="留言内容不能为空！"></asp:RequiredFieldValidator></div>
                    <div style="clear: both">
                    </div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                    </div>
                    <div class="text_1aright">
                        留言只有管理员审核后才可以看到。</div>
                </div>
                <div class="text_1a">
                    <div class="text_1aleft">
                    </div>
                    <div class="text_1aright">
                        <asp:Button ID="AddMessage" runat="server" Text="保存" OnClick="AddMessage_Click" /></div>
                </div>
            </div>
        </div>
        <div id="Message" style="display: block;">
            <div style="height: auto">
                <asp:Repeater ID="MessageList" runat="server" OnItemDataBound="MessageList_ItemDataBound">
                    <ItemTemplate>
                        <div class="dis_list">
                            <div class="book_left">
                                <div class="book_text">
                                    <%# DataBinder.Eval(Container.DataItem,"name") %>
                                </div>
                                <div class="book_pic">
                                    <asp:Image ID="HeadImage" ImageUrl='<%# DataBinder.Eval(Container.DataItem,"sex") %>'
                                        runat="server" /></div>
                            </div>
                            <div class="book_right">
                                <div>
                                    <asp:Label ID="Title" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"name") %>'></asp:Label>
                                </div>
                                <div>
                                    <span>
                                        <asp:Image ID="Ask" ImageUrl="images/ask.gif" AlternateText="网友留言" runat="server" />：<%# DataBinder.Eval(Container.DataItem,"word") %></span></div>
                                <div>
                                    <span>
                                        <asp:Image ID="Answer" ImageUrl="images/answer.gif" AlternateText="店主回复" runat="server" />：<%# DataBinder.Eval(Container.DataItem, "reply")%></span></div>
                                <div>
                                    <%# DataBinder.Eval(Container.DataItem,"date") %>
                                </div>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
                <div style="clear: both">
                </div>
            </div>
            <div class="badoo">
                <webdiyer:AspNetPager ID="Pager" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" PrevPageText="上一页" OnPageChanged="Pager_PageChanged" PageSize="10">
                </webdiyer:AspNetPager>
            </div>
        </div>
        <!--book_con结束-->
        <!--右边AreaR结束-->
    </div>
</div>
<!--主体部分结束-->
