forked from chilek/lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dblist.html
77 lines (74 loc) · 3.56 KB
/
dblist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{include file="header.html"}
<!--// $Id$ //-->
<H1>{$layout.pagetitle}</H1>
<script type="text/javascript">
<!--
function createBackup(gzip)
{
var add = "";
if(gzip)
add += "&gz=1";
if(document.statsitem.attachstats.checked)
add += "&stats=1";
document.statsitem.action = "?m=dbnew" + add;
document.statsitem.submit();
}
//-->
</script>
<FORM METHOD="POST" ACTION="?m=dbnew" name="statsitem">
<INPUT type="submit" class="hiddenbtn">
<TABLE width="100%" cellpadding="3">
<TR CLASS="dark">
<TD class="fleftu" width="98%">
<IMG src="img/time.gif" alt=""> <B>{trans("Creation time:")}</B>
</TD>
<TD class="fbt" width="1%" nowrap>
<IMG src="img/plain.gif" alt=""> {trans("Size:")}
</TD>
<TD class="frightu" width="1%" align="right" nowrap>
<IMG src="img/empty.gif" alt="" height="16" width="1"><B> {t a=$dblist.total}Total: $a{/t}</B>
</TD>
</TR>
{cycle values="light,lucid" print=false}
{section name=dblist loop=$dblist.time}
<TR class="{cycle}{if $dblist.dbv[dblist] != $layout.dbschversion} blend{/if}" onmouseover="addClass(this, 'highlight')" onmouseout="removeClass(this, 'highlight')">
<TD class="fleft" width="98%" onClick="return self.location.href='?m=dbview&db={$dblist.name[dblist]}&file=/lms-{$dblist.time[dblist]|date_format:"%Y%m%d-%H%M%S"}.sql{if $dblist.type[dblist]=="gz"}.gz{elseif $dblist.type[dblist]=="plain"}{/if}';">
<IMG src="img/time.gif" alt=""> {$dblist.time[dblist]|date_format:"%x %X (%A)"}
</TD>
<TD width="1%" align="right" onClick="return self.location.href='?m=dbview&db={$dblist.name[dblist]}&file=/lms-{$dblist.time[dblist]|date_format:"%Y%m%d-%H%M%S"}.sql{if $dblist.type[dblist]=="gz"}.gz{elseif $dblist.type[dblist]=="plain"}{/if}';" nowrap>
{if $dblist.type[dblist]=="gz"}
<IMG src="img/zipped.gif" alt="">
{else}
<IMG src="img/plain.gif" alt="">
{/if} {$dblist.size[dblist]} {trans("bytes")}
</TD>
<TD class="fright" width="1%" align="right" nowrap>
<nobr>
{if $dblist.dbv[dblist] == $layout.dbschversion}
<a href="?m=dbrecover&db={$dblist.name[dblist]}{if $dblist.type[dblist]=="gz"}&gz=1{elseif $dblist.type[dblist]=="plain"}{/if}" onClick="return confirmLink(this, '{trans("Are you sure, you want to restore this database backup?")}\n{trans("WARNING! It will backup current database content automatically")}')"><IMG src="img/recover.gif" alt="[ {trans("Restore")} ]" title="[ {trans("Restore")} ]"></A>
{/if}
<a href="?m=dbdel&db={$dblist.name[dblist]}" onClick="return confirmLink(this, '{trans("Are you sure, you want to delete this database backup?")}')"><IMG src="img/delete.gif" alt="[ {trans("Delete")} ]" title="[ {trans("Delete")} ]"></A>
<A href="?m=dbview&db={$dblist.name[dblist]}&file=/lms-{$dblist.time[dblist]|date_format:"%Y%m%d-%H%M%S"}.sql{if $dblist.type[dblist]=="gz"}.gz{elseif $dblist.type[dblist]=="plain"}{/if}"><img src="img/save.gif" alt="[ {trans("Save")} ]" title="[ {trans("Save")} ]"></A>
</nobr>
</TD>
</TR>
{sectionelse}
<TR>
<TD colspan="3" class="flr" width="100%" align="center">
<p> </p>
<p><B>{trans("Database backups currently not found.")}</B></p>
<p> </p>
</TD>
</TR>
{/section}
<TR class="light">
<TD colspan="3" width="100%" align="right" class="fall">
<INPUT type="checkbox" name="attachstats" id="attachstats"> <label for="attachstats">{trans("Attach stats")}</label>
{trans("Create new")}
<A HREF="javascript:createBackup(false);">{trans("uncompressed")} <img src="img/dbnew.gif" alt=""></A> /
<A HREF="javascript:createBackup(true);">{trans("compressed")} <img src="img/zipped.gif" alt=""></A>
</TD>
</TR>
</TABLE>
</FORM>
{include file="footer.html"}