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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/IDC.CPU.js" type="text/javascript"></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">CPU名称</label><div class="ui-form-ctrls">
                    <input type="text" name="CPUName" id="CPUName"
                        class="ui-input-small" value="<%=mic.CPUName %>" /><span
                            class="CPUName ui-help-inline">*/span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">CPU主频</label><div class="ui-form-ctrls">
                    <input type="text" name="zhupin" id="zhupin"
                        class="ui-input-small" value="<%=mic.zhupin %>" /><span
                            class="zhupin ui-help-inline">如：2.66GHz </span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">前端总线</label><div class="ui-form-ctrls">
                    <input type="text" name="zongxian" id="zongxian"
                        class="tui-input-small" value="<%=mic.zongxian %>" /><span
                            class="zongxian ui-help-inline">如：1066MHz </span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">一级缓存</label><div class="ui-form-ctrls">
                    <input type="text" name="yiji" id="yiji"
                        class="ui-input-small" value="<%=mic.yiji %>" /><span
                            class="yiji ui-help-inline">如：2×64KB </span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">二级缓存</label><div class="ui-form-ctrls">
                    <input type="text" name="erji" id="erji"
                        class="ui-input-small" value="<%=mic.erji %>" /><span
                            class="erji ui-help-inline">如：3072KB </span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">核心数</label><div class="ui-form-ctrls">
                    <input type="text" name="hexinNum" id="hexinNum"
                        class="ui-input-mini" value="<%=mic.hexinNum %>" /><span
                            class="hexinNum ui-help-inline">如：单核、双核</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"><%=mic.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(mic.id, Web.Lib.ArtType.CPUPrice), "<div class=\"ui-form-group\"><label class=\"ui-form-label\">{0}</label><div class=\"ui-form-ctrls\">月付：<input type=\"text\" value=\"{2}\" name=\"CPUPrice_MonPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;季付：<input type=\"text\" value=\"{3}\" name=\"CPUPrice_ThPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;半年：<input value=\"{4}\" type=\"text\" name=\"CPUPrice_HfPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;年付：<input value=\"{5}\" type=\"text\" name=\"CPUPrice_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">添加CPU</a>
                    </td>
                </tr>
                <%} %>
                <tr>
                    <th>CPU名称
                    </th>
                    <th>核心数
                    </th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ShowList%>
        </table>
    </div>
</asp:Content>
