<%@ page language="C#" autoeventwireup="true" inherits="shop_dp, 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>
            <style type="text/css">
                .shop_dp_tag
                {
                	padding-top:8px;
                }
                .shop_dp_tag_b
                {
                	height:27px;
                	overflow:hidden;
                	background:url(/shop/skin/public/shop_dp_tag_b.gif) repeat-x 0 26px;
                	padding-left:20px;
                }
                .shop_dp_tag_b li
                {
                	height:27px;
                	width:80px;
                	float:left;
                	margin-right:5px;
                	overflow:hidden;
                	background:url(/shop/skin/public/shop_dp_tag_b_li.gif) no-repeat 0 0;
                	font-size:14px;
                	text-align:center;
                	line-height:27px;
                }
                .shop_dp_tag_b li span
                {
                	display:block;
                	background:url(/shop/skin/public/shop_dp_tag_b_li_r.gif) no-repeat right 0;
                }
                .shop_dp_tag_b li span a
                {
                	color:#333;
                	display:block;
                }
                 .shop_dp_tag_b li span a:hover
                {
                	color:#333
                }
                .shop_dp_tag_b .on
                {                	
                	background:url(/shop/skin/public/shop_dp_tag_b_li_on.gif) no-repeat 0 0;
                }
                .shop_dp_tag_b .on span
                {
                	background:url(/shop/skin/public/shop_dp_tag_b_li_on_r.gif) no-repeat right 0;
                }
                .shop_dp_tag_b .on span a
                {
                	color:#333;
                }
                 .shop_dp_tag_b .on span a:hover
                {
                	color:#5c0101;
                }
                .shop_dp_tag_v
                {
                	border:solid 1px #fcd8a5;
                	border-top-width:0;
                	background:#fff;
                }
            </style>
            <div class="shop_dp_tag">
                <div class="shop_dp_tag_b">
                    <ul>
                        <li id="shop_dp_b_tag1" style="width:108px"><span><a href="dp.htm?id=<%=ShopID%>">全部评价(<%=WM.DoCount("shop_dp","where fid="+ShopID+" and enable="+WM.True).ToString() %>)</a></span></li>
                        <li id="shop_dp_b_tag2"><span><a href="dp.htm?id=<%=ShopID%>&type=good">好评(<%=WM.DoCount("shop_dp","where fid="+ShopID+" and enable="+WM.True+" and good=1").ToString() %>)</a></span></li>
                        <li id="shop_dp_b_tag3"><span><a href="dp.htm?id=<%=ShopID%>&type=medium">中评(<%=WM.DoCount("shop_dp", "where fid=" + ShopID + " and enable=" + WM.True + " and medium=1").ToString()%>)</a></span></li>
                        <li id="shop_dp_b_tag4"><span><a href="dp.htm?id=<%=ShopID%>&type=bad">差评(<%=WM.DoCount("shop_dp","where fid="+ShopID+" and enable="+WM.True+" and bad=1").ToString() %>)</a></span></li>
                    </ul>
                    <div class="clear"></div>
                </div>
                <script type="text/javascript">
                    function shop_dp_tag_b(){
                        var _url=location.href.toLowerCase();
                        if(_url.indexOf("type=good")!=-1)document.getElementById("shop_dp_b_tag2").className="on";
                        else if(_url.indexOf("type=medium")!=-1)document.getElementById("shop_dp_b_tag3").className="on";
                        else if(_url.indexOf("type=bad")!=-1)document.getElementById("shop_dp_b_tag4").className="on";
                        else document.getElementById("shop_dp_b_tag1").className="on";
                    }
                    shop_dp_tag_b();
                </script>
                <div class="shop_dp_tag_v">                
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <div style="padding:10px 80px 10px 50px;">
                                    <div class="shop_v1_c">                           
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <%=ZK.get_show_shop_dp(ShopID) %>
                                        </table>                           
                                    </div>
                                </div>
                            </td>
                            <td>
                                <div style="padding-right:100px">
                                    <div class="flow" style="width:1px; height:80px; background-color:#fcd8a5"></div>
                                </div>
                            </td>
                            <td>
                                <div style="padding-right:106px">
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr valign="bottom"><td>人气值：</td><td><div style="font-size:20px;line-height:26px;color:#f60"><asp:Literal ID="Literal1" runat="server"></asp:Literal></div></td><td width="20">&nbsp;</td><td>级别：</td><td valign="middle"><div style="padding-top:2px"><asp:Literal ID="Literal2" runat="server"></asp:Literal></div></td></tr>
                                    </table>
                                </div>
                            </td>
                            <td>
                                <div style="padding-right:56px">
                                    <div class="flow" style="width:1px; height:80px; background-color:#fcd8a5"></div>
                                </div>
                            </td>
                            <td>
                                <div><a href="#shop_dp"><img alt="" src="/shop/skin/public/dp_add.gif" /></a></div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div> 
                  
                <%@ 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: 0 13px; padding-left: 25px;margin-top: 4px;color:#999;">还没有点评，我来写一个吧！&nbsp;</div>
                </asp:Panel>
                <asp:Panel ID="Panel_List" runat="server">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <HeaderTemplate><div class="shop_v4_a"></HeaderTemplate>
                        <ItemTemplate>
                            <div class="item" style="border:solid 1px #fcd8a5; margin-top:10px; background-image:none" onmouseover="this.style.backgroundColor='#fdf4e6'" onmouseout="this.style.backgroundColor='#fff'">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td class="td1"><a href="/space/?uid=<%#Eval("authoruid") %>"><img alt="" src="<%#ZK.m_face(Eval("authoruid").ToString(),"50")%>" /><%#ZK.m_u(Eval("authoruid").ToString())%></a></td>
                                        <td>
                                            <div class="con1">服务<%#ZK.getStars(Eval("service").ToString()) %>&nbsp;&nbsp;品质<%#ZK.getStars(Eval("quality").ToString()) %>&nbsp;&nbsp;性价比<%#ZK.getStars(Eval("costperformance").ToString()) %>&nbsp;&nbsp;<img alt="" align="absmiddle" src="<%#get1(Eval("medium").ToString(),Eval("bad").ToString()) %>"></div>
                                            <div class="con2"><%#Eval("content") %></div>
                                            <div class="con3">[发布于<%#WMtime.FormatDateTime(Eval("time").ToString(),"")%>]</div>
                                            <div class="con4"><%#get2(Eval("contentre").ToString(), Eval("timere").ToString(), Eval("id").ToString())%></div>
                                        </td>
                                    </tr>
                                </table>
                                <div class="shop_dp_flower" style="padding-right:10px">
                                    <div><a href="javascript:void(0)" onclick="shop_dp_flower(<%#Eval("id") %>)" id="shop_dp_flower<%#Eval("id") %>">鲜花:<%#Eval("flowers")%></a></div>
                                </div>
                            </div>
                        </ItemTemplate>
                        <FooterTemplate></div></FooterTemplate>
                    </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="10" 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>
           <a name="shop_dp" id="shop_dp"></a>
            <div class="shop_c2 mt5">
                <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_v2_b">
                        <div id="star_rating_box" star_width="14" class="none">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="100">
                                        <p style="padding-left: 1px">服务</p>
                                        <ul class="star_rating">
                                            <li style="display: none;"><asp:TextBox ID="service" runat="server"></asp:TextBox></li>
                                            <li class="current_rating">default level</li>
                                            <li><a href="#" title="一星" class="one_star">1</a></li>
                                            <li><a href="#" title="二星" class="two_stars">2</a></li>
                                            <li><a href="#" title="三星" class="three_stars">3</a></li>
                                            <li><a href="#" title="四星" class="four_stars">4</a></li>
                                            <li><a href="#" title="五星" class="five_stars">5</a></li>
                                        </ul>
                                    </td>
                                    <td width="100">
                                        <p style="padding-left: 1px">品质</p>
                                        <ul class="star_rating">
                                            <li style="display: none;"><asp:TextBox ID="quality" runat="server"></asp:TextBox></li>
                                            <li class="current_rating">default level</li>
                                            <li><a href="#" title="一星" class="one_star">1</a></li>
                                            <li><a href="#" title="二星" class="two_stars">2</a></li>
                                            <li><a href="#" title="三星" class="three_stars">3</a></li>
                                            <li><a href="#" title="四星" class="four_stars">4</a></li>
                                            <li><a href="#" title="五星" class="five_stars">5</a></li>
                                        </ul>
                                    </td>
                                    <td width="100">
                                        <p style="padding-left: 1px">性价比</p>
                                        <ul class="star_rating">
                                            <li style="display: none;"><asp:TextBox ID="costperformance" runat="server"></asp:TextBox></li>
                                            <li class="current_rating">default level</li>
                                            <li><a href="#" title="一星" class="one_star">1</a></li>
                                            <li><a href="#" title="二星" class="two_stars">2</a></li>
                                            <li><a href="#" title="三星" class="three_stars">3</a></li>
                                            <li><a href="#" title="四星" class="four_stars">4</a></li>
                                            <li><a href="#" title="五星" class="five_stars">5</a></li>
                                        </ul>
                                    </td>
                                    <td width="200">
                                        <div style="padding-top:12px;">
                                            <asp:RadioButtonList ID="goodbad" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Value="good" Selected="True">好评</asp:ListItem>
                                                <asp:ListItem Value="medium">中评</asp:ListItem>
                                                <asp:ListItem Value="bad">差评</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>
                        </div>                        
                        <script type="text/javascript" src="/shop/skin/public/star_rating.js"></script>
                        <div style="padding: 4px 0 0 13px;"><asp:TextBox ID="shop_dp_TextBox1" runat="server" TextMode="MultiLine" Width="600" Height="100" CssClass="inp4" Style="margin-top:9px;line-height: 20px; padding-left: 6px; font-size: 14px; overflow-y: scroll;background:url(/skin/public/InpBg.gif) no-repeat 0 0;border-top: 1px solid #999;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;border-left: 1px solid #999;color:#ccc;" Text="请输入点评内容..." onfocus="if(this.value=='请输入点评内容...')this.value='';this.style.color='#333';document.getElementById('star_rating_box').className='';this.style.marginTop='0px';" onblur="if(this.value=='')this.value='请输入点评内容...'"></asp:TextBox></div>                                
                        <div style="padding: 8px 0 12px 13px">
                            <script type="text/javascript">
                                function check1(){
                                    if('<%= ZK.uid %>'==""){alert("请先登录再点评！");return false;}
                                    if('<%= ZK.uid %>'=='<%=ShopUID %>'){alert("您不能点评自己！");return false;}
                                    if(document.getElementById("shop_dp_TextBox1").value==""||document.getElementById("shop_dp_TextBox1").value=="请输入点评内容..."){alert("请输入点评内容...");return false;}
                                    if(document.getElementById("service").value==""){alert("请给本店服务打分！");return false;}
                                    if(document.getElementById("quality").value==""){alert("请给本店品质打分！");return false;}
                                    if(document.getElementById("costperformance").value==""){alert("请给本店性价比打分！");return false;}
                                }
                            </script>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:Button ID="Button1" runat="server" Text="确认提交" CssClass="but4" OnClick="Button1_OnClick" OnClientClick="return check1()" />
                                    </td>
                                    <td>
                                        <div style="padding-left: 10px" class="red"><asp:Literal ID="msg" runat="server"></asp:Literal></div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        
                    </div>
                </div>
            </div>
            </form>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
