Current File : //etc/sentora/panel/modules/webserver/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>
<@ Result @>
<div class="zgrid_wrapper">
<h2 class="show_result"><@ ShowServerName @></h2>
<form action="./?module=webserver&action=operation" method="post">
<input type="hidden" name="postoperation" Id="postoperation" value="" />
<table class="table table-striped">
<tr>
<th scope="row">Web Server</th>
<th> </th>
</tr>
<tr>
<td scope="row">
<input type="radio" name="servertype" Id="apacheserver" value="apacheserver" OnChanged="return bindvalues(this.value);" <@ checkedapache @> />
<label for="apacheserver">Apache with Java </label>
</td>
<td>
<button class="button-loader btn btn-default" type="submit" id="button" name="apachedefault" value="apachedefault" onClick="return bindvalues(this.value);" <@ enabledapachedefault @>><: Make it default :></button>
</td>
</tr>
<tr>
<td>
<input type="radio" name="servertype" Id="apacheserver" value="apacheserver" OnChanged="return bindvalues(this.value);" <@ checkedvarnish @> />
<label for="apacheserver">Java Only </label>
</td>
<td>
<button class="button-loader btn btn-default" type="submit" id="button" name="varnishdefault" value="varnishdefault" onClick="return bindvalues(this.value);" <@ enabledvarnishdefault @> ><: Make it default :></button>
</td>
</tr>
</table>
</form>
</div>
</div>
<script type="text/javascript">
function bindvalues(Id)
{
document.getElementById("postoperation").value=Id;
return true;
}
</script>
<style>
button:disabled {
cursor: no-drop;
opacity: 0.70;
filter: alpha(opacity =70);
}
.show_result
{
color: green;
font-style: italic;
}
.zgrid_wrapper h2
{
white-space: nowrap;
}
</style>