source: extensions/db_backup/db_backup_admin.tpl @ 4339

Last change on this file since 4339 was 3698, checked in by repie38, 15 years ago

create db_backup extension for repie38

File size: 3.6 KB
Line 
1<div class="titrePage">
2  <h2>db backup</h2>
3</div>
4<p>{'db_backup_summary'|@translate}</p>
5
6{if $DB_BACKUP_PROCESS}
7<form method="post" action="{$TESTPLUGIN_F_ACTION}" class="general" id="stepbystepform" name="stepbystepform">
8<input type="text" name="table_quantity" value="{$DB_BACKUP_TABLE_QUANTITY}" style="display:none;" /><br />
9<input type="checkbox" name="saveToserver" {$DB_BACKUP_SAVING_STEP} style="display:none;" /><br />
10<textarea rows="10" cols="90" name="table_segment" style="display:none;" >{$DB_BACKUP_TABLE_SEGMENT}</textarea><br />
11<input type="text" name="filename" value="{$DB_BACKUP_FILENAME}" style="display:none;" /><br />
12<input type="text" name="table_current" value="{$DB_BACKUP_TABLE_CURRENT}" style="display:none;" /><br />
13<input type="checkbox" name="step_by_step" checked style="display:none;" />
14<textarea rows="10" cols="90" name="tables" style="display:none;" />{$DB_BACKUP_PROCESS}</textarea>
15<p>{'db_backup_processing'|@translate}</p>
16<div id="meterbox" style="z-index:0;height:11px;width:95%;padding:3px;border:1px solid #ff3366;margin:0 auto;">
17<div id="meter" style="height:11px;background-color:#ff3366;width:{$DB_BACKUP_TABLE_PERCENT}%;text-align:center;"></div>
18<div style="height:11px;width:80%;padding-left:50%;z-index:4;position:relative;top:-11px;font-size:7pt;color:white">{$DB_BACKUP_TABLE_PERCENT} %</div>
19</div>
20<noscript><p><input type="submit" value="{'db_backup_continue_process'|@translate}"  /></p></noscript>
21<script LANGUAGE="JavaScript">setTimeout("document.stepbystepform.submit()",200);</script>
22</form>
23{else}
24
25<form method="post" action="{$TESTPLUGIN_F_ACTION}" class="general" id="dbbackupform" name="dbbackupform">
26{if !empty($db_backupfilesid)}
27<fieldset>
28                <legend>{'db_backup_existing_section'|@translate}</legend>
29<table>
30        <tr><td>
31                <select name="db_backupfiles" size="{if (($db_backupfilesid|@count)<4)}4{else}{$db_backupfilesid|@count}{/if}" style="float:left;margin-right:10px;">
32                {html_options output=$db_backupfilesid values=$db_backupfilesid }
33                </select></p><p style="float:left;">
34        </td><td>
35                <input type="submit" value="{'db_backup_erase'|@translate}" name="submit" />
36                <br /><br />
37                <input type="submit" value="{'db_backup_download'|@translate}" name="submit" />
38        </td></tr>
39</table>
40
41</fieldset>
42{/if}
43
44<table>
45  <tr>
46        <td>{'db_backup_whole_db'|@translate}</td>
47        <td><input type="checkbox" name="wholeDb" onClick="if (this.checked) {ldelim}document.getElementById('onlyHistory').checked=false;}"/></td>
48  </tr>
49  <tr>
50        <td>{'db_backup_only_history'|@translate}</td>
51        <td><input type="checkbox" id="onlyHistory" name="onlyHistory" onClick="if (this.checked) {ldelim}document.getElementById('excludeHistory').checked=false;document.getElementById('wholeDb').checked=false;}"  /></td>
52  </tr>
53  <tr>
54        <td>{'db_backup_exclude_history'|@translate}</td>
55        <td><input type="checkbox" id="excludeHistory" name="excludeHistory" onClick="if (this.checked) {ldelim}document.getElementById('onlyHistory').checked=false;}"  /></td>
56  </tr>
57  <tr>
58        <td>{'db_backup_save_to_server'|@translate}</td>
59        <td><input type="checkbox" name="saveToserver" /></td>
60  </tr>
61  <tr>
62        <td>{'db_backup_step_by_step'|@translate}</td>
63        <td><input type="checkbox" name="step_by_step" /></td>
64  </tr>
65</table>
66<p><input type="submit" value="{'db_backup_dump'|@translate}" name="submit" /></p>
67
68{if $DB_BACKUP_SQL_OUTPUT}
69        <fieldset>
70                <legend>{'db_backup_output_section'|@translate}</legend>
71
72                <p><textarea rows="30" cols="90" name="text" id="text" style="width:99%">{$DB_BACKUP_SQL_OUTPUT}</textarea></p>
73        </fieldset>
74{/if}
75</form>
76{/if}
Note: See TracBrowser for help on using the repository browser.