<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Page language="c#" Codebehind="NewTGProductAdd.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.NewTGProductAdd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
	    <!--#include file="inc/head.inc"-->
		<title>NewTGProductAdd</title>
        <script type="text/javascript" src="inc/PageBar.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" />
        <script type="text/javascript" src="inc/calendar.js"></script>
        <script type="text/javascript" src="inc/NewProductAdd.js"></script>
        <script type="text/javascript">var homeurl = 'NewTGProductAdd.aspx';</script>
        <style type="text/css">
		    .c1{ width:5%}
		    .c2{ width:30%}
		    .c3{ width:20%}
		    .c4{ width:15%}
		    .c5{ width:15%}
		    .c6{ width:15%}
		    
		    .c7{ width:6%}
		    .c8{ width:30%}
		    .c9{ width:14%}
		    .c10{ width:10%}
		    .c11{ width:10%}
		    .c12{ width:15%}
		    .c13{ width:13%}
			.c14{ width:2%}
		</style>
	</head>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />商品添加</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title"><asp:Label ID="lbTitle" Runat="server">团购商品添加</asp:Label></div>
		        <div class="frame_content">
					<table class="ptable" cellspacing="0" cellpadding="0">
                        <tr style="display:none;">
							<th class="tl">开始时间：</th>
							<td class="tr"><asp:textbox id="txtDateFrom" runat="server" Width="130px"></asp:textbox><font color="red">*</font></td>
						</tr>
						<tr style="display:none;">
							<th class="tl">结束时间：</th>
							<td class="tr"><asp:textbox id="txtDateTo" runat="server" Width="130px"></asp:textbox><font color="red">*</font></td>
						</tr>
						<tr>
							<th class="tl">期数：</th>
							<td class="tr"><asp:DropDownList id="ddlNewNumber" runat="server"></asp:DropDownList><font color="red">*</font></td>
						</tr>
                        <tr>
							<th class="tl">允许参与会员等级：</th>
							<td class="tr"><asp:CheckBoxList ID="chkListMemberGroup" runat="server" RepeatDirection="Horizontal" nane="chkListMemberGroup"></asp:CheckBoxList></td>
						</tr>
                        <tr>
							<th class="tl">商品选择：</th>
							<td class="tr">
                                <div style="float:left;">
                                    <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:98%;">
                                            <table border="1" cellspacing="0" bordercolor="#000000" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
                                                <tr>
                                                    <th class="c7 ccenter">操作</th>
                                                    <th class="c8 ccenter">商品名称</th>
                                                    <th class="c9 ccenter">商品编号</th>
                                                    <th class="c10 ccenter">团购价</th>
                                                    <th class="c11 ccenter">最少团购数量</th>
                                                    <th class="c12 ccenter">开始时间</th>
                                                    <th class="c13 ccenter">截止时间</th>
                                                    <th class="c14"></th>
                                                </tr>
                                            </table>
                                        </div>
                                        <div class="sub_container_listhead" style="padding:0px;overflow-y:scroll;height:150px;width:98%;">
                                            <table id="listresult">
                                                <tr id="resulthead" style="display:none;">
                                                    <td class="c7 ccenter"></td>
                                                    <td class="c8"></td>
                                                    <td class="c9 ccenter"></td>
                                                    <td class="c10 ccenter"></td>
                                                    <td class="c11 ccenter"></td>
                                                    <td class="c12 ccenter"></td>
                                                    <td class="c13"></td>
                                                    <td class="c14"></td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </td>
						</tr>
						<tr>
							<th class="tl"></th>
							<td class="tr">	<asp:button id="btnSave" OnClick="btnSave_Click" runat="server" Text="保存" CssClass="inputbtn"></asp:button>
							<asp:button id="btnCancel" OnClick="btnCancel_Click" runat="server" Text="取消" CausesValidation="False" CssClass="inputbtn"></asp:button></td>
						</tr>
					</table>
		        </div>
	        </div>
            <%--弹出来的搜索框--%>
            <div id="popupContact" class="popupContact">
                <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:0px; 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;">
                            <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">
                                    <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 class="sub_container_listhead" style="padding:0px;overflow-x:hidden;overflow-y:scroll; height:350px;">
                            <table id="datas" cellspacing="0" cellpadding="0" class="llist">
                                <tr id="template" style="display:none;">
                                    <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="pnames" name="pnames" value="" /><%--商品名称--%>
                            <input type="hidden" id="pnos" name="pnos" value="" /><%--商品编号--%>
                            <input type="hidden" id="bidprices" name="bidprices" value="" /><%--拍卖价--%>
                            <input type="hidden" id="ranges" name="ranges" value="" /><%--加价幅度--%>
                            <input type="hidden" id="starttimes" name="starttimes" value="" /><%--开始日期--%>
                            <input type="hidden" id="endtimes" name="endtimes" value="" /><%--截止日期--%>
                        </div>
                    </div>
                    <div style="clear:both;"></div>
                </div>
            </div>
            <div id="backgroundPopup" class="backgroundPopup"></div>
            <%--弹出来的搜索框--%>
		</form>
		</div>
		</div>
		</div>
	</body>
</html>
