<%@ page language="C#" autoeventwireup="true" inherits="shop_order, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="shop_head" TagPrefix="UC" Src="~/shop/head.ascx" %>
<!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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>在线预约<%=ShopName %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <asp:Literal ID="HidePublicHead" runat="server"></asp:Literal>
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" /> 
        <div class="box pt5">
            <form id="form1" runat="server" autocomplete="off">
            <UC:shop_head ID="shop_head1" runat="server" />
            <asp:Literal ID="LiteralHeadBg" runat="server"></asp:Literal>
            <asp:Panel ID="Panel1" runat="server" CssClass="shop_c2 mt5" Visible="false">
                <div class="shop_c2">
                    <div class="shop_b2">
                        <div class="fl"></div>
                        <div class="con">查看留言</div>
                        <div class="fr"></div>
                        <div class="clear"></div>
                    </div>
                    <div class="shop_v2">
                        <div class="shop_order">
                            <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                            <asp:Panel ID="Panel_Nodata" runat="server" Visible="false"><div class="tip_nodata" id="tip_nodata" style="background-position: 12px 13px">No data!&nbsp;(暂无数据)</div></asp:Panel>
                            <asp:Panel ID="Panel_List" runat="server">
                                <asp:Repeater ID="Repeater1" runat="server">
                                    <ItemTemplate>
                                        <div class="item">
                                            <div class="con1">
                                                <table border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td><div style="color: #666"><%#WMcompare.IsEqual(Eval("authoruid").ToString(), "0", "游客", "<a href=\"/space/?uid=" + Eval("authoruid").ToString() + "\" target=\"_blank\">" + ZK.m_u(Eval("authoruid").ToString()) + "</a>")%></div></td>
                                                        <td><%#WMtime.FormatDateTime(Eval("time").ToString(),"")%></td>
                                                        <td>(<%#Eval("ip") %>)<%#get1(Eval("id") .ToString())%></td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div class="con2"><%#Eval("content") %></div>
                                            <div class="con3">电话：<%#Eval("phone") %>&nbsp;&nbsp;&nbsp;&nbsp;邮箱：<%#Eval("email") %>&nbsp;&nbsp;&nbsp;&nbsp;地址：<%#Eval("address") %>&nbsp;&nbsp;&nbsp;&nbsp;QQ：<%#Eval("qq") %></div>
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </asp:Panel>
                            <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                                <div id="DataPager">
                                    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                                        <tr>
                                            <td>
                                                <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                                    UrlPagingTarget="_self" PageSize="20" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                                    NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                                    CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                                    SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                                    NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                                </DataPager:AspNetPager>
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="clear" style="height: 8px"></div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <div class="hto mt5">
                <div class="shop_left">
                    <div class="shop_c1">
                        <div class="shop_b1">
                            <div class="fl"></div>
                            <div class="con">基本信息</div>
                            <div class="fr"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="shop_v1">
                            <div class="shop_v1_a">
                                <div class="con1"><asp:Literal ID="Literal1" runat="server"></asp:Literal></div>
                                <div class="con2">
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="td1">口碑值：</td>
                                            <td><span><asp:Literal ID="Literal2" runat="server"></asp:Literal></span></td>
                                        </tr>
                                        <tr>
                                            <td class="td1" style="line-height: 20px;">级&nbsp;&nbsp;&nbsp;别：</td>
                                            <td style="line-height: 20px;">&nbsp;<asp:Literal ID="Literal3" runat="server"></asp:Literal></td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="con3">
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="td1">店铺地址：</td>
                                            <td>
                                                <asp:Literal ID="Literal4" runat="server"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td1">交通线路：</td>
                                            <td>
                                                <asp:Literal ID="Literal5" runat="server"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td1">营业时间：</td>
                                            <td>
                                                <div style="line-height: 22px">
                                                    <asp:Literal ID="Literal6" runat="server"></asp:Literal></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td1">在线联系：</td>
                                            <td>
                                                <div style="line-height: 22px"><asp:Literal ID="Literal7" runat="server"></asp:Literal></div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="con4"><strong><span>电话：</span><asp:Literal ID="Literal8" runat="server"></asp:Literal></strong></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="shop_right">
                    <div class="shop_c2">
                        <div class="shop_b2">
                            <div class="fl"></div>
                            <div class="con">留言预约</div>
                            <div class="fr"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="shop_v2">
                            <div class="shop_do1">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="td1">您的姓名：
                                            <script type="text/javascript">
                                                function self_check1(){
                                                    if(document.getElementById("contact").value==""){alert("您的姓名不能为空！");return false;}
                                                    if(document.getElementById("phone").value==""){alert("联系电话不能为空！");return false;}
                                                    if(document.getElementById("content").value==""){alert("留言内容不能为空！");return false;}
                                                }
                                            </script>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="contact" runat="server" Width="200" MaxLength="10" CssClass="inp4" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td1">联系地址：</td>
                                        <td>
                                            <asp:TextBox ID="address" runat="server" Width="350" MaxLength="100" CssClass="inp4" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td1">联系电话：</td>
                                        <td>
                                            <asp:TextBox ID="phone" runat="server" Width="200" MaxLength="30" CssClass="inp4" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td1">联系邮箱：</td>
                                        <td>
                                            <asp:TextBox ID="email" runat="server" Width="350" MaxLength="100" CssClass="inp4" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td1">联系QQ：</td>
                                        <td>
                                            <asp:TextBox ID="qq" runat="server" Width="200" MaxLength="20" CssClass="inp4" ></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td1">留言内容：</td>
                                        <td>
                                            <asp:TextBox ID="content" runat="server" Width="500" TextMode="MultiLine" Height="150" CssClass="inp4" style="overflow-y:scroll;"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td1">&nbsp;</td>
                                        <td>
                                            <asp:Button ID="ButtonSubmit" runat="server" Text="提交留言" CssClass="but4" OnClick="ButtonSubmit_Click" OnClientClick="return self_check1()" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            </form>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
