<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RelatedProductEdit.aspx.cs" Inherits="SYSadmin_Products_RelatedProduct"  ValidateRequest="false"%>
<!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">
    <title>无标题页</title>
  <link href="../../SYSadmin/css/style.css" rel="stylesheet" type="text/css" />
 <link href="../../SYSadmin/css/neiye.css" rel="stylesheet" type="text/css" />
  <style>
#demo{overflow:hidden;width:120px;text-align:center;padding:10px;}
#demo img{border:none;width:100px;height:100px;border:5px solid #f4f4f4}
#enlarge_images{position:absolute;display:none;z-index:2;border:5px solid #f4f4f4}
</style>
</head>
<body>
<div id="enlarge_images"></div>
<script>
  var ei = document.getElementById("enlarge_images");
  function ab(txt)
  {
  ei.style.display = "block";
  ei.innerHTML = '<img src="' + txt+ '" />';
  ei.style.top  = document.body.scrollTop + event.clientY + 10 + "px";
  ei.style.left = document.body.scrollLeft + event.clientX + 10 + "px";
  }
 function ac()
 {
  ei.innerHTML = "";
  ei.style.display = "none";
 }
 function ad(txr)
 {
  window.open(txr);
 }
</script>
<form id="Form1" name="form" method="post" action="" runat="server">
    <table align="center" cellpadding="0" cellspacing="0" width="98%">
        <tr>
            <td align="center">
                <asp:ScriptManager ID="ScriptManager1" runat="server"  AsyncPostBackTimeOut="36000" >
                </asp:ScriptManager>
    <asp:Label ID="mslable" runat="server" BackColor="Transparent" Font-Bold="True" ForeColor="Red"
        Text="暂无记录!!" Width="74px" Visible="False"></asp:Label></td>
        </tr>
        <tr>
            <td align="center" style="height: 45px">
                <table border="0" cellpadding="0" cellspacing="0" class="tright2" width="100%">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                            快捷查询：</td>
                                    <td align="left">
                                        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                            <ContentTemplate>
                                        <asp:DropDownList ID="sql" runat="server" AutoPostBack="True" CssClass="input1" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                <asp:ListItem Value="allpro">请选择商品</asp:ListItem>
                                <asp:ListItem  Value="all" Selected="True">全部商品</asp:ListItem>
                                <asp:ListItem Value="new">最新商品</asp:ListItem>
                                <asp:ListItem Value="tj">特价商品</asp:ListItem>
                                <asp:ListItem Value="tjt">推荐商品</asp:ListItem>
                                <asp:ListItem Value="hot">最热商品</asp:ListItem>
                                <asp:ListItem Value="fping">发布中商品</asp:ListItem>
                                <asp:ListItem Value="nofp">屏蔽中商品</asp:ListItem>
                            </asp:DropDownList>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                    <td >
                                        &nbsp;<input id="reval" runat="server" type="hidden" /></td>
                                    <td>
                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel4">
                                            <ProgressTemplate>
                                                <asp:Label ID="Label2" runat="server" Text="加载中..." Width="68px" BackColor="White" BorderColor="#E0E0E0" ForeColor="Red"></asp:Label>
                                            </ProgressTemplate>
                                        </asp:UpdateProgress>
                                    </td>
                                </tr>
                                <tr>
                                    <td >
                                        高级查询：
                                    </td>
                                    <td><asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                大类&nbsp;<asp:DropDownList ID="BigProduct" runat="server" CssClass="input1" AutoPostBack="True" OnSelectedIndexChanged="BigProduct_SelectedIndexChanged" Font-Bold="False">
                                        </asp:DropDownList>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                    <td >
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                            <ContentTemplate>
                                        小类&nbsp;
                                                <asp:DropDownList ID="smalllb" runat="server" CssClass="input1">
                                        </asp:DropDownList>
                                        名称
                                                <asp:TextBox ID="pro" runat="server" CssClass="input1" Height="15px" Width="112px"></asp:TextBox>&nbsp;
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="LinkButton3" runat="server" CssClass="btn" OnClick="LinkButton3_Click">查询</asp:LinkButton></td>
                                </tr>
                            </table>
                            </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="height: 7px"></td>
        </tr>
    </table>
    <a href="javascript:uncheckAll('form')"><span style="color: #0000ff;text-decoration: underline"></span></a>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
            <asp:GridView ID="Productmag" runat="server" AutoGenerateColumns="False" HorizontalAlign="Center"
        Width="98%" AllowPaging="True" Height="1px" OnPageIndexChanging="Productmag_PageIndexChanging" OnRowDataBound="Productmag_RowDataBound" CaptionAlign="Right">
        <Columns>
            <asp:TemplateField HeaderText="缩略图">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="imgpic" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="商品名称">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="" Text='<%# Eval("Products") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="货号">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("ProductsNo") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductsNo") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="发布">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("ISPublished") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    &nbsp;<asp:Label ID="isfp" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle Font-Bold="False" Font-Size="14px" ForeColor="Red" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="最新">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("IsNew") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    &nbsp;<asp:Label ID="isnew" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle Font-Bold="False" Font-Size="14px" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="最热">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("IsHot") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    &nbsp;<asp:Label ID="ishot" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle Font-Bold="False" Font-Size="14px" ForeColor="Red" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="推荐">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("IsRecommended") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    &nbsp;<asp:Label ID="isT" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle Font-Bold="False" Font-Size="14px" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="特价">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("IsSpecials") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    &nbsp;<asp:Label ID="isTprice" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle Font-Bold="False" Font-Size="14px" ForeColor="Red" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单/双关联">
                <ItemStyle ForeColor="Red" HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:LinkButton ID="onere" runat="server"  Text="单向关联" CssClass="oneico"></asp:LinkButton>
                    <asp:LinkButton ID="twore" runat="server" CssClass="twoico">双向关联</asp:LinkButton>
                    <asp:LinkButton ID="canre" runat="server" CssClass="calico" Visible="False">取消关联</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle Height="30px" CssClass="tright" />
            <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
                NextPageText="下一页" PreviousPageText="上一页" />
            <PagerStyle Font-Bold="False" Font-Italic="False" HorizontalAlign="Right" />
    </asp:GridView>
    <table border="0" cellpadding="0" cellspacing="0" width="98%" runat="server" id="t1" align="center">
                        <tr>
                            <td style="height: 33px" align="left">
                                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
                            <td style="height: 33px" >
                            </td>
                            <td style="height: 33px">
                            </td>
                        </tr>
                    </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</form>
</body>
</html>
