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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/IDC.Rent.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">
            <fieldset>
                <legend>基本信息</legend>
                <div class="ui-form-group">
                    <label class="ui-form-label">模版名称</label><div class="ui-form-ctrls">
                        <input type="text" name="RentName" id="RentName"
                            class="ui-input-small" value="<%=mir.RentName %>" /><span
                                class="RentName 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", mir.Box)%><span
                            class="Box"><a href="Box.aspx" target="_blank">点击设置机箱资源</a></span><span class="boxlink"><%=mir.Box == 0 ? "" : "<a href=\"Box.aspx?Action=Edit&Id=" + mir.Box + "\">查看价格</a>"%></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">主板</label><div class="ui-form-ctrls">
                        <%=new BLL.IDC_CPT().GetSelectList("CPT", mir.CPT)%><span
                            class="CPT"><a href="CPT.aspx" target="_blank">点击设置主板资源</a></span><span class="cptlink"><%=mir.CPT == 0 ? "" : "<a href=\"CPT.aspx?Action=Edit&Id=" + mir.CPT + "\">查看价格</a>"%></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">CPU</label><div class="ui-form-ctrls">
                        <%=new BLL.IDC_CPU().GetSelectList("CPU", mir.CPU)%><span
                            class="CPU"><a href="CPU.aspx" target="_blank">点击设置CPU资源</a></span><span class="cpulink"><%=mir.CPU == 0 ? "" : "<a href=\"CPU.aspx?Action=Edit&Id=" + mir.CPU + "\">查看价格</a>"%></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">内存</label><div class="ui-form-ctrls">
                        <%=new BLL.IDC_DDR().GetSelectList("DDR", mir.DDR)%>
                        <span class="DDR"><a href="DDR.aspx" target="_blank">点击设置内存资源</a></span><span class="ddrlink"><%=mir.DDR == 0 ? "" : "<a href=\"DDR.aspx?Action=Edit&Id=" + mir.DDR + "\">查看价格</a>"%></span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">硬盘</label><div class="ui-form-ctrls">
                        <%=new BLL.IDC_SATA().GetSelectList("SATA", mir.SATA)%><span
                            class="SATA"><a href="SATA.aspx" target="_blank">点击设置硬盘资源</a></span><span class="satalink"><%=mir.SATA == 0 ? "" : "<a href=\"SATA.aspx?Action=Edit&Id=" + mir.SATA + "\">查看价格</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="<%=mir.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="<%=mir.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="<%=mir.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">
                        <input type="text" name="Mon_PTR" id="Mon_PTR"
                            class="ui-input-small" value="<%=mir.Mon_PTR %>" /><span
                                class="Mon_PTR ui-help-inline">如：租满1年+1000送产权</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">季付产权</label><div class="ui-form-ctrls">
                        <input type="text" name="Th_PTR" id="Th_PTR"
                            class="ui-input-small" value="<%=mir.Th_PTR %>" /><span
                                class="Th_PTR ui-help-inline">如：租满1年+900送产权</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">半年付产权</label><div class="ui-form-ctrls">
                        <input type="text" name="Hf_PTR" id="Hf_PTR"
                            class="ui-input-small" value="<%=mir.Hf_PTR %>" /><span
                                class="Hf_PTR ui-help-inline">如：租满1年+500送产权</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">年付产权</label><div class="ui-form-ctrls">
                        <input type="text" name="Year_PTR" id="Year_PTR"
                            class="ui-input-small" value="<%=mir.Year_PTR %>" /><span
                                class="Year_PTR ui-help-inline">如：立即送产权</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" <%=mir.Diy?"":"selected" %>>禁止</option>
                            <option value="true" <%=mir.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"><%=mir.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>
