forked from hummypkg/webif
0f1bbed6b9
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1789 2a923420-c742-0410-a762-8d5b09965624
67 lines
1.9 KiB
Plaintext
Executable File
67 lines
1.9 KiB
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
source /mod/webif/lib/setup
|
|
require altrow rsv.class
|
|
|
|
jscss /cgi-bin/backup/backup.js
|
|
puts {
|
|
<h2>Backup/Restore</h2>
|
|
|
|
<div id=restore_warning class="hidden warningbox">
|
|
<div>
|
|
<center>
|
|
<b>!!!!!!!!!!!!!! PLEASE NOTE !!!!!!!!!!!!!!
|
|
<br><br>
|
|
After restoring the scheduled recordings you <b>MUST</b> restart the box using
|
|
the link at the top of the screen or via the remote control.
|
|
</div></div>
|
|
|
|
<div style="clear: both; float: left; width: 40%; border: 1px solid grey;
|
|
padding: 1em">
|
|
To create a backup of your current favourite channel configuration and
|
|
scheduled recordings, enter a name in the box below and click the button.
|
|
A suggested name has been entered for you.
|
|
|
|
<p>
|
|
}
|
|
|
|
puts "<input type=text size=30 maxlength=50 id=backup_name name=file
|
|
class=\"text ui-widget-content ui-corner-all\"
|
|
value=\"[clock format [clock seconds] -format "backup-%Y-%b-%d-%H:%M"]\">"
|
|
puts "<button id=backup_button>Create Backup</button>"
|
|
|
|
puts {
|
|
<br>
|
|
<div id=backup_working class=va style="display: none;">
|
|
<img class=va src=/img/loading.gif>
|
|
<font class=footnote>Backing up...</font>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id=backup_files_outer
|
|
style="float: left; width: 40%; border: 1px solid grey; margin-left: 1em;
|
|
padding: 0 1em 1em 1em">
|
|
<h3>Available Backups</h3>
|
|
<div id=backup_files style="padding: 0 0 0 2em">
|
|
<img src=/img/loading.gif>Retrieving list of backups...
|
|
</div>
|
|
<br>
|
|
<button id=restore_button disabled>Restore Backup</button>
|
|
<button id=delete_button disabled>Delete Backup</button>
|
|
<button id=view_button disabled>View Backup</button>
|
|
<br>
|
|
<div id=restore_working class=va style="display: none;">
|
|
<img class=va src=/img/loading.gif>
|
|
<font class=footnote>Restoring...</font>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id=results class=pre
|
|
style="display: none; clear: both; float: left; padding: 1em;
|
|
margin-top: 1em; border: 1px solid grey; width: 70%">
|
|
</div>
|
|
}
|
|
|