<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="Attribute.aspx.cs" Inherits="SocoShop.Web.Admin.Attribute" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Entity" %>
<%@ Import Namespace="SocoShop.Business" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script type="text/javascript" src="/Admin/Pop/lhgdialog_ex.js"></script>	
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>属性列表</div>	
<ul class="search">
    <li>属性组：<asp:DropDownList ID="AttributeClass" runat="server" onchange="ReadAttribute(this.value)"/></li>
</ul>
<ul class="listHead">
	<li style="width:5%">ID</li>
	<li style="width:15%; text-align:left;text-indent:8px;">属性</li>
	<li style="width:15%">属性组名</li>      
	<li style="width:15%">录入方式</li>     
	<li style="width:30%">可选值</li>       
	<li style="width:15%">管理</li>       
	<li style="width:5%">选择</li>        
</ul>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>	     
        	<ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
			<li style="width:5%"><%# Eval("ID") %></li>
			<li style="width:15%; text-align:left;text-indent:8px;"><%# Eval("Name") %></li>
			<li style="width:15%"><%# AttributeClassBLL.ReadAttributeClassCache(Convert.ToInt32(Eval("AttributeClassID"))).Name%></li>           
			<li style="width:15%"><%#EnumHelper.ReadEnumChineseName<InputType>(Convert.ToInt32(Eval("InputType"))) %></li>   
			<li style="width:30%"><%# Eval("InputValue") %>&nbsp;</li>           
			<li style="width:15%;">
			    <a href='?Action=Up&AttributeClassID=<%=attributeClassID %>&ID=<%#Eval("ID") %>'><img src="Style/Images/moveUp.gif" alt="上移" title="上移" /></a> 
			    <a href='?Action=Down&AttributeClassID=<%=attributeClassID %>&ID=<%#Eval("ID") %>'><img src="Style/Images/moveDown.gif" alt="下移" title="下移" /></a>
			    <a href='AttributeAdd.aspx?ID=<%# Eval("ID") %>'><img src="Style/Images/edit.gif" alt="修改" title="修改" /></a> 			    
			</li>
			<li style="width:5%"><input type="checkbox" name="SelectID" value="<%# Eval("ID") %>" /></li> 	        
		</ul>
        </ItemTemplate>
</asp:Repeater>
<div class="action">
        <input type="button"  value=" 添 加 " class="button"  onclick="window.location.href='AttributeAdd.aspx?AttributeClassID=<%=RequestHelper.GetQueryString<int>("AttributeClassID") %>'"/>&nbsp;<asp:Button CssClass="button" ID="DeleteButton" Text=" 删 除 " OnClientClick="return checkSelect()" runat="server"  OnClick="DeleteButton_Click"/>&nbsp;<input type="checkbox" name="All" onclick="selectAll(this)" />全选/取消
</div>
<script language="javascript" type="text/javascript">
    function ReadAttribute(value) {
        window.location.href = "Attribute.aspx?AttributeClassID=" + value;
    }
</script>
</asp:Content>
