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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/IDC.SATA.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">硬盘名称</label><div class="ui-form-ctrls">
                        <input type="text" name="SATAName" id="SATAName"
                            class="ui-input-small" value="<%=mis.SATAName %>" /><span
                                class="SATAName ui-help-inline"></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="<%=mis.rongliang %>" /><span
                                class="rongliang ui-help-inline">如：320GB</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">接口标准</label><div class="ui-form-ctrls">
                        <input type="text" name="jiekou" id="jiekou"
                            class="ui-input-small" value="<%=mis.jiekou %>" /><span
                                class="jiekou ui-help-inline">如：SATA II </span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">硬盘转速</label><div class="ui-form-ctrls">
                        <input type="text" name="zhuansu" id="zhuansu"
                            class="ui-input-small" value="<%=mis.zhuansu %>" /><span
                                class="zhuansu ui-help-inline">如：7200RPM</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"><%=mis.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(mis.id, Web.Lib.ArtType.SATAPrice), "<div class=\"ui-form-group\"><label class=\"ui-form-label\">{0}</label><div class=\"ui-form-ctrls\">月付：<input type=\"text\" value=\"{2}\" name=\"SATAPrice_MonPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;季付：<input type=\"text\" value=\"{3}\" name=\"SATAPrice_ThPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;半年：<input value=\"{4}\" type=\"text\" name=\"SATAPrice_HfPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;年付：<input value=\"{5}\" type=\"text\" name=\"SATAPrice_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>
