root/branches/release-29/tmpl/cms/backup.tmpl @ 1309

Revision 1309, 4.8 kB (checked in by ddavis, 22 months ago)

standarize js comment tag escape. BugzID:58265

Line 
1<mt:setvar name="page_title" value="<__trans phrase="Backup">">
2<$mt:setvar name="position_actions_bottom" value="1"$>
3<mt:setvar name="backup" value="1">
4<MTSetVarBlock name="content_nav">
5    <mt:include name="include/tools_content_nav.tmpl">
6</MTSetVarBlock>
7<mt:include name="include/header.tmpl">
8
9    <a href="javascript:void(0)" onclick="return openManual('backup_restore', 'backup_restore_main')" class="help-link">?</a>
10
11    <mt:if name="error">
12        <mtapp:statusmsg
13            id="generic-error"
14            class="error">
15            <mt:var name="error">
16        </mtapp:statusmsg>
17    </mt:if>
18<div id="backup-panel">
19    <form method="post" action="<mt:var name="script_url">">
20        <input type="hidden" name="__mode" value="backup" />
21        <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
22<mt:if name="blog_id">
23            <input type="hidden" id="blog_id" name="blog_id" value="<mt:var name="blog_id">" />
24            <input type="hidden" id="selected_blog_ids" name="backup_what" value="<mt:var name="blog_id">" />
25<mt:else>
26    <mtapp:setting
27        id="backup_what"
28        label="<__trans phrase="What to backup">"
29        content_class="field-content-text"
30        hint="<__trans phrase="This option will backup Users, Roles, Associations, Blogs, Entries, Categories, Templates and Tags.">"
31        help_page="backup_restore"
32        help_section="backup_what">
33<input type="hidden" id="selected_blog_ids" name="backup_what" value="" />
34<div><strong id="selected_blogs"><__trans phrase="Everything"></strong></div>
35<span id="selected_blogs_link" class="hidden"><a href="javascript:void(0);" onclick="document.getElementById( 'selected_blogs_link').className='hidden';var e=document.getElementById('selected_blogs');e.innerHTML='<__trans phrase="Everything" escape="js">';return false;"><__trans phrase="Reset"></a>&nbsp;|&nbsp;</span>
36<a href="javascript:void(0)" onclick="openDialog(false,'dialog_select_weblog','multi=1&amp;idfield=selected_blog_ids&amp;namefield=selected_blogs'); return false;">
37<__trans phrase="Choose blogs..."></a>
38    </mtapp:setting>
39</mt:if>
40    <mtapp:setting
41        id="backup_archive_format"
42        label="<__trans phrase="Archive Format">"
43        hint="<__trans phrase="The type of archive format to use.">"
44        help_page="backup_restore"
45        help_section="backup_format">
46    <mt:loop name="archive_formats">
47        <input type="radio" id="<mt:var name="key">" name="backup_archive_format" value="<mt:var name="key">"<mt:if name="__first__"> checked="checked"</mt:if> />
48        <label for="<mt:var name="key">"><mt:var name="label"></label>
49        <mt:if name="__last__"><mt:servar name="format_available"></mt:if>
50    </mt:loop>
51        <input type="radio" id="no_archive" name="backup_archive_format" value="0"<mt:unless name="format_available"> checked="checked"</mt:unless> />
52        <label for="no_archive"><__trans phrase="Don't compress"></label>
53    </mtapp:setting>
54    <mtapp:setting
55        id="size_limit"
56        label="<__trans phrase="Target File Size">"
57        hint="<__trans phrase="Approximate file size per backup file.">"
58        help_page="backup_restore"
59        help_section="backup_num_size">
60                    <select name="size_limit" id="size_limit">
61                        <option value="0" selected="selected"><__trans phrase="Don't Divide"></option>
62<mt:if name="OVER_300">
63                        <option value="300">300KB</option>
64    <mt:if name="OVER_500">
65                        <option value="500">500KB</option>
66        <mt:if name="OVER_1024">
67                        <option value="1024">1MB</option>
68            <mt:if name="OVER_2048">
69                        <option value="2048">2MB</option>
70            </mt:if>
71        </mt:if>
72    </mt:if>
73</mt:if>
74                    </select>
75    </mtapp:setting>
76        <mt:setvarblock name="action_buttons">
77            <button
78                type="submit"
79                accesskey="b"
80                title="<__trans phrase="Make Backup (b)">"
81                class="primary-button"
82                ><__trans phrase="Make Backup"></button>
83        </mt:setvarblock>
84        <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">
85    </form>
86</div>
87
88<MTIgnore>
89   
90    <!-- THE FOLLOWING CODE NEEDS TO BE ADDED TO THE onload EVENT FOR THIS PAGE. -->
91    <!-- This edit was made to allow use of the common footer. -->
92   
93    <mt:if name="open_dialog">
94    <script type="text/javascript">
95    /* <![CDATA[ */
96    openDialog(false, 'dialog_restore_upload', 'magic_token=<mt:var name="magic_token">&amp;files=<mt:var name="files">&amp;assets=<mt:var name="assets">&amp;current_file=<mt:var name="filename">&amp;last=<mt:var name="last">&amp;schema_version=<mt:var name="schema_version">&amp;redirect=1;');
97    /* ]]> */
98    </script>
99    </mt:if>
100</MTIgnore>
101
102<mt:include name="include/footer.tmpl">
Note: See TracBrowser for help on using the browser.