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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/Servers.AppPoolTemp.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="ui-input-small" value="<%=mapm.ModelName %>" /><span
                            class="ModelName ui-help-inline">写个方便识别的名称</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">使用32位模式</label><div class="ui-form-ctrls">
                    <%if (Action.ToLower() != "edit")
                      { %><select size="1" name="enable32BitAppOnWin64" id="enable32BitAppOnWin64">
                          <option value="true" <%=mapm.enable32BitAppOnWin64?"selected":"" %>>启用</option>
                          <option value="false" <%=mapm.enable32BitAppOnWin64?"":"selected" %>>关闭</option>
                      </select><%}
                      else
                      { %><%=mapm.enable32BitAppOnWin64?"启动":"关闭" %><input type="hidden" name="enable32BitAppOnWin64" value="<%=mapm.enable32BitAppOnWin64 %>" /><%} %><span
                          class="AppPoolQueueLength ui-help-inline">64位操作系统默不支持ACCESS，如需要请使用32位模式</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="<%=mapm.AppPoolQueueLength %>"
                        name="AppPoolQueueLength" id="AppPoolQueueLength" class="" /><span
                            class="AppPoolQueueLength ui-help-inline">核心请求队列限制，默认4000</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">CPU限制</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px;" value="<%=mapm.CPULimit %>"
                        name="CPULimit" id="CPULimit" class="" /><span
                            class="CPULimit ui-help-inline">CPU百分比限制，默认30%</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">CPU刷新</label><div class="ui-form-ctrls">
                    <input style="width: 50px;" type="text" name="CPUResetInterval"
                        id="CPUResetInterval" value="<%=mapm.CPUResetInterval %>" class="" /><span
                            class="CPUResetInterval ui-help-inline">CPU刷新时间，单位：分钟</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">超出限制</label><div class="ui-form-ctrls">
                    <select size="1" name="CPUAction" id="CPUAction">
                        <option value="1" <%=mapm.CPUAction==1?"selected":"" %>>停止</option>
                        <option value="0" <%=mapm.CPUAction==0?"selected":"" %>>无操作</option>
                    </select><span class="CPUAction ui-help-inline">CPU超出限制时的操作，默认停止</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">物理内存</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="PeriodicRestartPrivateMemory" id="PeriodicRestartPrivateMemory" value="<%=mapm.PeriodicRestartPrivateMemory %>" /><span
                            class="PeriodicRestartPrivateMemory ui-help-inline">程序池在回收前允许使用的物理内存，单位：MB，默认512MB</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">虚拟内存</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="PeriodicRestartMemory" id="PeriodicRestartMemory" value="<%=mapm.PeriodicRestartMemory %>" /><span
                            class="PeriodicRestartMemory ui-help-inline">程序池在回收前允许使用的虚拟内存，单位：MB，默认512MB</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">进程请求数</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="PeriodicRestartRequests" id="PeriodicRestartRequests" value="<%=mapm.PeriodicRestartRequests %>" /><span
                            class="PeriodicRestartRequests ui-help-inline">进程请求数超过时自动回收程序池，默认：35000</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">启用PING</label><div class="ui-form-ctrls">
                    <select size="1" name="PingingEnabled" id="PingingEnabled">
                        <option value="true" <%=mapm.PingingEnabled?"selected":"" %>>启用</option>
                        <option value="false" <%=mapm.PingingEnabled?"":"selected" %>>关闭</option>
                    </select><span class="PingingEnabled ui-help-inline">是否启用PING，监视工作进程，以确保它们正在运行且运行正常。</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">PING间隔</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="PingInterval" id="PingInterval" value="<%=mapm.PingInterval %>" /><span
                            class="PingInterval ui-help-inline">PING时间间隔（秒），默认：30</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">失败保护</label><div class="ui-form-ctrls">
                    <select size="1" name="RapidFailProtection" id="RapidFailProtection">
                        <option value="true" <%=(mapm.RapidFailProtection?"":"selected") %>>启用</option>
                        <option value="false" <%=(mapm.RapidFailProtection?"":"selected") %>>关闭</option>
                    </select><span class="RapidFailProtection">是否启用快速失败保护</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">启动时间</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="StartupTimeLimit" id="StartupTimeLimit" value="<%=mapm.StartupTimeLimit %>" /><span
                            class="StartupTimeLimit ui-help-inline">启动时间限制（秒），默认90</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">关闭时间</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="ShutdownTimeLimit" id="ShutdownTimeLimit" value="<%=mapm.ShutdownTimeLimit %>" /><span
                            class="ShutdownTimeLimit ui-help-inline">关闭时间限制（秒），默认：90</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">回收时间</label><div class="ui-form-ctrls">
                    <input type="text" class=""
                        name="PeriodicRestartSchedule" id="PeriodicRestartSchedule" value="<%=mapm.PeriodicRestartSchedule %>" /><span
                            class="PeriodicRestartSchedule ui-help-inline">在此时间列表中自动回收程序池，每个时间以“|TP|”隔开</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">失败间隔</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="RapidFailProtectionInterval" id="RapidFailProtectionInterval" value="<%=mapm.RapidFailProtectionInterval %>" /><span
                            class="RapidFailProtectionInterval ui-help-inline">指定时间内失败的时间间隔（分钟），默认：5</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">失败次数</label><div class="ui-form-ctrls">
                    <input type="text" style="width: 50px" class=""
                        name="RapidFailProtectionMaxCrashes" id="RapidFailProtectionMaxCrashes" value="<%=mapm.RapidFailProtectionMaxCrashes %>" /><span
                            class="RapidFailProtectionMaxCrashes ui-help-inline">指定分钟内允许的最多失败次数，默认：5</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="6">
                        <a href="?Action=Add" class="ui-btn ui-btn-primary">添加模版</a>
                    </td>
                </tr>
                <tr class="ui-widget-header p5 talc">
                    <th>模版名称
                    </th>
                    <th>是否使用32位运行</th>
                    <th>CPU限制(%)</th>
                    <th>物理内存(MB)</th>
                    <th>虚拟内存(MB)</th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ShowList%>
        </table>
    </div>
</asp:Content>
