<%@ Page language="c#" Codebehind="TopSaleSet.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.TopSaleSet" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>TopSaleSet</title>
	    <!--#include file="../inc/head2.inc"-->
	    <script type="text/javascript" src="../inc/commond.js"></script>
	    <script type="text/javascript" src="../inc/jquery.easydrag.handler.beta2.js"></script>
	    <script type="text/javascript" src="../inc/multi_popup.js"></script>
		<script type="text/javascript" src="../inc/PageBar.js"></script>
        <script type="text/javascript" src="../inc/TopSaleSet.js"></script>
	    <link type="text/css" rel="stylesheet" href="../style/multi_popup.css" />
	    <style type="text/css">
	        .c1{display:none;}
            .c2{width:40%;}
            .c3{width:30%;margin:0px;padding:0px;}
            .c4{width:10%;margin:0px;padding:0px;}
            .c5{width:10%;}
            .c6{width:10%;}
            .c8{width:5%;}
            .exist .c1{display:none;}
            .exist .c2{width:35%;}
            .exist .c3{width:25%;margin:0px;padding:0px;}
            .exist .c4{width:10%;margin:0px;padding:0px;}
            .exist .c5{width:10%;}
            .exist .c6{width:10%;}
            .exist .c7{width:10%;}
            
            .sc1 {width:10%;}
            .sc2 {width:30%;}
            .sc3 {width:30%;}
            .sc4 {width:20%;}
            .sc5 {width:10%;}
            .hide{display:none;}
	    </style>
	</head>
	<body>
        <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="../default.aspx" target="_blank">首页</a><img src="../images/admin_title.jpg" height=9px width=8px align="absmiddle" />商品管理<img src="../images/admin_title.jpg" height=9px width=8px align="absmiddle" />销售排行设置</div>
		
		<div class="sub_container_operation">
		    <table width="100%">
		        <tr>
			        <td align="left">
				        分类：<%=GetCategories()%>
				        <input type="button" id="btnNext" value="添加商品"  class="inputbtn" />
	                    <input type="button" id="btnSave" value="保存"  class="inputbtn" />
	                    <input type="hidden" id="PIDs" name="PIDs" value="" /><%--记录页面中存在的商品ID--%>
				    </td>
		        </tr>
		    </table>
		</div>
		<div id="selected_container_listhead" class="sub_container_listhead" style="padding:0px;">
            <table cellSpacing="0" cellPadding="0" class="llist">
                <tr>
                    <th colspan="8" style="text-align:left;">默认排行</th>
                </tr>
                <tr id="selected_listhead">
	                <th class="c1"><input type="checkbox" id="chk_selected" name="chk_selected" /></th>
	                <th class="c2">商品名称</th>
	                <th class="c3">商品代码</th>
	                <th class="c4">销售数量</th>
	                <th class="c5">市场价格</th>
	                <th class="c6">会员价格</th>
	                <th class="c7 hide">删除</th>
	            </tr>
            </table>
        </div>
		<div id="selected_container"  style="padding:0px;">
			<table id="selected_datas" cellspacing="0" cellpadding="0" class="dataContainer">
				<tr id="selected_template" style="display:none;"><%--id="template"不能少--%>
					<td class="c1 ccenter checkbox"></td>
					<td class="c2 Name"></td>
					<td class="c3 ProductNo"></td>
					<td class="c4 ccenter SaleNum"></td>
					<td class="c5 ccenter MarketPrice"></td>
					<td class="c6 ccenter MemberPrice"></td>
					<td class="c7 ccenter Delete hide"></td>
				</tr>
			</table>
		</div>
		<br />
		<div id="custom_container_head" class="sub_container_listhead" style="padding:0px;">
            <table cellSpacing="0" cellPadding="0" class="llist exist">
                <tr>
                    <th colspan="8" style="text-align:left;">手动设置的排行商品</th>
                </tr>
                <tr id="custom_list_head">
	                <th class="c1"><input type="checkbox" id="Checkbox1" name="chk_selected" /></th>
	                <th class="c8">排序</th>
	                <th class="c2">商品名称</th>
	                <th class="c3">商品代码</th>
	                <th class="c4">销售数量</th>
	                <th class="c5">市场价格</th>
	                <th class="c6">会员价格</th>
	                <th class="c7">删除</th>
	            </tr>
            </table>
        </div>
		<div id="custom_container" class="sub_container_content" style="padding:0px;">
			<table id="custom_data" cellspacing="0" cellpadding="0" class="dataContainer exist">
				<tr id="custom_template" style="display:none;">
					<td class="c1 ccenter checkbox"></td>
					<td class="c8 Sort"></td>
					<td class="c2 Name"></td>
					<td class="c3 ProductNo"></td>
					<td class="c4 ccenter SaleNum"></td>
					<td class="c5 ccenter MarketPrice"></td>
					<td class="c6 ccenter MemberPrice"></td>
					<td class="c7 ccenter Delete hide"></td>
				</tr>
			</table>
		</div>
		
		</div>
		</div>
		<div id="popupContact" class="popupContact" style="z-index:2;">
            <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 id="showadvsearch" class="hand">显示品牌</a>
                    </div>
                    <div id="advsearch" style="display:none; position:absolute; top:30px; background:#fff;">
                        <select id="sel_brand" name="sel_brand" size="10" multiple="multiple"></select>
                    </div>
                    <div id="pop_listhead" class="sub_container_listhead" style="padding:0px;">
                        <table cellspacing="0" cellpadding="0" class="llist">
                            <tr id="listhead"><%--id="listhead"不能少--%>
                                <th class="sc1"><input type="checkbox" id="chk_search" name="chk_search" /></th>
                                <th class="sc2">商品名称</th>
                                <th class="sc3">商品代码</th>
                                <th class="sc4">商品品牌</th>
                                <th class="sc4">会员价格</th>         
                            </tr>
                        </table>
                    </div>
                    <div id="datacontainer" style="padding:0px;overflow-x:hidden;overflow-y:scroll;">
	                    <table id="datas" cellspacing="0" cellpadding="0">
		                    <tr id="template" style="display:none;"><%--id="template"不能少--%>
			                    <td class="sc1 ccenter checkbox"></td>
			                    <td class="sc2 Name"></td>
			                    <td class="sc3 ProductNo"></td>
			                    <td class="sc4 ccenter Brand"></td>
			                    <td class="sc5 MemberPrice"></td>
			                    <td class="hide MarketPrice"></td>
			                    <td class="hide Storage"></td>
			                    <td class="hide CategoryID"></td>
		                    </tr>
	                    </table>
                    </div>
                    <div class="sub_container_page" id="pageDataList1_Pager" style="position:relative;">
                        <!-- 翻页-->
                        <!-- 翻页结束-->
                    </div>
                    <div id="divsave" style=" text-align:center; position:relative;"><input type="button" id="btnSubmit" value="确认" class="inputbtn" /></div>
	            </div>
                <div style="clear:both;"></div>
            </div>
        </div>
        <div id="backgroundPopup" class="backgroundPopup"></div>
	</body>
</html>