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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/IDC.DDR.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="UI_Edit" runat="server" visible="false">
        <form action="" method="post" class="ui-form ui-form-vertical">
            <%if (AgentUserId == 1)
              { %>
            <fieldset class="p5">
                <legend>基本信息</legend>
                <div class="ui-form-group">
                    <label class="ui-form-label">DDR名称</label><div class="ui-form-ctrls">
                        <input type="text" name="DDRName" id="DDRName"
                            class="ui-input-small" value="<%=mid.DDRName %>" /><span
                                class="DDRName ui-help-inline">如：DDR II</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">内存主频</label><div class="ui-form-ctrls">
                        <input type="text" name="zhupin" id="zhupin"
                            class="ui-input-small" value="<%=mid.zhupin %>" /><span
                                class="zhupin ui-help-inline">如：800 MHz</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">内存容量</label><div class="ui-form-ctrls">
                        <input type="text" name="rongliang" id="rongliang"
                            class="ui-input-small" value="<%=mid.rongliang %>" /><span
                                class="rongliang ui-help-inline">如：2GB </span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">备注</label><div class="ui-form-ctrls">
                        <textarea rows="3" name="Memo" id="Memo" cols="34"><%=mid.Memo%></textarea><span
                            class="Memo ui-help-inline"></span>
                    </div>
                </div>
                <%} %>
                <legend>价格（0为免费，-1为不支持，单位：元）&nbsp;&nbsp;<a href="../Setting/Class.aspx?ClassType=<%=CommonLib.Enums.ClassType.会员级别.GetHashCode() %>"
                    target="_blank">点击设置会员级别</a></legend>
                <%=new BLL.ProductPrice().GetPriceHTML(GetLMPP(mid.id, Web.Lib.ArtType.DDRPrice), "<div class=\"ui-form-group\"><label class=\"ui-form-label\">{0}</label><div class=\"ui-form-ctrls\">月付：<input type=\"text\" value=\"{2}\" name=\"DDRPrice_MonPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;季付：<input type=\"text\" value=\"{3}\" name=\"DDRPrice_ThPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;半年：<input value=\"{4}\" type=\"text\" name=\"DDRPrice_HfPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;年付：<input value=\"{5}\" type=\"text\" name=\"DDRPrice_YearPrice_{1}\" class=\"ui-input-mini\" value=\"\" /></div></div>", AgentUserId)%>
                <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 type="button" class="ui-btn" 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>
                <%if (AgentUserId == 1)
                  { %>
                <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>
