Current File : //root/panel/modules/backupmgr/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 @>
<@ CreateBackupDirectory @>
<div class="zform_wrapper">
<h2><: Automatic Backup Settings :></h2>
<form name="LaunchBackup" action="./?module=backupmgr&action=operation" method="post" >
<table class="table table-striped">
<tr>
<th nowrap="nowrap">
<input type="radio" name="backup_type" Id="disable_backup" value="disable_backup" <@ checkeddisable @> > <label for="disable_backup" >Disable Backup</label>
<input type="radio" name="backup_type" Id="weekly_backup" value="weekly" <@ checkedweekly @> > <label for="weekly_backup" >Weekly Backup</label>
<input type="radio" name="backup_type" Id="monthly_backup" value="monthly" <@ checkedmonthly @> > <label for="monthly_backup" >Monthly Backup</label>
</th>
</tr>
<tr>
<td nowrap="nowrap"><button class="btn btn-primary" type="submit" name="inSave" value="<@ UserID @>"><: Save Settings :></button></td>
</tr>
<input type="hidden" name="current_user_id" Id="current_user_id" value="<@ UserID @>" />
</table>
</form>
</div>
<div class="zform_wrapper">
<h2><: Backup your hosting account files :></h2>
<% if HasData %>
<form name="LaunchBackup" action="modules/backupmgr/code/launchbackup.php?id=<@ UserID @>" target="backup" method="post" onsubmit="var w=window.open('', 'backup', 'scrollbars=no,menubar=no,height=300,width=600,resizable=no,toolbar=no,location=no,status=no'); w.focus();">
<table class="table table-striped">
<tr>
<th nowrap="nowrap"><button class="btn btn-primary" type="submit" name="inBackUp" value="<@ UserID @>"><: Launch :></button></th>
<td><: Backups your data whilst you wait and then prompt's you to download the backup archive. :></td>
</tr>
</table>
</form>
<% else %>
<: There are no files in your public folder to back up. :>
<% endif %>
</div>
<div class="zgrid_wrapper">
<h2><: Backup Archives :></h2>
<% if BackUpList %>
<% if PurgeDate %>
<p><: Archived files will automatically be deleted when they are older than :> <b><@ PurgeDate @></b> <: days :>.</p>
<% endif %>
<a href="./?module=backupmgr" title="<: Refresh archive list :>"><: Refresh archive list :></a><br><br>
<form action="./?module=backupmgr&action=DeleteBackup" method="post">
<table class="table table-striped">
<tr>
<th></th>
<th><: Location :></th>
<th><: File :></th>
<th><: File Size :></th>
<th></th>
</tr>
<% loop BackUpList %>
<tr>
<td width="16px"><img src="<@ ModulePath @>assets/backup_icon.png" border="0" /></td>
<!--
<td width="16px"><input type="image" src="<@ ModulePath @>assets/delete_small.png" name="inDelete_<& backupfile &>" id="inDelete_<& backupfile &>" value="<& backupfile &>" title="<: DELETE BACKUP :>" /></td>
-->
<td width="50px"><@ FileLocation @></td>
<td><& backupfile &>.zip</td>
<td><b><& filesize &></b></td>
<td><button class="button-loader delete btn btn-danger" type="submit" name="inDelete_<& backupfile &>" id="inDelete_<& backupfile &>" value="<& backupfile &>"><: Delete Backup :></button></td>
</tr>
<% endloop %>
</table>
<@ CSFR_Tag @>
</form>
<% else %>
<% if DiskAllowed %>
<p><: You have no backups at this time. If you have just created a backup then try refreshing :>: <a href="./?module=backupmgr" title="<: Refresh archive list :>"><: Refresh archive list :></a></p>
<% else %>
<p><: Backup to disk is not enabled on the server. You may still download backups directly to your computer through your browser. :>
<% endif %>
<% endif %>
</div>
</div>