<%@ Page Language="C#" MasterPageFile="~/admin/admin_page.master" AutoEventWireup="true" CodeBehind="productbuyset_edit.aspx.cs" Inherits="YXShop.Web.admin.product.productbuyset_edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script src="../scripts/public.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    function datavalue(value)
    {
        if(value=="1"||value=="2"||value=="3"||value=="6")
        {
            $("ctl00_workspace_trDatavalue").style.display="";
        }
        else
        {
            $("ctl00_workspace_trDatavalue").style.display="none";
        }
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">用户购买必需项设置
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">添加或编辑用户购买必需项 
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
     <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
		    <td class="form_table_input_info">购买必需项名称：</td>
		    <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtNameTip" runat="server"></asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">购买必需项类型：
            </td>
		    <td>
                <asp:DropDownList ID="ddlType" runat="server" onchange ="datavalue(this.value);">
                    <asp:ListItem Value="1" Text="下拉列表" />
                    <asp:ListItem Value="2" Text="单选" />
                    <asp:ListItem Value="3" Text="多选" />
                    <asp:ListItem Value="4" Text="单行文本" />
                    <asp:ListItem Value="5" Text="多行文本" />
                </asp:DropDownList>
            </td>
		    <td>&nbsp;</td>
	    </tr>
        <tr>
		    <td class="form_table_input_info">排列顺序：
            </td>
		    <td>
                <asp:TextBox ID="txtSort" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtSortTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr id="trDatavalue" runat="server">
		    <td class="form_table_input_info">可选值列表：
            </td>
		    <td>
                <asp:TextBox ID="txtDataValue" runat="server" Width="200px" Height="60px" TextMode="MultiLine" MaxLength="2500"></asp:TextBox>
            </td>
		    <td>
                <div class="msgNormal">当您选择购买必需项类型下拉列表中的下拉列表、单选或多选的时候，请在此输入购买必需项的可选值，每行表示一个可选值</div>
            </td>
	    </tr>
    </table>
</asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    <asp:Button ID="butSave" runat="server" CssClass="inputbutton" Text="保  存" 
        onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" 
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" 
        onclick="butSave_Click"/>
    <asp:HyperLink ID="hlBackList" runat="server"  CssClass="inputbutton" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>