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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/IDC.TTS.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">
            <legend>基本信息</legend>
            <fieldset>
                <div class="ui-form-group">
                    <label class="ui-form-label">模版名称</label><div class="ui-form-ctrls">
                        <input type="text" name="TTSName" id="TTSName"
                            class="ui-input-small" value="<%=mit.TTSName %>" /><span
                                class="TTSName ui-help-inline">输入一个方便识别的名称</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">机箱类型</label><div class="ui-form-ctrls">
                        <%=new BLL.IDC_Box().GetSelectList("Box", mit.Box)%><span
                            class="Box ui-help-inline"><a href="Box.aspx" target="_blank">点击设置机箱资源</a></span><span class="boxlink"><%=mit.Box == 0 ? "" : "<a href=\"Box.aspx?Action=Edit&Id=" + mit.Box + "\">查看价格</a>"%></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">机柜类型</label><div class="ui-form-ctrls">
                        <%=new BLL.IDC_MCT().GetSelectList("MCT", mit.MCT)%><span
                            class="SATA ui-help-inline"><font color="red">如果选择机柜则机箱类型无效，表示机柜租用</font>，<a href="MCT.aspx" target="_blank">点击设置机柜资源</a></span><span class="mctlink"><%=mit.MCT == 0 ? "" : "<a href=\"MCT.aspx?Action=Edit&Id=" + mit.MCT + "\">查看价格</a>"%></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">带宽</label><div class="ui-form-ctrls">
                        <input type="text" name="BW" id="BW" class="ui-input-mini"
                            value="<%=mit.BW %>" /> Mbps<span
                                class="BW ui-help-inline">带宽速率</span><span class="serverpricelink"></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">IP数</label><div class="ui-form-ctrls">
                        <input type="text" name="Ips" id="Ips" class="ui-input-mini"
                            value="<%=mit.Ips %>" /><span class="Ips ui-help-inline"> IP数量</span><span class="serverpricelink"></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">流量</label><div class="ui-form-ctrls">
                        <input type="text" name="Flow" id="Flow" class="ui-input-mini"
                            value="<%=mit.Flow %>" /> GB/月<span class="Flow ui-help-inline">0为不限制</span><span class="serverpricelink"></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">允许升级</label><div class="ui-form-ctrls">
                        <select id="Diy" name="Diy">
                            <option value="false" <%=mit.Diy?"":"selected" %>>禁止</option>
                            <option value="true" <%=mit.Diy?"selected":"" %>>允许</option>
                        </select><span class="Diy 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"><%=mit.Memo%></textarea><span
                            class="Memo"></span>
                    </div>
                </div>
                <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>
                <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>
