Current File : //etc/zpanel/panel/modules/warfile/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="zform_wrapper1" style="width:100%">
<form action="./?module=warfile&action=operation" method="post">
<input type="hidden" name="postoperation" Id="postoperation" value="" />
<table class="table table-striped" style="float:right;">
<tr>
<td><h2>Tomcat</h2></td>
<td>
<button class="button-loader btn btn-default" type="submit" id="tomcatstart" name="tomcatstart" value="tomcatstart" onClick="return bindvalues(this.value);" ><: Start :></button>
</td>
<td>
<button style="background:#700;" class="button-loader delete btn btn-danger" type="submit" id="tomcatstop" name="tomcatstop" value="tomcatstop" onClick="return bindvalues(this.value);" ><: Stop :></button>
</td>
<td>
<button style="background:#070;" class="button-loader btn btn-default" type="submit" id="tomcatrestart" name="tomcatrestart" value="tomcatrestart" onClick="return bindvalues(this.value);" ><: Restart :></button>
</td>
</tr>
</table>
</form>
</div>
<div style="clear:both;"></div>
<div class="zgrid_wrapper">
<h2><: Current domains :></h2>
<% if DomainList %>
<form action="./?module=warfile&action=upload_file" method="post" enctype="multipart/form-data">
<table class="table table-striped">
<tr>
<th><: Domain name :></th>
<th><: Home directory :></th>
<th></th>
<th></th>
</tr>
<% loop DomainList %>
<tr>
<td><a href="http://<& name &>/" target="_blank"><& name &></a></td>
<td><& directory &></td>
<td> <input type="file" name="fileToUpload_<& id &>" id="fileToUpload_<& id &>"> </td>
<td>
<button class="delete btn btn-submit" type="submit" name="inUpload_<& id &>" id="inUpload_<& id &>" value="inUpload_<& id &>" onClick="return validation(<& id &>);"><: Upload :></button>
</td>
</tr>
<% endloop %>
<input type="hidden" name="upload_id" id="upload_id" value="" />
</table>
<@ CSFR_Tag @>
</form>
<% else %>
<: You currently do not have any domains configured. Create a domain using the form below. :>
<% endif %>
</div>
<div class="zform_wrapper" style="width:100%">
<h2>Caution:</h2>
<p>If you have uploaded the same name WAR file then that will be overwrite</p>
</div>
</div>
<script type="text/javascript">
function validation(val)
{
document.getElementById("upload_id").value=val;
return true;
// return false;
}
</script>
<script type="text/javascript">
function bindvalues(Id)
{
document.getElementById("postoperation").value=Id;
return true;
}
</script>