<%@ page language="VB" autoeventwireup="false" inherits="qiye_admin_admin_changpin, App_Web_admin_changpin.aspx.25f04327" %>
<%  ubb.cms_anquan()%>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.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>
<title>商品列表</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="JavaScript" src="js/tanbox.js" type="text/javascript"></script>
<script language="javascrip" type="text/javascript" >
function sou_cp_lei(name){

 if (name =='lei'){

       var count = 'admin_changpin.aspx?sou=<%=ubb.query_string("sou")%>&sou_flei='; 
      }
       if (name =='zlei'){

       var count = 'admin_changpin.aspx?sou_flei=<%=ubb.query_string("sou_flei")%>&sou=<%=ubb.query_string("sou")%>&sou_zlei='; 
      }
return count;

}


function CheckAll(form) //传一个表单作参数
{ 
for (var i=0;i<form.elements.length;i++) //对这个表单里的元素进行循环
{ 
var e = form.elements[i]; //一个一个元素判断
if (e.Name != "cp_int_id"&&e.disabled!=true) //如果该元素的name属性为chkAll并且disabled!=true.即:该控件可用时.
e.checked = form.chkAll.checked; //控元素的checked与当前选中的控件checked保持一致.即:全选/全不选.
} 
} 
		document.oncontextmenu=new Function('event.returnValue=false;'); 
        </script>
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/text.css" rel="stylesheet" type="text/css" />
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script src="js/web_alt.js" type="text/javascript"></script>
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:scriptmanager runat="server"></asp:scriptmanager>
<table width="100%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" height="29" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td height="19" bgcolor="#EBEBEB"><table width="100%" border="0" cellspacing="8" cellpadding="0">
                        <tr>
                          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                              <tr>
                                <td width="15%" height="25" align="center" class="wuse16"><strong class="16huise">管理中心</strong></td>
                                <td width="76%" valign="bottom" class="huise12">商品列表</td>
                                <td width="9%" valign="bottom" class="huise12">&nbsp;</td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%" height="29" border="0" cellpadding="0" cellspacing="5">
                  <tr>
                    <td height="19" bgcolor="#F3F3F3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td class="wuse12"><table width="100%" border="0" cellspacing="5" cellpadding="0">
                            <tr>
                              <td width="10%" height="22" align="right" class="wuse12">产品搜索：</td>
                              <td width="90%"><span class="hongse12"></span>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="280">
                                    <asp:TextBox ID="cp_sou_bt" runat="server" width="270px" 
                                            CssClass="text_autox22_cccccc"></asp:TextBox></td>
                                    <td>
                                    <input type="button" name="button" id="button" value="提交搜索" 
                                            
                                            onMouseDown="javascript:window.location.href='admin_changpin.aspx?sou_flei=<%=ubb.query_string("sou_flei")%>&sou_zlei=<%=ubb.query_string("sou_zlei")%>&sou='+document.form1.cp_sou_bt.value" 
                                            class="btn_2k3" style="height: 26px;"/><span class="hongse12"> （请输入产品名称或产品货号进行搜索）</span></td>
                                  </tr>
                                </table></td>
                              </tr>
                            <tr>
                              <td height="22" align="right" class="wuse12">分类搜索：</td>
                              <td><asp:DropDownList ID="cp_sou_lei" runat="server" onchange="javascript:window.location.href=sou_cp_lei('lei')+this.value"></asp:DropDownList>
                                <span class="hongse12">
                                <asp:DropDownList ID="cp_sou_zlei" runat="server" Visible="False" onchange="javascript:window.location.href=sou_cp_lei('zlei')+this.value"></asp:DropDownList>
                                </span><a href="?" class="wuse12">显示所有产品</a></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td bgcolor="#FFFFFF" class="wuse12">
                          
                          <table width="100%" border="1" cellpadding="0" cellspacing="1" bordercolor="#F6F6F6">
                            <tr>
                              <td width="21" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAll(this.form)" value="checkbox" style="border:0" /></td>
                              <td height="22" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12">产品名称</td>
                              <td width="6%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12">价格</td>
                              <td width="6%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><a href="?<%=url_string %>&sou_px=cp_tj">特价</a></td>
                              <td width="6%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><label for="up_cp_zt"><a href="?<%=url_string %>&sou_px=cp_zt">主推</a></label></td>
                              <td width="6%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><label for="up_cp_newzt"><a href="?<%=url_string %>&sou_px=cp_newzt">新品</a></label></td>
                              <td width="6%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><label for="up_cp_goodzt"><a href="?<%=url_string %>&sou_px=cp_goodzt">精品</a></label></td>
                              <td width="6%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><label for="up_cp_hotzt"><a href="?<%=url_string %>&sou_px=cp_hotzt">热卖</a></label></td>
                              <td width="6%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><label for="up_cp_hotzt"><a href="?<%=url_string %>&sou_px=cp_vipdz">打折</a></label></td>
                              <td width="12%" align="center" background="image/listbg.gif" bgcolor="#FFFFFF" class="wuse12"><a href="?<%=url_string %>&sou_px=cp_verify">状态</a> | 管理</td>
                            </tr>
                            <asp:Repeater ID="data_cp" runat="server">
                            <ItemTemplate>
                            <tr onMouseOver="this.bgColor='#DBDBDB';" onMouseOut="this.bgColor='#ffffff';" bgColor=#ffffff>
                              <td height="30" class="wuse12"><input name="cp_int_id" type="checkbox" id="cp_int_id" value="<%#Eval("cp_id")%>" /></td>
                              <td height="30" class="wuse12">
                              <div style="overflow: hidden;height: 22px;line-height: 22px;">
                              <a href="<%=ubb.url%>shop_text.aspx?cp_id=<%#Eval("cp_id")%>" target="_blank" onmouseover="wsug(event, '&lt;img src=../file_shopimages/sl/<%#Eval("cp_image")%> border=0 /&gt;')" onmouseout="wsug(event, 0)"><%#Eval("cp_name")%></a></div></td>
                              <td align="center" class="wuse12"><%#Eval("cp_jg")%></td>
                              <td align="center" class="wuse12"><%#Eval("cp_tj").replace("True","<span class=""hongse12""><strong>"& Eval("cp_tjjg") &"</strong></span>").replace("False","<img src=""image/False.gif"" width=""26""/>")%></td>
                              <td align="center"  class="wuse12"><img src="image/<%#Eval("cp_zt")%>.gif" width="26" border="0" /></td>
                              <td align="center"  class="wuse12"><img src="image/<%#Eval("cp_newzt")%>.gif" width="26" border="0" /></td>
                              <td align="center"  class="wuse12"><img src="image/<%#Eval("cp_goodzt")%>.gif" width="26" border="0" /></td>
                              <td align="center"  class="wuse12"><img src="image/<%#Eval("cp_hotzt")%>.gif" width="26" border="0"/></td>
                              <td align="center"  class="wuse12"><img src="image/<%#Eval("cp_vipdz")%>.gif"  width="26" border="0"/></td>
                              <td align="center"  class="wuse12"><%#Eval("cp_verify").ToString.Replace("下架", "<span class=hongse12>下架</sapn>")%> | <a href="admin_update_changpin.aspx?<%=url_string %>&page_ye=<%=ubb.query_string("page_ye")%>&update_id=<%#Eval("cp_id")%>&sou_px=<%=Server.UrlEncode(ubb.query_string("sou_px")) %>">修改</a></td>
                            </tr>
                            </ItemTemplate>
                                </asp:Repeater>
                          </table>
                        
                              </td>
                              </tr>
                            </table>                            </td>
                        </tr>
                        <tr>
                          <td class="wuse12"><table width="100%" border="0" cellpadding="0" cellspacing="4" class="wuse12">
                            <tr>
                              <td>
                              <table border="0" align="center" cellpadding="0" cellspacing="2">
                                  <tr>
                                    <td><asp:Button ID="cp_quantity_upverify" runat="server" CssClass="btn" Text="批量上架" /></td>
                                    <td><asp:Button ID="cp_quantity_downverify" runat="server" CssClass="btn" Text="批量下架" /></td>
                                    <td><asp:Button ID="cp_quantity_tjTrue" runat="server" CssClass="btn" Text="批量特价" /></td>
                                    <td><asp:Button ID="cp_quantity_tjFalse" runat="server" CssClass="btn" Text="取消特价" /></td>
                                    <td><asp:Button ID="cp_quantity_vipdzTrue" runat="server" CssClass="btn" Text="批量加入会员打折" 
            Width="110px" /></td>
                                    <td><asp:Button ID="cp_quantity_vipdzFalse" runat="server" CssClass="btn" Text="批量退出会员打折" 
            Width="110px" /></td>
                                    <td><asp:Button CssClass="btn" ID="cp_quantity_Print" runat="server" Text="打印商品"/></td>
                                    <td><asp:Button CssClass="btn1_mouseout" ID="cp_quantity_delete" runat="server" Text="批量删除"/></td>
                                  </tr>
                                </table>
                                <table border="0" align="center" cellpadding="0" cellspacing="2">
                                  <tr>
                                    <td><asp:Button ID="upcp_ztup" runat="server" CssClass="btn" Text="主推显示" /></td>
                                    <td><asp:Button ID="upcp_ztdow" runat="server" CssClass="btn" Text="主推隐藏" /></td>
                                    <td><asp:Button ID="upcp_newup" runat="server" CssClass="btn" Text="新品显示" /></td>
                                    <td><asp:Button ID="upcp_newdpw" runat="server" CssClass="btn" Text="新品隐藏" /></td>
                                    <td><asp:Button ID="upcp_jpup" runat="server" CssClass="btn" Text="精品显示" /></td>
                                    <td><asp:Button ID="upcp_jpdow" runat="server" CssClass="btn" Text="精品隐藏" /></td>
                                    <td><asp:Button ID="upcp_hotup" runat="server" CssClass="btn" Text="热卖显示" /></td>
                                    <td><asp:Button ID="upcp_hopdow" runat="server" CssClass="btn" Text="热卖隐藏" /></td>
                                  </tr>
                                </table>
                                <table border="0" cellspacing="0" class="wuse12">
  <tr>
    <td>批量分类转移：</td>
    <td>
        <asp:UpdatePanel ID="cp_quantity_lei_UpdatePanel" ChildrenAsTriggers="true"  runat="server">
          <ContentTemplate>
            <table border="0">
              <tr>
                <td><asp:DropDownList ID="cp_quantity_lei" runat="server" AutoPostBack="True" 
                        Width="150px"></asp:DropDownList></td>
                <td><asp:DropDownList ID="cp_quantity_zlei" runat="server" Visible="False" 
                        Width="150px"></asp:DropDownList></td>
              </tr>
            </table>
          </ContentTemplate>
      </asp:UpdatePanel></td>
    <td><asp:Button ID="cp_quantity_uplei" runat="server" CssClass="btn" Text="分类批量转移" 
            Width="80px" /></td>
  </tr>
  <tr>
    <td>批量品牌转移：</td>
    <td><asp:UpdatePanel ID="cp_pp_quantity_lei_UpdatePanel" ChildrenAsTriggers="true"  runat="server">
      <ContentTemplate>
        <table border="0">
          <tr>
            <td><asp:DropDownList ID="cp_pp_quantity_lei" runat="server" AutoPostBack="True" 
                        Width="150px"></asp:DropDownList></td>
            <td><asp:DropDownList ID="cp_pp_quantity_zlei" runat="server" Visible="False" 
                        Width="150px"></asp:DropDownList></td>
          </tr>
        </table>
      </ContentTemplate>
    </asp:UpdatePanel></td>
    <td><asp:Button ID="cp_pp_quantity_uplei" runat="server" CssClass="btn" 
                                            Text="品牌批量转移" Width="80px" /></td>
  </tr>
