<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../Global.Master" CodeBehind="Default.aspx.cs" Inherits="Web.AdminManager.Shop.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/Shop.Default.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="display:none" class="uattrTypeHTML"><%=CommonLib.Helper.StringFromEnum(typeof(Web.Lib.Shop.UserAttrType),"<option value=\"{1}\" {2}>{0}</option>",0,"selected") %></div>
    <div id="UI_Edit" runat="server" visible="false">
        <form action="" method="post" class="ui-form ui-form-vertical">
            <fieldset>
                <legend>普通商品模版</legend>
                <div class="ui-form-group">
                    <label class="ui-form-label">模版名称</label><div class="ui-form-ctrls">
                        <input type="text" name="TempName" id="TempName" class="ui-input-small" value="<%=mst.TempName %>" />
                        <span class="TempName ui-help-inline">商品模版名称</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">商品属性</label><div class="ui-form-ctrls" id="ProAttr">
                        <table class="ProAttrContent ui-table ui-table-bordered" style="width:400px;">
                            <thead>
                            <tr><td colspan="3"><input class="ui-btn ui-btn-primary ui-btn-small" id="addAttr" type="button" value="添加属性" /></td></tr>
                            <tr>
                                <th>名称</th><th>值</th><th>操作</th>
                            </tr>
                            </thead>
                             <%=ProAttrHTMLString%>
                        </table>
                        <span class="ProAttr ui-help-inline"></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">用户选择</label>
                    <div id="UserAttr">
                        <table class="userattrContent ui-table ui-table-bordered" style="width:400px;">
                            <thead>
                            <tr><td colspan="4"><input class="ui-btn ui-btn-primary ui-btn-small" id="addUserAttr" type="button" value="添加属性" /><span class="UserAttr ui-help-inline">多属性值用“|”隔开</span></td></tr>
                            <tr>
                                <th>名称</th><th>值</th><th>类型</th><th>操作</th>
                            </tr>
                            </thead>
                            <%=UserAttrHTMLString %>
                        </table>
                        
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">商品类型</label><div class="ui-form-ctrls">
                        <select size="1" name="IsDatePro">
                            <option value="false" <%=mst.IsDatePro?"Selected":""%>>普通商品</option>
                            <option value="true" <%=mst.IsDatePro?"Selected":""%>>日期服务</option>
                        </select><span class="Power ui-help-inline">用户购买后是否有需要续费操作，<font class="red">如果无续费操作，产品价格只需填写月付价格</font></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">&nbsp;</label><div class="ui-form-ctrls">
                        <button class="ui-btn ui-btn-primary" type="submit">保存设置</button>
                        <button class="ui-btn" type="button" onclick="history.back();">返回</button>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <div id="UI_List" runat="server" visible="false">
        <table class="ui-table ui-table-bordered">
            <thead>
                <tr>
                    <td colspan="4">
                        <a href="?Action=Add" class="ui-btn ui-btn-primary">添加模版</a>
                    </td>
                </tr>
                <tr>
                    <th>模版名称
                    </th>
                    <th>商品类型
                    </th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ShowList%>
        </table>
    </div>
</asp:Content>
