Current File : //etc/zpanel/panel/modules/apache_setting/module.zpm |
<div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
<div class="panel-heading">
<img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">
<div class="zmodule_title">
<@ ModuleName @>
</div>
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>
</div>
<style>
.helpicon {
display: block;
float: right;
border: 1px solid #ccc;
background-color: #f3f3f3;
padding: 5px 10px;
font-size: 12px;
margin-top:-121px;
margin-right:5px;
-webkit-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-webkit-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
}
</style>
<div class="helpicon">
<a href="<@ helpicon @>" target="_blank"><img src="etc/styles/CstyleX-master/images/help.png" style="float:left;" ><span style="float:left;margin-top:8px;font-weight:bold;font-size:12px;" >Video Tutorial</span></a>
</div>
<h2>MPM prefork parameters</h2>
<div id="contentwrapper_phpinfo">
<@ Result @>
<br>
<br>
<form action="./?module=apache_setting&action=Updateconfig" method="POST">
<table id="phptbl" width="95%" class="table table-striped sortable" border="0" cellpadding="5" cellspacing="0">
<tbody><tr class="row-%">
<th class="cell">Directive</th>
<!--<th class="cell">Info</th>-->
<th colspan="2" class="cell-end" width="200px">Value</th>
</tr>
</tbody>
<tbody>
<tr>
<td class="cell">KeepAlive_setting</td>
<!-- <td class="cell">Set KeepAlive to false when interacting with external hosts in a plug-in</td>-->
<td class="cell" ><span><label><input type="radio" Id="Offradio" name="KeepAlive_setting" value="Off" <@ KeepAlive_setting_Off @> >Off</label> <label><input Id="Onradio" type="radio" <@ KeepAlive_setting_On @> name="KeepAlive_setting" value="On">On</label></span></td>
</tr>
<tr>
<td class="cell">StartServers</td>
<!--<td class="cell">Maximum size of POST data that PHP will accept.</td>-->
<td class="cell" ><span><input class="InputTextBox" type="text" name="StartServers" value="<@ StartServers @>" maxlength="4" ></span></td>
</tr>
<tr>
<td class="cell">ServerLimit</td>
<!--<td class="cell">Maximum size of POST data that PHP will accept.</td>-->
<td class="cell" ><span><input class="InputTextBox" type="text" name="ServerLimit" value="<@ ServerLimit @>" maxlength="4" ></span></td>
</tr>
<tr>
<td class="cell">MinSpareServers</td>
<!-- <td class="cell">Maximum size of POST data that PHP will accept.</td>-->
<td class="cell" ><span><input class="InputTextBox" type="text" name="MinSpareServers" value="<@ MinSpareServers @>" maxlength="4" ></span></td>
</tr>
<tr>
<td class="cell">MaxSpareServers </td>
<!-- <td class="cell">Maximum size of POST data that PHP will accept.</td> -->
<td class="cell" ><span><input class="InputTextBox" type="text" name="MaxSpareServers" value="<@ MaxSpareServers @>" maxlength="4" ></span></td>
</tr>
<tr>
<td class="cell">MaxRequestsPerChild </td>
<!-- <td class="cell">Maximum size of POST data that PHP will accept.</td> -->
<td class="cell" ><span><input class="InputTextBox" type="text" name="MaxRequestsPerChild" value="<@ MaxRequestsPerChild @>" maxlength="4" ></span></td>
</tr>
<tr>
<td class="cell">MaxRequestWorkers </td>
<!-- <td class="cell">Maximum size of POST data that PHP will accept.</td> -->
<td class="cell" ><span><input class="InputTextBox" type="text" name="MaxRequestWorkers" value="<@ MaxRequestWorkers @>" maxlength="4" ></span></td>
</tr>
</tbody>
</table>
<br>
<div>
<button class="button btn btn-primary" type="submit" id="submitbutton">Change</button>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
$(".InputTextBox").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
// Allow: Ctrl/cmd+A
(e.keyCode == 65 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: Ctrl/cmd+C
(e.keyCode == 67 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: Ctrl/cmd+X
(e.keyCode == 88 && (e.ctrlKey === true || e.metaKey === true)) ||
// Allow: home, end, left, right
(e.keyCode >= 35 && e.keyCode <= 39)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
});
</script>