绑定 前台

<%@ Control Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="ShopNum1.Common" %>
<!--开启闭合-->

<script type="text/javascript">
$(function(){

    $(".att_more").toggle(
        function ()
        {
            $(this).prev().addClass("open");//展开
            $(this).addClass("open");//箭头变化
            $(this).children("a").html("收起<b></b>");
        },
        function()
        {
            $(this).removeClass("open");
            $(this).children("a").html("更多<b></b>");
            $(this).prev().removeClass("open");//展开
        }
    );
})
</script>

<div class="condition_selection">
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td valign="top" align="right" width="80">
                <div class="condition_select">
                    按分类选择:</div>
            </td>
            <td valign="top" align="left">
                <div class="condition_text fl">
                    <ul>
                    <asp:Repeater ID="RepeaterBrand" runat="server">
                        <ItemTemplate>
                        <asp:HiddenField ID="HiddenFieldCode" runat="server" Value='<%#Eval("Code")%>' />
                        <li><a href='<%# ShopUrlOperate.RetMultiUrl("Search_product",((DataRowView)Container.DataItem).Row["Code"])%>'>
                        <%#ShopNum1.Common.Utils.GetUnicodeSubString(((DataRowView)Container.DataItem).Row["Name"].ToString(),8,"") %>
                        </a>(<asp:Label ID="LabelProductCount" runat="server"></asp:Label>)</li>
                        </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div class="condition_r fr">
                    <a href="#">更多</a></div>
            </td>
        </tr>
      
        <tr>
            <td valign="top" align="right">
                <div class="condition_select">
                    品牌:</div>
            </td>
            <td valign="top" align="left">
                <div class="condition_text fl">
                    <ul>
                    <asp:Repeater ID="RepeaterBrand2" runat="server">
                        <ItemTemplate>
                             <asp:HiddenField ID="HiddenFiledCode2" runat="server" Value='<%# Eval("Guid") %>'/>
                            <li><a href='<%# ShopUrlOperate.RetMultiUrl("Search_product",((DataRowView)Container.DataItem).Row["Guid"])%>'>
                        <%#ShopNum1.Common.Utils.GetUnicodeSubString(((DataRowView)Container.DataItem).Row["Name"].ToString(),8,"") %>
                        </a>(<asp:Label ID="LableBProductCount" runat ="server"></asp:Label>)</li>
                        </ItemTemplate>
                    </asp:Repeater>
                    </ul>
                </div>
                <div class="condition_r fr">
                    <a href="#">更多</a></div>
            </td>
        </tr>
    </table>
</div>
<%--<!--分隔BrandPropBorder-->2222
<div class="ser_brand" id="BrandBorder" runat="server">1111
    <div class="att_key">
        品牌</div>
    <div class="att_values">
        <ul class="att_ul">
            <asp:Repeater ID="RepeaterPtoudctBrand" runat="server">
                <ItemTemplate>
                    <li><a href='<%# ShopUrlOperate.RetMultiUrl("Search_product",((DataRowView)Container.DataItem).Row["linkurl"])%>'>
                        <span id="SpanBrand" runat="server">
                            <%#ShopNum1.Common.Utils.GetUnicodeSubString(((DataRowView)Container.DataItem).Row["Name"].ToString(),8,"") %></span></a></li>
                    </a>
                    <asp:HiddenField ID="HiddenFieldGuid" runat="server" Value='<%# ((DataRowView)Container.DataItem).Row["Guid"] %>'>
                    </asp:HiddenField>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
        <div class="att_more">
        <a>更多<i></i></a></div>
    </div>
</div>

<!--尺寸大小选择隐藏了-->
<div class="ser_cate dl_none" id="PropBorder" runat="server" >
    <asp:Repeater ID="RepeaterShopProductProp" runat="server">
        <ItemTemplate>
            <asp:HiddenField ID="HiddenFieldPropID" runat="server" Value='<%# ((DataRowView)Container.DataItem).Row["ID"] %>' />
            <div class="ser_dash">
                <div class="fenlei">
                    <%#ShopNum1.Common.Utils.GetUnicodeSubString(((DataRowView)Container.DataItem).Row["PropName"].ToString(),8,"") %></div>
                <div class="att_values">
                    <ul class="att_ul">
                        <asp:Repeater ID="RepeaterShopProductPropValue" runat="server">
                            <ItemTemplate>
                                <li><a title='<%# ((DataRowView)Container.DataItem).Row["Name"] %>' href='<%# ShopUrlOperate.RetMultiUrl("Search_product",((DataRowView)Container.DataItem).Row["linkurl"])%>'>
                                    <span id="SpanPropValue" runat="server">
                                        <%#ShopNum1.Common.Utils.GetUnicodeSubString(((DataRowView)Container.DataItem).Row["Name"].ToString(),10,"") %></span></a></li>
                                <asp:HiddenField ID="HiddenFieldPropValueID" runat="server" Value='<%# ((DataRowView)Container.DataItem).Row["ID"] %>' />
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div class="att_more">
                        <a>更多<b></b></a></div>
                </div>
                <div class="clear">
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>--%>

posted @ 2013-07-01 17:54  等一个晴天  阅读(178)  评论(0编辑  收藏  举报