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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/IDC.MCT.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="MCTName" id="MCTName"
                        class="text ui-widget-content ui-corner-all" value="<%=mim.MCTName %>" /><span
                            class="MCTName ui-help-inline">如：北京BGP整机柜</span>
                </div></div>
                <div class="ui-form-group">
                    <label class="ui-form-label">机柜类型</label><div class="ui-form-ctrls"><select size="1" name="MCTType">
                        <option value="整机柜" <%=mim.MCTType=="整机柜"?"Selected":""%>>整机柜</option>
                        <option value="半机柜" <%=mim.MCTType=="半机柜"?"Selected":""%>>半机柜</option>
                    </select><span class="MCTType 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="Power" id="Power" class="text ui-widget-content ui-corner-all"
                        value="<%=mim.Power %>" /><span class="Power ui-help-inline">如：10A</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"><%=mim.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(mim.id, Web.Lib.ArtType.MCTPrice), "<div class=\"ui-form-group\"><label class=\"ui-form-label\">{0}</label><div class=\"ui-form-ctrls\">月付：<input type=\"text\" value=\"{2}\" name=\"MCTPrice_MonPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;季付：<input type=\"text\" value=\"{3}\" name=\"MCTPrice_ThPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;半年：<input value=\"{4}\" type=\"text\" name=\"MCTPrice_HfPrice_{1}\" class=\"ui-input-mini\" value=\"\" />&nbsp;年付：<input value=\"{5}\" type=\"text\" name=\"MCTPrice_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="3">
                        <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>
