<%@ page language="C#" autoeventwireup="true" inherits="ShopList, App_Web_flu4wwrf" enableviewstate="false" enableEventValidation="false" %>

<%@ Register src="~/inc/PageHead.ascx" tagname="PageHead" tagprefix="uc1" %>
<%@ Register src="~/inc/PageSearchBox.ascx" tagname="PageSearchBox" tagprefix="uc2" %>
<%@ Register src="~/inc/PageFooter.ascx" tagname="PageFooter" tagprefix="uc3" %>
<%@ Register src="~/inc/NewsRight.ascx" tagname="NewsRight" tagprefix="uc4" %>
<%@ Register src="~/inc/ParamPageNavigator.ascx" tagname="ParamPageNavigator" tagprefix="uc5" %>
<%@ Register src="~/inc/ShopListLeft.ascx" tagname="ShopListLeft" tagprefix="uc6" %>

<%@ Register src="inc/ShopScrolling.ascx" tagname="ShopScrolling" tagprefix="uc7" %>

<!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 id="Head1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    
    <title><%= Request.QueryString["city"] != null ? Request.QueryString["city"] : "福州" %><%= CategoryName %>_<%= Utils.GetShortText(Keywords,100).Replace("，","_").Replace(" ","_") %>_<%= ConfigurationManager.AppSettings["app_name"] %>_<%= ConfigurationManager.AppSettings["app_domain"] %></title>
    <meta name="description" content="<%= Description %>" />
    <meta name="keywords" content="<%= CategoryName %> <%= Keywords %>" />
    
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/css/front.css" rel="stylesheet" type="text/css" />
    <style type="text/css"></style>
    <script type="text/javascript" src="/Js/jquery.js"></script>
    <script type="text/javascript" src="/Js/_effect.js"></script>
    <script type="text/javascript" src="/js/jcarousellite.js"></script>
    <script type="text/javascript" src="/Js/utils.js"></script>
    <script type="text/javascript">
        $(function() {
            $(".stor .star span").each(function() {
                //alert(parseFloat($(this).attr("title")) / 5 * 68);
                $(this).css("width", parseFloat($(this).attr("title")) / 5 * 63);
                //$(this).css("width", 12);
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="wrapper">
            <uc1:PageHead ID="PageHead1" runat="server" />
            
            <div class="body">
                <!-- 主要内容开始 -->
                <uc2:PageSearchBox ID="PageSearchBox1" runat="server" />
                
                <div class="shoplist">
                    <uc7:ShopScrolling ID="ShopScrolling1" runat="server" />
                    <div class="clear"></div>
                    
                    <div class="menu">
                        <uc6:ShopListLeft ID="ShopListLeft1" runat="server" />
                    </div>
                    <div class="list">
                        <div class="top_tit"><%= CategoryName %> <span><%= Request.QueryString["city"] != null ? Request.QueryString["city"] + "地区的商家" : "" %></span></div>
                        <div class="page">图例说明： <img src="/images/vip.gif" align="absmiddle" />= 认证会员商家 <img src="/images/vip_ico_1.gif" align="absmiddle"/>= 有优惠券  <img src="/images/vip_ico_2.gif" align="absmiddle"/>= 商家相册 <img src="/images/vip_ico_3.gif" align="absmiddle"/> = 在线咨询 </div>
                        
                        <%if(Request.QueryString["keywords"]!=null){ %>
                        <div class="clear searchresult">
                            以下是 “<span><%= Request.QueryString["keywords"]%></span>” 搜索结果
                        </div>
                        <%} %>
                        
                        <div class="clear total">
                            <a href="/shop/<%= Request.QueryString["p"] %>/">全部(<%= RecordCount %>)</a>
                            <asp:Repeater ID="rptTotalCitys" runat="server">
                            <ItemTemplate>
                            <a <%# DataBinder.Eval(Container.DataItem, "city").ToString() == Request.QueryString["city"] ? "class='c'" : "" %> href="/shop/<%= Request.QueryString["p"] %>/<%# Server.UrlEncode(DataBinder.Eval(Container.DataItem, "city").ToString())%>.html"><%# DataBinder.Eval(Container.DataItem, "city")%>(<%# DataBinder.Eval(Container.DataItem, "cityCount")%>)</a>
                            </ItemTemplate>
                            </asp:Repeater>
                        </div>
                        
                        <div class="clear">
                            <asp:Repeater ID="rptMain" runat="server">
                            <HeaderTemplate>
                            <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                            <li>
                                <div class="img"><a href="/vip/<%# DataBinder.Eval(Container.DataItem, "buid")%>/" target="_blank"><img onload="middleimage(this);" src="/uploadfiles/<%# DataBinder.Eval(Container.DataItem, "logo")%>" align="center" /></a></div>
                                <div class="name"><a href="/vip/<%# DataBinder.Eval(Container.DataItem, "buid")%>/" target="_blank"><%# DataBinder.Eval(Container.DataItem, "companyname")%></a></div>
                                <div class="flag">
                                <%# Convert.ToInt32(DataBinder.Eval(Container.DataItem, "viplevel")) > 0 ? "<img src='/images/ico/vip.gif' align='absmiddle' alt='VIP会员商家推荐' />" : ""%>
                                <%# Convert.ToInt32(DataBinder.Eval(Container.DataItem, "photocount")) > 0 ? "<img src='/images/ico/photo.gif' alt='有上传照片' />" : ""%>
                                <%# Convert.ToInt32(DataBinder.Eval(Container.DataItem, "couponcount")) > 0 ? "<img src='/images/ico/conpon.gif' alt='有电子优惠券' />" : ""%>
                                <img src="/images/ico/ask.gif" /></div>
                                <div class="addr"><%# Utils.GetShortText(DataBinder.Eval(Container.DataItem, "address"),34)%></div>
                                <div class="stor">综合指数：<span class="star"><span class="g4" title="<%# DataBinder.Eval(Container.DataItem, "totalgrade")%>"></span></span> <a href="/vip/<%# DataBinder.Eval(Container.DataItem, "buid")%>/res.html" class="q" target="_blank">免费预约</a></div>
                            </li>
                            </ItemTemplate>
                            <FooterTemplate>
                            </ul>
                            </FooterTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
                    
                    <div class="right mg_top">
                        <uc5:ParamPageNavigator ID="ParamPageNavigator1" runat="server" RewriteExpression="/shop/*.html" />
                    </div>
                </div>
                
                <!-- 主要内容结束 -->
                <uc3:PageFooter ID="PageFooter1" runat="server" />
            </div>
        </div>
    </form>
     <script type="text/javascript">
         $(".ads .scolling").jCarouselLite({
             auto: 3000,
             speed: 1000,
             visible: 6
         });
    </script>
</body>
</html>
