<%@ Page language="c#" Codebehind="MyProduct.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.MyProduct" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<title>Product</title>
	    <!--#include file="../inc/head2.inc"-->
		<script type="text/javascript" src="../../inc/overlib.js"></script>
		<script type="text/javascript" src="../inc/PageBar.js"></script>
		<script type="text/javascript" src="../inc/MyProduct.js"></script>
		<script type="text/javascript" src="../inc/commond.js"></script>
		<script type="text/javascript" src="../inc/ui.datepicker.cn.js"></script>
		<link type="text/css" rel="stylesheet" href="../inc/ui.datepicker.css" />
		<style type="text/css">
		    .c1{width:4%;}
            .c2{width:22%;}
            .c3{width:8%;margin:0px;padding:0px;}
            .c4{width:8%;margin:0px;padding:0px;}
            .c5{width:14%;}
            .c6{width:5%;}
            .c7{width:4%;}
            .c8{width:7%;margin:0px;padding:0px;}
            .c9{width:4%;}
            .c10{width:4%;}
            .c11{width:4%;}
            .c12{width:4%;}
            .c13{width:4%;}
            .c14{width:6%;}
            
		</style>
		<script type="text/javascript">
		    var extend = '<%=config.html %>';
		    var baseUrl="/<%=ShopFolder%>products/product-";
		    var baseUrl2="/<%=ShopFolder%>Preview.aspx?pid="; 

		    var catID = "<%=Request.QueryString["CatID"] %>";
		    var CanExportProduct="<%=CanExportProduct %>";
		</script>
	</HEAD>
	<body>
		<div id="overDiv" style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></div>
		<iframe id="frmModify" style="width:100%;height:0px;display:none" scrolling="no"></iframe>
		<input type="hidden" id="frmHeight" /><%--记录窗口高度--%>
	    <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>
		<form id="Form1" method="post" runat="server">
		<div class="sub_container_operation">
		    <table width="100%">
		        <tr>
			        <td>
				        <input type="button" id="btnDelete" name="btnDelete" value="删除商品" class="inputbtn" />
				        <input type="button" id="btnSavePrice" name="btnSavePrice" value="修改价格" class="inputbtn" style="display:none;" />
				        <input type="button" id="btnSaveSort" name="btnSaveSort" value="修改排序" class="inputbtn" style="display:none;" /><div id="tip" style="float:left;"></div>
				        <input type="button" id="btnReuse" name="btnReuse" value="还原" style="display:none" class="inputbtn" />
						<asp:Button id="btnOutput" OnClick="btnOutput_Click" runat="server" Text="导出勾选商品" CssClass="inputbtn" style="display:none;"></asp:Button>
						<asp:Button id="btnOutputAll" OnClick="btnOutputAll_Click" runat="server" Text="导出筛选商品" CssClass="inputbtn" style="display:none;"></asp:Button>
			        </td>
			        <td align="left" style="vertical-align:top;">
				        <div style="position:relative; width:365px;_width:373px ;width:355px\9;">
				            <div id="advContent" class="advContent">
				                <div id="searchDetails" style="display:none;">
				                    <div>
				                        <table>
				                            <tr>
				                                <td>商品类别</td>
				                                <td>品牌</td>
				                                <td>标签</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>
				                                    <select id="sel_tag" name="sel_tag" size="10" multiple="multiple">
                                                        <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>
				                        </table>
                                    </div>
                                    <div>价格区间：<input type="text" id="txtLowPrice" name="txtLowPrice" size="10" />≤商品价格≤<input type="text" id="txtHighPrice" name="txtHighPrice" size="10" /></div>
                                    <div>库存区间：<input type="text" id="txtLowStorage" name="txtLowStorage" size="10" />≤商品库存≤<input type="text" id="txtHighStorage" name="txtHighStorage" size="10" /></div>
                                    <div>添加时间：<input type="text" id="txtLowDate" name="txtLowDate" size="10" />≤添加时间≤<input type="text" id="txtHighDate" name="txtHighDate" size="10" /></div>
                                    <div>发布状态：<input type="radio" name="rdStatus" value="2" checked="checked" />不限制<input type="radio" name="rdStatus" value="1" />发布<input type="radio" name="rdStatus" value="0" />未发布</div>
				                </div>
				                <div class="clear">
				                    <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"/>    
				                </div>
				            </div>
				        </div>
				    </td>
		        </tr>
		    </table>
		</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="c7 ThumbnailImg">缩图</th>
	                <th class="c3">市场价格</th>
	                <th class="c4">会员价格</th>
	                <th class="c5">商品代码</th>
	                <th class="c6">库存量</th>
	                <th class="c8">排序</th>
	                <th class="c15 Status">审核</th>
	                <th class="c9 IsForSale">发布</th>
	                <th class="c13 Modify">修改</th>
	                <th class="c14">删除</th>	                
	            </tr>
            </table>           
        </div>
		<div class="sub_container_content" style="padding:0px;">
			<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="c7 ccenter" id="ThumbnailImg"></td>
					<td class="c3 ccenter" id="MarketPrice"><input type="text" class="inputstyle" size="9" maxlength="10"  disabled=disabled/></td>
					<td class="c4 ccenter" id="MemberPrice"><input type="text" class="inputstyle" size="9" maxlength="10"  disabled=disabled /></td>
					<td class="c5" id="ProductNo"></td>
					<td class="c6" id="Storage"></td>
					<td class="c8 ccenter" id="Sort"><input type="text" class="inputstyle" size="9" maxlength="10"/></td>
					<td class="c15 ccenter" id="Status"><select class="sedit" style="cursor:pointer;"><option value="0">未审核</option><option value="1">已审核</option><option value="-1">审核未通过</option></select></td>
					<td class="c9 ccenter" id="IsForSale"></td>
					<td class="c13 ccenter" id="Modify"></td>
					<td class="c14 ccenter" id="Delete"></td>					
				</tr>
			</table>
		</div>
		<div class="sub_container_page" id="pageDataList1_Pager">
	        <!-- 翻页-->
	        <!-- 翻页结束-->
		</div>
		</form>
		</div>
		</div>
	</body>
</HTML>
