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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/Servers.MySqlTemp.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">
            <div class="ui-form-group">
                <label class="ui-form-label">模版名称</label><div class="ui-form-ctrls">
                    <input type="text" name="ModelName" id="ModelName"
                        class="text ui-widget-content ui-corner-all" value="<%=mst.ModelName %>" /><span
                            class="ModelName ui-help-inline">写个方便识别的名称</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">数据库容量</label><div class="ui-form-ctrls">
                    <input style="width: 50px;" type="text" value="<%=mst.db_MaxSize %>"
                        name="db_MaxSize" id="db_MaxSize" class="text ui-widget-content ui-corner-all" /><span
                            class="db_MaxSize ui-help-inline">数据库最大容量，必须大于3M</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">允许DIY</label><div class="ui-form-ctrls">
                    <select size="1" name="Diy" id="Diy">
                        <option value="true" <%=mst.Diy?"selected":"" %>>允许</option>
                        <option value="false" <%=mst.Diy?"":"selected" %>>禁止</option>
                    </select><span class="Diy ui-help-inline">是否允许在购买时在默认配置上自定义增加配置</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>
        </form>
    </div>
    <div id="UI_List" runat="server" visible="false">
        <table class="ui-table ui-table-bordered">
            <thead>
                <tr>
                    <td colspan="5">
                        <a href="?Action=Add" class="ui-btn ui-btn-primary">
                            添加模版</a>
                    </td>
                </tr>
                <tr>
                    <th>模版名称
                    </th>
                    <th>数据库容量(MB)
                    </th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ShowList%>
        </table>
    </div>
</asp:Content>
