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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/Servers.HostTemp.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="ModelName" id="ModelName"
                            class="ui-input-small" value="<%=mht.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">
                        <select size="1" name="AppPoolTempId" id="AppPoolTempId">
                            <option
                                value="0">请选择</option>
                            <%=AppServerList %>
                        </select><span class="AppPoolTempId 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" value="<%=mht.Port %>"
                            name="Port" id="Port" class="ui-input-mini" /><span
                                class="Port ui-help-inline">网站使用端口号，默认80</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">带宽限制</label><div class="ui-form-ctrls">
                        <input type="text" value="<%=mht.BandWidth %>"
                            name="BandWidth" id="BandWidth" class="ui-input-mini" /><span
                                class="BandWidth ui-help-inline">网站带宽限制，单位KB，4194303为无限制</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">默认容量</label><div class="ui-form-ctrls">
                        <input value="<%=mht.Space %>"
                            type="text" name="Space" id="Space" class="ui-input-mini" /><span
                                class="Space ui-help-inline">空间默认容量，单位MB，0为无限制</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">月流量</label><div class="ui-form-ctrls">
                        <input value="<%=mht.Flow %>"
                            type="text" name="Flow" id="Flow" class="ui-input-mini" /><span
                                class="Flow ui-help-inline">月流量，单位GB，0为无限制</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">子站个数</label><div class="ui-form-ctrls">
                        <input value="<%=mht.vPath %>"
                            type="text" name="vPath" id="vPath" class="ui-input-mini" /><span
                                class="vPath ui-help-inline">子站数，0为没有，2147483647为无限制</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">IIS连接数</label><div class="ui-form-ctrls">
                        <input type="text" name="IIS"
                            id="IIS" value="<%=mht.IIS %>" class="ui-input-mini" /><span
                                class="defaultDOC ui-help-inline">IIS连接并发连接数，默认100，4294967295为无限制</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">存放路径</label><div class="ui-form-ctrls">
                        <input type="text" name="UserPath" id="UserPath"
                            value="<%=mht.UserPath %>" /><span
                                class="UserPath ui-help-inline">此路径在磁盘上必须存在</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" <%=mht.Diy?"selected":"" %>>允许</option>
                            <option value="false" <%=mht.Diy?"":"selected" %>>禁止</option>
                        </select><span class="Diy ui-help-inline">是否允许在购买时在默认配置上自定义增加配置</span>
                    </div>
                </div>

                <legend>属性设置</legend>
                <div class="ui-form-group">
                    <label class="ui-form-label">默认文档</label><div class="ui-form-ctrls">
                        <input type="text" name="defaultDOC" id="defaultDOC"
                            value="<%=mht.defaultDOC %>" /><span
                                class="defaultDOC 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="ScriptMaps" id="ScriptMaps"
                            value="<%=string.IsNullOrEmpty(mht.ScriptMaps)?".asp,.aspx,.php":mht.ScriptMaps %>" /><span
                                class="ScriptMaps ui-help-inline">网站支持脚本，每个脚本以英文,隔开，如：.asp,.aspx,.php</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">404地址</label><div class="ui-form-ctrls">
                        <input type="text"
                            name="HttpErrors" id="HttpErrors" value="<%=mht.HttpErrors %>" /><span class="HttpErrors ui-help-inline">404错误页面地址，默认/404.html</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">独立程序池</label><div class="ui-form-ctrls">
                        <select size="1" name="IsaloneApp" id="IsaloneApp">
                            <option value="true" <%=mht.IsaloneApp?"selected":"" %>>是</option>
                            <option value="false" <%=mht.IsaloneApp?"":"selected" %>>否</option>
                        </select><span class="IsaloneApp ui-help-inline">是否一个站一个程序池，如果您的服务器支持ASP.NET 4.0版则需独立池</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">每个池站点</label><div class="ui-form-ctrls">
                        <input type="text" class="ui-input-mini"
                            name="ShareSiteNum" id="ShareSiteNum" value="<%=mht.ShareSiteNum %>" /><span
                                class="ShareSiteNum ui-help-inline">当共享池时，一个程序池允许网站数量</span>
                    </div>
                </div>

                <legend>赠送附属</legend>
                <div class="ui-form-group">
                    <label class="ui-form-label">默认程序</label><div class="ui-form-ctrls">
                        <%=DefaultExTempList%><span class="DefaultExTempId ui-help-inline">空间开通后用户可在控制面板安装</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">SQL模版</label><div class="ui-form-ctrls">
                        <select size="1" name="SqlTempId" id="SqlTempId">
                            <option
                                value="0">下拉选择</option>
                            <%=SqlTempList%>
                        </select><span class="SqlTempId ui-help-inline">附属SQL产品模版，如不赠送无需选择</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">MySQL</label><div class="ui-form-ctrls">
                        <select size="1" name="MySqlTempId" id="MySqlTempId">
                            <option
                                value="0">下拉选择</option>
                            <%=MySqlTempList%>
                        </select><span class="MySqlTempId ui-help-inline">附属MySql产品模版，如不赠送无需选择</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">附属模式</label><div class="ui-form-ctrls">
                        <select size="1" name="FreeSQLType" id="FreeSQLType">
                            <option value="true" <%=mht.FreeSQLType?"selected":"" %>>二选一</option>
                            <option value="false" <%=mht.FreeSQLType?"":"selected" %>>不限</option>
                        </select><span class="MySqlTempId ui-help-inline">赠送数据库产品开通形式</span>
                    </div>
                </div>
                <div class="ui-form-group">
                    <label class="ui-form-label">邮局模版</label><div class="ui-form-ctrls">
                        <select size="1" name="MailTempId" id="MailTempId">
                            <option
                                value="0">下拉选择</option>
                            <%=MailTempList%>
                        </select><span class="MailTempId 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>
            </fieldset>
        </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 class="ui-widget-header p5 talc">
                    <th>模版名称
                    </th>
                    <th>存储容量（MB）
                    </th>
                    <th>IIS连接数
                    </th>
                    <th>月流量（GB）
                    </th>
                    <th>操作
                    </th>
                </tr>
            </thead>
            <%=ShowList%>
        </table>
    </div>
</asp:Content>

