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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/IDC.BOX.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="UI_Eidt" 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="BoxName" id="BoxName"
                            class="text ui-widget-content ui-corner-all" value="<%=mib.BoxName %>" /><span
                                class="BoxName ui-help-inline">如：1U标准架式</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">电源保证</label><div class="ui-form-ctrls">
                        <input type="text" name="Power" id="Power" class="text ui-widget-content ui-corner-all"
                            value="<%=mib.Power %>" /><span class="Power ui-help-inline">如：&lt;350W</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"><%=mib.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(mib.id, Web.Lib.ArtType.BOXPrice), "<div class=\"ui-form-group\"><label class=\"ui-form-label\">{0}</label><div class=\"ui-form-ctrls\">月付：<input type=\"text\" value=\"{2}\" name=\"BOXPrice_MonPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;季付：<input type=\"text\" value=\"{3}\" name=\"BOXPrice_ThPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;半年：<input value=\"{4}\" type=\"text\" name=\"BOXPrice_HfPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;年付：<input value=\"{5}\" type=\"text\" name=\"BOXPrice_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 class="ui-widget-header p5 talc">
                    <th>机柜名称
                    </th>
                    <th>机柜类型
                    </th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ShowList%>
        </table>
    </div>
</asp:Content>
