summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-06-24 15:41:21 +0000
committerTed Trask <ttrask01@yahoo.com>2008-06-24 15:41:21 +0000
commit09584e26d2022c19e6323cba4c03ab64af928190 (patch)
treeed16b8210327853cf9373fb154c24da50dc45dfa
parent2afe41dc301b4407ead63e34f90db6083212473c (diff)
downloadacf-alpine-conf-09584e26d2022c19e6323cba4c03ab64af928190.tar.bz2
acf-alpine-conf-09584e26d2022c19e6323cba4c03ab64af928190.tar.xz
Forgot to add lbu-listbackups-html.lsp file.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@1254 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--lbu-listbackups-html.lsp39
1 files changed, 39 insertions, 0 deletions
diff --git a/lbu-listbackups-html.lsp b/lbu-listbackups-html.lsp
new file mode 100644
index 0000000..ad26069
--- /dev/null
+++ b/lbu-listbackups-html.lsp
@@ -0,0 +1,39 @@
+<? local view, viewlibrary, pageinfo, session = ...
+require("viewfunctions")
+?>
+<?
+--[[ DEBUG INFORMATION
+io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
+io.write(html.cfe_unpack(view))
+io.write("</span>")
+--]]
+?>
+
+<H1>Backup Archive</H1>
+<DL>
+<? if #view.value == 0 then ?>
+No backup files
+<? else
+ local selected = false ?>
+ <table><tr>
+ <td class="header">Action</td>
+ <td class="header">File</td>
+ </tr>
+ <? for i,name in ipairs(view.value) do ?>
+ <tr><td>
+ <?= html.link{value="deletebackup?backup="..name, label="Delete "} ?>
+ <? if name == view.selected then
+ selected = true ?>
+ selected
+ <? else ?>
+ <?= html.link{value="selectbackup?backup="..name, label="Select "} ?>
+ <? end ?>
+ </td>
+ <td><?= name ?></td></tr>
+ <? end
+ if not selected then ?>
+ Warning!! Selecting a backup file will cause the current lbu overlay to be lost!!
+ <? end
+end ?>
+</table>
+</DL>