General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
XAppCode
▼
:
Document Index
»
Page:
ExportAppCode
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Main wiki
»
Applications manager
»
Space XAppCode
»
ExportAppCode
Wiki source code of
ExportAppCode
Last modified by
Administrator
on 2012/03/21 17:41
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: #if($action && $action == "export") 2: #if($confirm && $confirm == 1) 3: #if($recurse && $recurse == 1) 4: #set($recurse = true) 5: #else 6: #set($recurse = false) 7: #end 8: #if($withversion && $withversion == 1) 9: #set($withversion = true) 10: #else 11: #set($withversion = false) 12: #end 13: #set($result = $AppManager.exportApplicationXAR($appname, $recurse, $withversion)) 14: #if ($result == $Exception.ERROR_NOERROR) 15: #info($msg.get("xapp.successexportapp", [$appname])) 16: #elseif ($result == $Exception.ERROR_XWIKI_ACCESS_DENIED) 17: #error($msg.get("notallowed")) 18: #else 19: #error($msg.get("xapp.errorexportapp", [$appname, $result])) 20: #end 21: #else 22: <form id="exportForm" action="" method="get"> 23: #xwikimessageboxstart($msg.get("xapp.answer.exportapp.title", [$appname]) "") 24: <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /> 25: <input type="hidden" id="confirm" name="confirm" value="1" /> 26: <input type="hidden" id="action" name="action" value="$action" /> 27: <input type="hidden" id="appname" name="appname" value="$appname" /> 28: 29: <input type="checkbox" id="recurse" name="recurse" value="1" checked="checked"/><label for="recurse">$msg.get("xapp.answer.exportapp.recursive")</label><br/> 30: <input type="checkbox" id="withdetails" name="withdetails" value="1"/><label for="withdetails">$msg.get("xapp.answer.exportapp.withdetails")</label> 31: 32: #submitButton("exportok", $null, $msg.get("ok")) 33: #xwikimessageboxend() 34: </form> 35: #end 36: #end