<%@ page language="C#" autoeventwireup="true" inherits="Recommend, LebiMall" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!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" runat="server">
     <title><%=model.Title %>-橱窗推荐</title>
    <meta name="description" content=<%=model.Description %> />
    <meta name="keywords" content=<%=model.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <link href="images/css/shopcss.css" rel="stylesheet" type="text/css" />
    <!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(images/css/ie6.css); /* ]]> */</style><![endif]-->
    <!--[if gte IE 7]><STYLE type=text/css media=screen>@import url(images/css/ie7.css);</STYLE><![endif]-->
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript"> 
        function SelectAllCheckBox()
        {
            var form =document.forms[0];
            for(i=0;i<form.elements.length;i++)
            {
                if(form.elements[i].type=="checkbox")
                {
                    form.elements[i].checked=true;
                }
            }
        }
        function ReSelectCheckBox()
        {
            var form =document.forms[0];
            for(i=0;i<form.elements.length;i++)
            {
                if(form.elements[i].type=="checkbox")
                {
                    if(form.elements[i].checked)
                        form.elements[i].checked=false;
                    else
                        form.elements[i].checked=true;
                }
             }
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>

</head>
<body>

    <div id="top-menu02">
        <div id="top-menu">
            <div class="right">
                <script type="text/javascript">indexhead();</script>
            </div>
        </div>
    </div>
    <div id="top">
        <div id="logo">
            <a href="http://<%=Request.Url.Host %><%=model.WebPath %>/">
                <img src="Upload/WebAdminImages/<%=model.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
        <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
        <p>
            <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
    </div>

    <div id="contenter2">
        <div id="contenter">
            <script type="text/javascript">shopLeft();</script>
            <div class="nav-tabs">
                <ul class="tabs">
                    <li class="selected"><a href="Recommend.aspx">橱窗推荐</a></li>
                </ul>
                <ul class="tabs">
                    <li><a href="Tjmanage.aspx">首页推荐</a></li>
                </ul>
            </div>
            <div id="right">
                <div class="page-title">
                    <a class="back" href="#" onclick="javascript:window.history.back();"><span>返回上一页</span></a>
                    <h2 class="shop clearfix">
                        橱窗推荐
                    </h2>
                </div>
                <div class="contenter">
                    <form runat="server">
                        <asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <div class="rtitle">
                                    <div style="float: left;">
                                        <a class="Link2" onclick="SelectAllCheckBox()" href="javascript:;">全选</a> |<a class="Link2"
                                            onclick="ReSelectCheckBox()" href="javascript:;">反选</a> (<font color="red">最多推荐8件商品</font>)
                                    </div>
                                    <div style="float: right;">
                                        <asp:Button ID="btnTuijian" runat="server" OnClick="lbtnTuijians_Click" Text="推荐"
                                            CssClass="btn_submit" />
                                        <asp:Button ID="btnCancelTuijian" runat="server" OnClick="lbtnquxiaos_Click" Text="取消推荐"
                                            CssClass="btn_cancel" /></div>
                                </div>
                                <asp:Repeater runat="server" ID="rpTui" OnItemDataBound="rpTui_ItemDataBound" OnItemCommand="rpTui_ItemCommand">
                                    <ItemTemplate>
                                        <input type="hidden" runat="server" id="hiddenId" value='<%#Eval("Id") %>' />
                                        <div class="remocomd">
                                            <div class="recommend_item_img_div">
                                                <div style="float: left; width: 30px">
                                                    <input type="checkbox" id="chktuis" runat="server" />
                                                </div>
                                                <div style="float: left;">
                                                    <img src="Upload/commodity/<%#Eval("Cmin_img") %>" class="recommend_item_img" /></div>
                                            </div>
                                            <div class="recommend_item_left">
                                                <div class="recommend_item_left_item">
                                                    <div class="recommend_item_div">
                                                        商品编号：<%#Eval("Cno") %></div>
                                                    <div class="recommend_item_div">
                                                        商品名称：<%#Eval("Cname") %></div>
                                                    <div class="recommend_item_div">
                                                        品牌名：<%#Eval("Cbrand") %></div>
                                                </div>
                                                <div class="recommend_item_left_item">
                                                    <div class="recommend_item_div">
                                                        数量：<%#Eval("Cnum") %></div>
                                                    <div class="recommend_item_div">
                                                        价格：￥<%#Eval("Cprice") %></div>
                                                    <div class="recommend_item_div">
                                                        是否是橱窗推荐：<asp:Label runat="server" ID="isTui" ForeColor="red"></asp:Label></div>
                                                </div>
                                            </div>
                                            <div class="recommend_item_right">
                                                <asp:LinkButton runat="server" ID="lbtnTuijian" Text="推荐" CommandName="TuiJian" CommandArgument='<%#Eval("Id") %>' />
                                                <asp:LinkButton runat="server" ID="lbtnquxiao" Text="取消推荐" CommandName="Quxiao" CommandArgument='<%#Eval("Id") %>' />
                                            </div>
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                            runat="server" RecordCount="228" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                            PrevPageText="上一页" PageSize="10" UrlPaging="True" NumericButtonCount="5" Width="450px">
                        </webdiyer:AspNetPager>
                        <br />
                    </form>
                </div>
            </div>
            <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="copyright" runat="server" id="copr"></div>
        </div>
    </div>
</body>
</html>
