<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="AttributeAdd.aspx.cs" Inherits="SocoShop.Web.Admin.AttributeAdd" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<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=""/>属性<%=ShopCommon.GetAddUpdate()%></div>
<div class="add">	
	<ul>
		<li class="left">属性名称：</li>
		<li class="right"><SkyCES:TextBox ID="Name" CssClass="input" runat="server" Width="400px" /></li>
	</ul>
	<ul>
		<li class="left">属性组：</li>
		<li class="right"><asp:DropDownList ID="AttributeClassID" runat="server" /></li>
	</ul>
	<ul>
		<li class="left">录入方式：</li>
		<li class="right"><asp:RadioButtonList ID="InputType" RepeatDirection="Horizontal" runat="server" onclick="ShowValue()"></asp:RadioButtonList></li>
	</ul>
	<ul id="InputValueDiv" >
		<li class="left">可选值列表<br />（值之间","隔开）：</li>
		<li class="right"><SkyCES:TextBox ID="InputValue" CssClass="input" runat="server" Width="400px" TextMode="MultiLine" Height="100px" /></li>
	</ul>
</div>
<div class="action">
    <asp:Button CssClass="button" ID="SubmitButton" Text=" 确 定 " runat="server"  OnClick="SubmitButton_Click" />&nbsp;<input type="button" class="button" value=" 列 表 " onclick="window.location.href='Attribute.aspx?AttributeClassID=<%=tempAttributeClassID%>'" />
</div>
<script language="javascript" type="text/javascript">
function ShowValue(){
    var inputType=getRadioValue(os("name","ctl00$ContentPlaceHolder$InputType"));
    var obj=o("InputValueDiv");
    if(parseInt(inputType)>=3){        
        obj.style.display="";
    }
    else{
        obj.style.display="none";
    }
}
ShowValue();
</script>
</asp:Content>
