<%@ page language="C#" autoeventwireup="true" inherits="mall_list, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="Pager" Namespace="Wuqi.Webdiyer" TagPrefix="DataPager" %>
<%@ Register TagName="topbar" TagPrefix="UC" Src="~/mall/topbar.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/mall/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/mall/foot.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>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>
        <asp:Literal ID="LiteralPageTitle" runat="server" Text="商品列表"></asp:Literal>_<%=ZK.config("title","mall") %></title>
    <asp:Literal ID="Literal1" runat="server"></asp:Literal><asp:Literal ID="Literal2" runat="server"></asp:Literal>

    <script type="text/javascript" src="/s/skin/base.js"></script>

    <link type="text/css" rel="stylesheet" href="/mall/skin/style.css" />

    <script type="text/javascript" src="/mall/skin/public.js"></script>

</head>
<body>
    <%--<noscript><style type="text/css"> body,.wrap{background-color:#fff;background-image:none;}.box,.topbar{display:none;}</style><div class="noscript">您的浏览器不支持Javascript，请升级你的浏览器或者打开Javascript支持！</div></noscript>--%>
    <a name="pagetop" id="pagetop"></a>
    <div class="wrap">
        <UC:topbar ID="topbar1" runat="server" />
        <UC:head ID="head1" runat="server" />
        <div class="box">
            <div class="hto">
                <div class="fl flow" style="width: 200px; padding-top: 366px">
                    <div class="c1">
                        <div class="b3">
                            <div class="fl"></div>
                            <div class="con">我的网购</div>
                            <div class="fr"></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v1" style="padding-bottom: 8px; border-color: #e05d5d">
                            <div class="ce" style="padding-top: 8px"><a href="/user/mall_do.aspx" target="_blank" rel="nofollow"><img alt="" src="/mall/skin/mall_do_btn1.gif" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a></div>
                            <div class="ce" style="padding-top: 8px"><a href="/user/mall.aspx" target="_blank" rel="nofollow"><img alt="" src="/mall/skin/mall_do_btn2.gif" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a></div>
                            <div class="ce" style="padding-top: 8px"><a href="cart.aspx"><img alt="" src="/mall/skin/mall_do_btn3.gif" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a></div>
                            <div class="ce" style="padding-top: 8px"><a href="mall_order.htm"><img alt="" src="/mall/skin/mall_do_btn4.gif" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a></div>
                        </div>
                    </div>
                    <%=ZK.config("ListSideCustom","mall") %>
                </div>
                <div class="fr flow" style="width: 740px; padding-top: 10px">
                    <div class="c1">
                        <div class="b3">
                            <div class="fl"></div>
                            <div class="con">推荐置顶商品</div>
                            <div class="fr" style="width: 200px; padding-right: 8px"><a href="/user/mall_do.aspx" target="_blank" rel="nofollow">我要发布商品出售&raquo;</a></div>
                            <div class="clear"></div>
                        </div>
                        <div class="v1" style="border-color: #e05d5d;">
                            <div class="v1_c">
                                <ul>
                                    <asp:Literal ID="Literal_topmall" runat="server"></asp:Literal>
                                </ul>
                                <div class="clear"></div>
                            </div>
                        </div>
                    </div>
                    <div class="list_where mt10">
                        <div class="con1">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <div class="son1">商品列表</div>
                                    </td>
                                    <td>
                                        <div class="ar" style="padding-right: 3px; color: #666">总共搜索到<%=Pager1.RecordCount.ToString()%>个商品供您选择</div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="con2">
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <div style="padding-left: 12px">关键字：</div>
                                                </td>
                                                <td>
                                                    <input type="text" id="mall_k" maxlength="50" class="mall_inp1" autocomplete="off" />
                                                </td>
                                                <td>
                                                    <div style="padding-left: 10px">价格：</div>
                                                </td>
                                                <td>
                                                    <input type="text" id="mall_p1" maxlength="50" class="mall_inp1" style="width: 50px" autocomplete="off" />
                                                </td>
                                                <td>
                                                    <div style="padding-left: 10px">到：</div>
                                                </td>
                                                <td>
                                                    <input type="text" id="mall_p2" maxlength="50" class="mall_inp1" style="width: 50px" autocomplete="off" />
                                                </td>
                                                <td>
                                                    <div style="padding-left: 10px"><input type="button" class="mall_but1" value="搜索" onclick="mall_list_search()" /></div>
                                                </td>
                                                <td class="td_sort">
                                                    <div class="sort_time1" id="sort_time" style="margin-left: 15px"><a href="#NONE" onclick="mall_list_orderby('time')">时间排序</a></div>
                                                </td>
                                                <td class="td_sort">
                                                    <div class="sort_price3" id="sort_price"><a href="#NONE" onclick="mall_list_orderby('price')">价格排序</a></div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td class="ar">
                                        <div style="padding-right: 8px">
                                            <div class="showtype1"><a href="#NONE" onclick="mall_list_viewtype()">
                                                <asp:Literal ID="Literal3" runat="server">切换到大图</asp:Literal></a></div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <asp:Literal ID="Literal_SearchJS" runat="server"></asp:Literal>
                        <asp:Literal ID="Literal_OrderByJS" runat="server"></asp:Literal>
                    </div>
                    <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                        <div class="tip_nodata" id="tip_nodata"><a href="#" onclick="history.back()" title="点击返回上页！">此页没有检索到相关商品！</a></div>
                    </asp:Panel>
                    <asp:Panel ID="Panel_List" runat="server">
                        <asp:Repeater ID="Repeater1" runat="server">
                            <HeaderTemplate>
                                <div class="malllist1">
                            </HeaderTemplate>
                            <ItemTemplate>
                                <div class="item <%#WMcompare.IsEqual(WMreplace.ConvertBit(Eval("isred").ToString()), "1", "item_a", "")%>">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td class="td1">
                                                <a href="<%#Eval("id") %>.htm" target="_blank"><img alt="" src="<%#ZK.getProportionImage(Eval("thumbnail").ToString(),"",80,"",80) %>" /></a>
                                            </td>
                                            <td class="td2">
                                                <div class="s14"><%#WMcompare.IsEqual(WMreplace.ConvertBit(Eval("istop").ToString()), "1", "<span class=\"red\">[置顶推荐]</span>", "")%><a href="<%#Eval("id") %>.htm" target="_blank"><%#Eval("title")%></a></div>
                                                <div class="son1">地区：<%#WMread.GetBy("n","area","id",Eval("areaid").ToString()) %><%#WMcompare.IsEqual(Eval("address").ToString(), "", "", "<span>(" + Eval("address").ToString() + ")</span>")%></div>
                                                <div class="son2"><span>类别：</span><%#get1(Eval("classid").ToString())%></div>
                                            </td>
                                            <td class="td3">
                                                <div class="son1">￥<%#FUN.FormatPrice(Eval("buyprice").ToString())%></div>
                                                <div class="son2">￥<%#FUN.FormatPrice(Eval("oldprice").ToString())%></div>
                                            </td>
                                            <td class="td4">
                                                <div class="son1"><a href="/shop/view.aspx?uid=<%#Eval("uid") %>" target="_blank"><img alt="" src="<%# ZK.m_face(Eval("uid").ToString(),"50")%>" /></a></div>
                                                <div class="son2"><a href="/shop/view.aspx?uid=<%#Eval("uid") %>" target="_blank">卖家：<%#ZK.m_u(Eval("uid").ToString())%></a></div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </ItemTemplate>
                            <FooterTemplate>
                                </div></FooterTemplate>
                        </asp:Repeater>
                        <asp:Repeater ID="Repeater2" runat="server">
                            <HeaderTemplate>
                                <div class="malllist2">
                                    <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li>
                                    <div class="con1">
                                        <table border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <a href="<%#Eval("id") %>.htm" target="_blank"><img alt="" src="<%#ZK.getProportionImage(Eval("thumbnail").ToString(),"",150,"",150) %>" /></a>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="con2"><%#get3(Eval("istop").ToString())%><%#get2(Eval("istop").ToString(), Eval("isred").ToString())%><a href="<%#Eval("id") %>.htm" target="_blank"><%#Eval("title")%></a></div>
                                    <div class="con3">商城价：<strong>￥<%#FUN.FormatPrice(Eval("buyprice").ToString())%></strong></div>
                                </li>
                            </ItemTemplate>
                            <FooterTemplate>
                                </ul><div class="clear"></div>
                                </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="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 class="clear"></div>
            </div>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
<form id="form1" runat="server">
</form>