</table>                              </td>
                            </tr>
                            <tr>
                              <td><table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="90" class="wuse12">批量价格修改：</td>
                                  <td>
                                      <asp:DropDownList ID="shop_jgup0" runat="server">
                                          <asp:ListItem Value="-1">字段</asp:ListItem>
                                          <asp:ListItem>基本价格</asp:ListItem>
                                          <asp:ListItem>特价价格</asp:ListItem>
                                      </asp:DropDownList>
                                    </td>
                                  <td>
                                      <asp:DropDownList ID="shop_jgup1" runat="server">
                                          <asp:ListItem Value="-1">算法</asp:ListItem>
                                          <asp:ListItem>+</asp:ListItem>
                                          <asp:ListItem>-</asp:ListItem>
                                          <asp:ListItem>=</asp:ListItem>
                                      </asp:DropDownList>
                                    </td>
                                  <td>
                                      <asp:TextBox ID="shop_jgup2" runat="server"></asp:TextBox>
                                    </td>
                                   <td>
                                       <asp:DropDownList ID="shop_jgup3" runat="server">
                                           <asp:ListItem Value="-1">类型</asp:ListItem>
                                           <asp:ListItem>整数</asp:ListItem>
                                           <asp:ListItem>百份</asp:ListItem>
                                       </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="shop_jgup4" runat="server" CssClass="wuse12" 
                                            RepeatDirection="Horizontal">
                                            <asp:ListItem Selected="True">修改选中</asp:ListItem>
                                            <asp:ListItem>修改所有</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                    <td>
                                        <asp:Button ID="shop_jgupok" runat="server" CssClass="btn" Text="提交修改" />
                                    </td>
                                </tr>
                              </table></td>
                            </tr>
                          </table>
                          <table width="100%" border="0" cellspacing="5" cellpadding="0">
                            <tr>
                              <td height="20" align="center" valign="bottom" class="wuse12">
                              <asp:Label ID="web_page" runat="server"></asp:Label>
                             </td>
                            </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>