<%@ Page Language="c#" Codebehind="BindingAdd.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.BindingAdd" %>
<!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>
		<!--#include file="../inc/head2.inc"-->
	    <title>BindingAdd</title>
		<script type="text/javascript" src="../inc/commond.js"></script>
	    <script type="text/javascript" src="inc/PageBar.js"></script>
		<script type="text/javascript" src="inc/bindingadd.function.js"></script>
		<script type="text/javascript" src="inc/bindingadd.ready.js"></script>
		<script type="text/javascript" src="../inc/multi_popup.js"></script>
		<script type="text/javascript" src="inc/jquery.easydrag.handler.beta2.js"></script>
		<link type="text/css" rel="stylesheet" href="../style/multi_popup.css" />
	    <style type="text/css">
		    .c1{ width:5%}
		    .c2{ width:30%}
		    .c3{ width:20%}
		    .c4{ width:15%}
		    .c5{ width:15%}
		    .c6{ width:15%}
		    
		    .c7{ width:5%}
		    .c8{ width:30%}
		    .c9{ width:20%}
		    .c10{ width:10%}
		    .c11{ width:15%}
		    .c12{ width:20%}
		</style>
		<script type="text/javascript">
		    var packageInfo = '<%=packageInfo%>';
		</script>

	</head>
	<body>
	<form id="Form1" method="post" runat="server">
	    <div class="container">
		    <div class="sub_container">
	            <div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img alt="" src="../images/admin_title.jpg" height="9px" width="8px" align="absmiddle" /><a href='Binding.aspx?ProductType=Normal'>捆绑商品管理</a><img alt="" src="../images/admin_title.jpg" height="9px" width="8px" align="absmiddle" />捆绑商品内容</div>
                <div class="sub_container_content" id="sub_container">
                    <div class="frame">
                        <div class="frame_content">
                            <table cellSpacing="0" cellPadding="0" class="ptable">
                                <tr>
                                    <th class="tl">捆绑商品名称：</th>
                                    <td class="tr"><asp:TextBox ID="txtProductName" runat="server" Width="200px" Height="18px" style="line-height:18px;"></asp:TextBox> <font color="#FF3300">*</font></td>
                                </tr>
                             	<tr>
									<th class="tl">商品编码：</th>
									<td class="tr"><asp:textbox ID="txtProductNo" runat="server" Width="80pt" Height="18px" style="line-height:18px;"></asp:textbox>
										<asp:CheckBox id="cbxAutoCreate" runat="server" Text="自动生成"></asp:CheckBox><span class="xp-need">*</span></td>
								</tr>
                                <tr>
                                    <th class="tl">库存：</th>
                                    <td class="tr">
                                        <asp:TextBox ID="txtStorage" runat="server" Width="150px" Height="18px" Style="line-height: 18px;"
                                        onkeyup="value=value.replace(/[^(\d|\)]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^(\d|\)]/g,''))"></asp:TextBox> <font color="#FF3300">*</font>
                                    </td>
                                </tr>
                                <tr>
                                    <th class="tl">是否上架销售：</th>
                                    <td class="tr">
                                    <asp:RadioButton ID="rbtnIsForsaleNo" runat="server" Text="是" Checked="true" GroupName="IsForsale" /><asp:RadioButton
                                        ID="rbtnIsForsaleOff" runat="server" Text="否" GroupName="IsForsale" />
                                    </td>
                                </tr>
                                <tr>
                                    <th class="tl">重量：</th>
                                    <td class="tr">
                                        <asp:TextBox ID="txtWeight" runat="server" Width="150px" Height="18px" style="line-height:18px;" onkeyup="value=value.replace(/[^(\d|\.)]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^(\d|\.)]/g,''))"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th class="tl">捆绑原价格：</th>
                                    <td class="tr"><asp:Label ID="lblMarketPrice" runat="server" style="line-height:18px;"></asp:Label></td>
                                </tr>
                                <tr>
                                    <th class="tl">捆绑销售价：</th>
                                    <td class="tr"><asp:TextBox ID="txtMemberPrice" runat="server" Width="150px" Height="18px" style="line-height:18px;" onkeyup="value=value.replace(/[^(\d|\.)]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^(\d|\.)]/g,''))"></asp:TextBox> <font color="#FF3300">*</font></td>
                                </tr>
                                <tr>
                                    <th class="tl">购买最多可使用积分：</th>
                                    <td class="tr"><asp:TextBox ID="txtUseScore" runat="server" Width="150px" Height="18px" style="line-height:18px;">0</asp:TextBox> <font color="#FF3300">*</font></td>
                                </tr>
                                <tr>
                                    <th class="tl">商品选择：</th>
                                    <td class="tr">
                                        <div style="border:solid 1px #CCCCCC;margin:10px;width:94%;border-right:solid 2px #CCCCCC;border-bottom:solid 2px #CCCCCC;padding:5px;">
                                        
                                            <div class="sub_container_operation">
	                                            <table width="100%">
	                                                <tr>
		                                                <td>
			                                                <input type="button" id="btnAdd" name="btnDelete" value="添加" class="inputbtn" />
			                                                <input type="button" id="btnClear" name="btnClear" value="清空" class="inputbtn" />
			                                                &nbsp;&nbsp;&nbsp;&nbsp;已选择商品数量:<span id="count">0</span>
		                                                </td>
	                                                </tr>
	                                            </table>
	                                        </div>                                            
                                            
                                            <div class="sub_container_listhead" style="padding:0px;width:100%;">
                                                <table border="1" cellspacing="0" bordercolor="#000000" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
                                                    <tr>
                                                        <th width="5%">操作</th>
                                                        <th width="30%">商品名称</th>
                                                        <th width="20%">商品代码</th>
                                                        <th width="20%">会员价格</th>
                                                        <th width="10%">捆绑数量</th>
                                                        <th width="15%"></th>
                                                    </tr>
                                                </table>
                                            </div>
                                            <div class="sub_container_listhead" style="padding:0px;overflow-y:scroll;height:93px;">
                                                <table id="listresult">
                                                    <tr id="resulthead">
                                                        <td class="c7 ccenter"></td>
                                                        <td class="c8"></td>
                                                        <td class="c9"></td>
                                                        <td class="c12"></td>
                                                        <td class="c10"></td>
                                                        <td class="c11"></td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th class="tl"></th>
                                    <td class="tr">
                                        <asp:Button ID="btnSave" OnClick="btnSave_Click" runat="server" Text="完 成" CssClass="inputbtn" />
                                        <input type="button" id="test" value="测试" style="display:none;" />
                                    </td>
                                </tr>
                            </table>
                            
                        </div>
                    </div>
                </div>
                
		    </div>
		</div>
		
		
		
		
		<%--弹出来的搜索框--%>
		<div id="popupContact" class="popupContact" style="z-index:2; width:800px;">
            <div id="popupHead" class="popupHead">
                <div class="popupTitle">高级搜索</div>
                <div class="popupClose" id="popupContactClose" title="关闭">关闭</div>
                <div style="clear:both;"></div>
            </div>
            
            <div style="position:relative; padding:5px; text-align:center;">
                <div id="content" style="width:98%; position:relative; margin:auto;">
                    <div>
                        <select id="sel_searchType" name="sel_searchType">
                            <option value="1">商品编号</option>
                            <option value="2">商品名称</option>
                            <option value="3">商品关键词</option>
                        </select>
                        <input type="text" id="txtKeyword" name="txtKeyword" />
                        <input type="button" id="btnSearch" name="btnSearch" value="搜索" class="inputbtn" />
                        <a href="#" id="showadvsearch">高级搜索</a>
                    </div>
                    <div id="advsearch" style="display:none; position:absolute; top:30px; background:#fff;">
                        <select id="sel_category" name="sel_category" size="10" multiple="multiple">
                            <%=BindCategories() %>
                        </select>
                        <select id="sel_brand" name="sel_brand" size="10" multiple="multiple">
                            <%=BindBrand("0")%>
                        </select>
                    </div>
                    <div class="sub_container_listhead" style="padding:0px;">
                        <table cellspacing="0" cellpadding="0" class="llist">
                            <tr id="listhead"><%--id="listhead"不能少--%>
                                <th class="c1"><input type="checkbox" id="chkAll" name="chkAll" /></th>
                                <th class="c2">商品名称</th>
                                <th class="c3">商品代码</th>
                                <th class="c4">商品类别</th>
                                <th class="c5">商品品牌</th>
                                <th class="c6">会员价格</th>         
                            </tr>
                        </table>           
                    </div>
                    <div style="padding:0px;overflow-x:hidden;overflow-y:scroll;" id="datacontainer">
	                    <table id="datas" cellspacing="0" cellpadding="0" class="llist">
		                    <tr id="template" style="display:none;"><%--id="template"不能少--%>
			                    <td class="c1 ccenter" id="checkbox"></td>
			                    <td class="c2" id="Name"></td>
			                    <td class="c3" id="ProductNo"></td>
			                    <td class="c4 ccenter" id="Category"></td>
			                    <td class="c5 ccenter" id="Brand"></td>
			                    <td class="c6 ccenter" id="MemberPrice"></td>
		                    </tr>
	                    </table>
                    </div>
                    <div class="sub_container_page" id="pageDataList1_Pager" style="position:relative;">
                        <!-- 翻页-->
                        <!-- 翻页结束-->
                    </div>
                    <div style=" text-align:center;">
                        <input type="button" id="btnSubmit" value="确认" class="inputbtn" />
                        <input type="hidden" id="PIDs" name="PIDs" value="" /><%--商品的ID--%>
                        <input type="hidden" id="pidsums" name="pidsums" value="" /><%--每件商品的数量--%>
                        <input type="hidden" id="uprices" name="uprices" value="" /><%--商品单价--%>
                        <input type="hidden" id="pnames" name="pnames" value="" /><%--商品名称--%>
                        <input type="hidden" id="pnos" name="pnos" value="" /><%--商品编号--%>
                        <input type="hidden" id="images" name="images" value="" /><%--商品图片--%>
                    </div>
	            </div>
                <div style="clear:both;"></div>
            </div>
        </div>
        <div id="backgroundPopup" class="backgroundPopup"></div>
		<%--弹出来的搜索框--%>
    </form>
	</body>
</html>
