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
Show line numbers
#if($action && $action == "export") #if($confirm && $confirm == 1) #if($recurse && $recurse == 1) #set($recurse = true) #else #set($recurse = false) #end #if($withversion && $withversion == 1) #set($withversion = true) #else #set($withversion = false) #end #set($result = $AppManager.exportApplicationXAR($appname, $recurse, $withversion)) #if ($result == $Exception.ERROR_NOERROR) #info($msg.get("xapp.successexportapp", [$appname])) #elseif ($result == $Exception.ERROR_XWIKI_ACCESS_DENIED) #error($msg.get("notallowed")) #else #error($msg.get("xapp.errorexportapp", [$appname, $result])) #end #else <form id="exportForm" action="" method="get"> #xwikimessageboxstart($msg.get("xapp.answer.exportapp.title", [$appname]) "") <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /> <input type="hidden" id="confirm" name="confirm" value="1" /> <input type="hidden" id="action" name="action" value="$action" /> <input type="hidden" id="appname" name="appname" value="$appname" /> <input type="checkbox" id="recurse" name="recurse" value="1" checked="checked"/><label for="recurse">$msg.get("xapp.answer.exportapp.recursive")</label><br/> <input type="checkbox" id="withdetails" name="withdetails" value="1"/><label for="withdetails">$msg.get("xapp.answer.exportapp.withdetails")</label> #submitButton("exportok", $null, $msg.get("ok")) #xwikimessageboxend() </form> #end #end