Current File : //proc/self/root/root/panel/modules/Change_Site_IPAddress/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>
<@ Result @>
<% if isEditClient %>
<div class="zgrid_wrapper">
<h2><: Edit existing client :>: <@ EditCurrentName @></h2>
<p><b><: Warning :>:</b> <: Changing a site IP address may cause it to appear down from some locations until the DNS has propagated to all nameservers on the Internet. :></p>
<form action="./?module=Change_Site_IPAddress&action=UpdateClient" method="post">
<table class="table table-striped" >
<tr>
<th><: Username :>:</th>
<td><input name="inUserName" type="text" disabled="disabled" size="30" maxlength="30" id="inUserName" value="<@ EditCurrentName @>" readonly="readonly" /></td>
</tr>
<% if ListIp %>
<tr>
<th><: IpAddress :>:</th>
<td>
<select name="inIpAddress" id="inIpAddress">
<% loop ListIp %>
<option value="<& public_ip &>"><& public_ip &></option>
<% endloop %>
</select>
</td>
</tr>
<% endif %>
<tr>
<th><input type="hidden" name="inClientID" value="<@ EditCurrentID @>" /></th>
<td>
<button class="button-loader btn btn-primary" type="submit" id="button" name="inSubmit" value="Save"><: Save :></button>
<button class="button-loader btn btn-default" type="button" onclick="window.location.href='./?module=Change_Site_IPAddress';return false;"><: Cancel :></button>
</td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
<div class="zgrid_wrapper">
<h2><: List of User IP Address :></h2>
<% if ClientList %>
<form action="./?module=Change_Site_IPAddress&action=EditClient" method="post">
<table Id="manage_clients_table" class="table table-striped">
<thead>
<tr>
<th><: Username :></th>
<th><: Ip Address :></th>
<th><: Action :></th>
</tr>
</thead>
<tbody>
<tr>
<% loop ClientList %>
<td><& username &></td>
<td><& ipaddress &></td>
<th><button class="button-loader btn btn-primary" type="submit" id="button" name="inEdit_<& userid &>" value="<& userid &>" onclick="alert('Changing IP Address for a user will change IP Address of all the subdomains and addon domains created under the user!')" ><: Edit :></button></th>
</tr>
<% endloop %>
</tbody>
</table>
<@ CSFR_Tag @>
</form>
<% else %>
<: You have no client accounts at this time. :>
<% endif %>
</div>
</div>