<%@ Control Language="c#" AutoEventWireup="false" Codebehind="SearchPdts.ascx.cs" Inherits="XpShop.Manage.Modules.SearchPdts" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<script type="text/javascript">var adminUrl = '/<%=ConfigurationSettings.AppSettings["ShopFolder"] %><%=ConfigurationSettings.AppSettings["AdminFolder"] %>/';</script>
<script type="text/javascript" src="/<%=ConfigurationSettings.AppSettings["ShopFolder"] %><%=ConfigurationSettings.AppSettings["AdminFolder"] %>/inc/SearchPdts.js"></script>
<style type="text/css">
    .td1 {width:10%;}
    .td2 {width:40%;}
    .td3 {width:30%;}
    .td4 {width:10%;}
    .td5 {width:10%;}
</style>
<div id="popupContact" class="popupContact" style="z-index:2; overflow:hidden;">
    <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 id="advContent" class="advContent" style="z-index:2;">
                <table class="sptable" cellspacing="0" cellpadding="0" style="width:400px; margin:0px auto; display:none;" id="searchDetails">
                    <tr>
                        <td>商品类别</td>
                        <td>品牌</td>
                        <td style="display:none">标签</td>
                    </tr>
                    <tr>
                        <td>
                            <select id="sel_category" name="sel_category" size="10" multiple="multiple"><%=BindCategories() %></select>
                        </td>
                        <td>
                            <select id="sel_brand" name="sel_brand" size="10" multiple="multiple"><%=BindBrand("0")%></select>
                        </td>
                        <td style="display:none">
                            <select id="sel_tag" name="sel_tag" size="10" >
                                <option value="0">所有标签</option>
                                <option value="1">特价专区</option>
                                <option value="2">热卖商品</option>
                                <option value="3">特别推荐</option>
                                <option value="4">清仓商品</option>
                                <option value="5">疯狂抢购</option>
                                <option value="6">新品上架</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">价格区间：<input type="text" id="txtLowPrice" name="txtLowPrice" size="10" />≤商品价格≤<input type="text" id="txtHighPrice" name="txtHighPrice" size="10" /></td>
                    </tr>
                    <tr>
                        <td colspan="3">库存区间：<input type="text" id="txtLowStorage" name="txtLowStorage" size="10" />≤商品库存≤<input type="text" id="txtHighStorage" name="txtHighStorage" size="10" /></td>
                    </tr>
                    <tr>
                        <td colspan="3">添加时间：<input type="text" id="txtLowDate" name="txtLowDate" size="10" />≤添加时间≤<input type="text" id="txtHighDate" name="txtHighDate" size="10" /></td>
                    </tr>
                    <tr>
                         <td colspan="3">发布状态：<input type="radio" name="rdIsForSale" value="2" />不限制<input type="radio" name="rdIsForSale" value="1" checked="checked"/>发布<input type="radio" name="rdIsForSale" value="0" />未发布</td>
                     </tr>
                    <tr>
                         <td colspan="3">审核状态：<input type="radio" name="rdStatus" value="2" />不限制<input type="radio" name="rdStatus" value="1" checked="checked"/>审核<input type="radio" name="rdStatus" value="0" />未审核<input type="radio" name="rdStatus" value="-1" />审核未通过</td>
                     </tr>
                </table>
                <table class="sptable" cellspacing="0" cellpadding="0" style=" width:400px; margin:0px auto;">
                    <tr>
                        <td class="tr">
                            <select id="sel_searchType" name="sel_searchType">
                                <option value="0">搜索内容</option>
                                <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" />
                            <input type="button" id="btnSearchAdv" value="高级搜索" class="inputbtn"/>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="pdts_list" style="position:relative; top:35px;">
                <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="td1"><input type="checkbox" id="chk_search" name="chk_search" /></th>
                            <th class="td2">商品名称</th>
                            <th class="td3">商品代码</th>
                            <th class="td4">商品品牌</th>
                            <th class="td5">会员价格</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="td1 ccenter checkbox"></td>
	                        <td class="td2 Name"></td>
	                        <td class="td3 ProductNo"></td>
	                        <td class="td4 ccenter Brand"></td>
	                        <td class="td5 MemberPrice"></td>
	                        <td class="hide Storage"></td>
	                        <td class="hide CategoryID"></td>
                        </tr>
                    </table>
                </div>
            </div>
            
            <div class="sub_container_page" id="pageDataList1_Pager" style="position:relative; margin-top:35px;">
                <!-- 翻页-->
                <!-- 翻页结束-->
            </div>
            <div id="sub_search_save" style=" text-align:center; position:relative;"><input type="button" id="btnSelPdts" value="确认" class="inputbtn" style="display:none;" /></div>
        </div>
        <div style="clear:both;"></div>
    </div>
</div>
<div id="backgroundPopup" class="backgroundPopup"></div>
