<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Floor.aspx.cs" Inherits="XpShop.Manage.Floor" %>
<%@ Register TagPrefix="uc1" TagName="Commond" Src="Modules/Commond.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<title>橱窗管理</title> 
		<!--#include file="inc/head.inc"-->
		<script type="text/javascript" src="inc/jquery.easydrag.handler.beta2.js"></script>
		<script type="text/javascript" src="inc/multi_popup.js"></script>
		<link type="text/css" rel="stylesheet" href="style/multi_popup.css" />
		<script language="javascript">
			function CheckSort(obj)
			{
				document.getElementById(obj).value = document.getElementById(obj).value.replace(/\D/g,"");
				if(Number(document.getElementById(obj).value)<1 || document.getElementById(obj).value=="")
				{
					document.getElementById(obj).value = "";
				}
			}
		</script>
	</HEAD>
	<body>
					<form id="Form1" method="post" runat="server">
	    <uc1:Commond id="Commond1" runat="server"></uc1:Commond>
		<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="9" width="8" align="absMiddle">导航栏列表</div>
				<div class="sub_container_content">
						<div class="frame">
							<div class="frame_title">橱窗管理</div>
							<div class="frame_content">
								<table class="tableBorder" cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
									<tr>
										<td>
											<asp:Button ID="btnAddFloor" Runat="server" Text="添加橱窗" 
                                                onclick="btnAddFloor_Click"></asp:Button>
											<asp:Button ID="btnSaveSort" Runat="server" visible="false" Text="修改排序" 
                                                onclick="btnSaveSort_Click"></asp:Button>
										    <asp:DropDownList ID="ddlCat" runat="server" AutoPostBack="true" onselectedindexchanged="ddlCat_SelectedIndexChanged">
                                            </asp:DropDownList>
										</td>
									</tr>
									<tr>
										<td class="forumRowHighlight" height="23">
										    <asp:datagrid id="dgFloor" CellPadding="4" RepeatColumns="1" ondeletecommand="dgFloor_DeleteCommand" DataKeyField="floorID"
                                                    RepeatDirection="Horizontal" Width="100%" runat="server" ForeColor="#333333" BorderWidth="1" BorderColor="#c8dcf4" AutoGenerateColumns="false">
				                                    <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                                                    <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                                    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                    <ItemStyle CssClass="datagrid-item"></ItemStyle>
                                                    <HeaderStyle CssClass="datagrid-header"></HeaderStyle>
			                                    <Columns>
				                                    <asp:TemplateColumn HeaderText="序号">
					                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
					                                    <ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
					                                    <ItemTemplate>
						                                    <%#Container.ItemIndex+1%>
					                                    </ItemTemplate>
				                                    </asp:TemplateColumn>
				                                    <asp:TemplateColumn HeaderText="橱窗名称">
					                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
					                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
					                                    <ItemTemplate>
						                                    <%# DataBinder.Eval(Container.DataItem, "FloorName") %>
					                                    </ItemTemplate>
				                                    </asp:TemplateColumn>
				                                    <asp:TemplateColumn HeaderText="状态">
					                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
					                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
					                                    <ItemTemplate>
						                                    <%# DataBinder.Eval(Container.DataItem, "Status").ToString()=="1"?"显示":"不显示" %>
					                                    </ItemTemplate>
				                                    </asp:TemplateColumn>
				                                    <asp:TemplateColumn HeaderText="排序">
					                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
					                                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
					                                    <ItemTemplate>
						                                    <%# DataBinder.Eval(Container.DataItem, "Sort").ToString() %>
					                                    </ItemTemplate>
				                                    </asp:TemplateColumn>
				                                    <asp:TemplateColumn HeaderText="修改">
					                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
					                                    <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
					                                    <ItemTemplate>
						                                    <a href='FloorAdd.aspx?fid=<%# DataBinder.Eval(Container.DataItem, "FloorID") %>'>
							                                    修改</a>
					                                    </ItemTemplate>
				                                    </asp:TemplateColumn>
				                                    <asp:ButtonColumn HeaderText="删除" Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
					                                    CommandName="Delete">
					                                    <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
				                                    </asp:ButtonColumn>
			                                    </Columns>
			                                    <PagerStyle Mode="NumericPages"></PagerStyle>
		                                    </asp:datagrid>
										</td>
									</tr>
								</table>
							</div>
						</div>
				</div>
			</div>
		</div>
					</form>
				</body>
</HTML>
