@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb008 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
tmpl
/
cms
/
dialog
/
Path :
Upload File :
New :
File
Dir
//homepage/v-mt/tmpl/cms/dialog/restore_upload.tmpl
<$mt:setvar name="page_title" value="<__trans phrase="Restore: Multiple Files">"$> <mt:setvarblock name="html_head" append="1"> <script type="text/javascript" src="<mt:var name="static_uri">js/tc/client.js"></script> <script type="text/javascript" src="<mt:var name="static_uri">js/tc/json.js"></script> <script type="text/javascript" src="<mt:var name="static_uri">js/dialog.js"></script> <script type="text/javascript"> <!-- var dialog; var panels; function dialog_closed(ok) { if (ok) { var frm = document['restore']; frm.submit(); } else { <mt:if name="is_dirty"> var a = confirm('<__trans phrase="Canceling the process will create orphaned objects. Are you sure you want to cancel the restore operation?" escape="js">'); if (!a) { return false; } </mt:if> <mt:unless name="start"> closeDialog('<mt:var name="script_url">?__mode=restore_premature_cancel&magic_token=<mt:var name="magic_token">&deferred_json=<mt:var name="deferred_json" escape="url">'); <mt:else> closeDialog(''); </mt:unless> } } function init() { dialog = new Dialog.MultiPanel("restore"); panels = []; var panel; panel = new ListingPanel("<mt:var name="name">"); panel.label = "<mt:var name="name">"; panels[panels.length] = panel; dialog.setPanels(panels); dialog.open({}, dialog_closed); var next = TC.getElementsByTagAndClassName("input", "next", getByID('<mt:var name="name">-panel')); if (next) { this.nextButton = next[0]; this.nextButton.onclick = function() { document['restore_form'].submit(); }; } } TC.attachLoadEvent(init); //--> </script> </mt:setvarblock> <mt:include name="dialog/header.tmpl"> <mt:if name="error"> <mtapp:statusmsg id="generic-error" class="error"> <mt:var name="error"> </mtapp:statusmsg> </mt:if> <div id="<mt:var name="name">-panel" class="hidden panel"> <form name="restore_form" id="restore_form" method="post" enctype="multipart/form-data" action="<mt:var name="script_url">"> <input type="hidden" name="__mode" value="dialog_restore_upload" /> <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" /> <input type="hidden" name="files" value="<mt:var name="files">" /> <input type="hidden" name="assets" value="<mt:var name="assets" escape="html">" /> <input type="hidden" name="current_file" value="<mt:var name="name">" /> <input type="hidden" name="last" value="<mt:var name="last">" /> <input type="hidden" name="is_dirty" value="<mt:var name="is_dirty">" /> <input type="hidden" name="is_asset" value="<mt:var name="is_asset">" /> <input type="hidden" name="schema_version" value="<mt:var name="schema_version">" /> <input type="hidden" name="overwrite_templates" value="<mt:var name="overwrite_templates">" /> <input type="hidden" name="objects_json" value="<mt:var name="objects_json" escape="html">" /> <input type="hidden" name="deferred_json" value="<mt:var name="deferred_json" escape="html">" /> <mt:setvarblock name="restore_file_label"> <__trans phrase="Please upload the file [_1]" params="<em class="upload-file"><$mt:var name="name"$></em>"> </mt:setvarblock> <mtapp:setting id="restore_file" label="<$mt:var name="restore_file_label"$>" label_class="top-label" hint="" show_hint="0"> <input name="file" id="restore_file" type="file" size="50" /> </mtapp:setting> <div class="actions-bar"> <div class="actions-bar-inner pkg actions"> <button type="submit" accesskey="s" title="<__trans phrase="Continue (s)">" class="primary-button next" ><__trans phrase="Continue"></button> <button onclick="closeDialog(); return false" type="submit" accesskey="x" class="cancel" title="<__trans phrase="Cancel (x)">" ><__trans phrase="Cancel"></button> </div> </div> </form> </div> <mt:include name="dialog/footer.tmpl">