General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
OfficeImporter
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to your wiki
»
XWiki Space
»
Office Importer
Wiki source code of
Office Importer
Last modified by
Administrator
on 2011/03/02 17:34
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#set($ok = $xwiki.ssx.use("XWiki.OfficeImporter")) #if($isguest) #error($msg.get("xe.officeimporter.notallowed")) #elseif("$!{oomanager.serverState}" != "Connected") #if($hasAdmin) #error($msg.get("xe.officeimporter.error.adminuser")) #else #error($msg.get("xe.officeimporter.error.normaluser")) #end #else #if($request.page) #set($targetdoc = $xwiki.getDocument($request.page)) #end <div class="office_importer_box"> <form action="$xwiki.getURL('XWiki.OfficeImporterResults','view')" enctype="multipart/form-data" method="post"> <p class="office_importer_document"> <label for="filepath">$msg.get("xe.officeimporter.import.document") : </label> <input id="filepath" type="file" name="filePath" value="" size="40" onchange="javascript:XWiki.officeImporter.populateTargetPageInputField(this.value);"/></p> <h2>$msg.get("xe.officeimporter.import.target")</h2> <p class="office_importer_target"> <label for="targetSpaceInputId" class="inputtext"> <span>$msg.get("xe.officeimporter.import.targetspace") : </span> <input id="targetSpaceInputId" type="text" name="targetSpace" class="suggestSpaces suggested" value="$!{targetdoc.space}"/> </label> <label for="targetPageInputId" class="inputtext"> <span>$msg.get("xe.officeimporter.import.targetpage") : </span> <input id="targetPageInputId" name="targetPage" type="text" value="$!{targetdoc.name}" onchange="javascript:validateUserInputs();"/> </label> <label for="appendContentInputId" id="appenContent" class="radio"> <span>$msg.get("xe.officeimporter.import.appendresult") : </span> <input id="appendContentInputId" name="appendContent" type="checkbox" value="true" /></label> </p> <p class="help_message">$msg.get("xe.officeimporter.import.help.target")</p> <h2>$msg.get("xe.officeimporter.import.styles")</h2> <p class="office_importer_styles"> <label for="filterStylesInputId" class="radio">$msg.get("xe.officeimporter.import.filterstyles") : <input id="filterStylesInputId" name="filterStyles" type="checkbox" value="strict"/></label> </p> <p class="help_message">$msg.get("xe.officeimporter.import.help.styles")</p> <h2>$msg.get("xe.officeimporter.import.splitting")</h2> <div class="office_importer_splittingcontent"> <label for="splitDocumentInputId" class="radio"><span>$msg.get("xe.officeimporter.import.splitting.splitdocument") : </span><input id="splitDocumentInputId" name="splitDocument" type="checkbox" value="true"/></label> <p class="office_importer_splitting"> <label for="headingLevelsToSplitInputId" class="multipleselect"><span>$msg.get("xe.officeimporter.import.splitting.headinglevels") : </span> <select id="headingLevelsToSplitInputId" size="5" multiple="multiple" name="headingLevelsToSplit" class="headingLevelsToSplit">#foreach($h in [1..6]) <option value="${h}">$msg.get("xe.officeimporter.import.splitting.heading")-${h}</option>#end</select> </label> <label for="childPagesNamingMethodInputId" class="select"><span> $msg.get("xe.officeimporter.import.splitting.naming") : </span><select id="childPagesNamingMethodInputId" name="childPagesNamingMethod"><option value="headingNames">$msg.get("xe.officeimporter.import.splitting.naming.headingnames")</option><option value="mainPageNameAndHeading">$msg.get("xe.officeimporter.import.splitting.naming.mainpagenameandheading")</option><option value="mainPageNameAndNumbering">$msg.get("xe.officeimporter.import.splitting.naming.mainpagenameandnumbering")</option></select> </label> </p><p class="help_message">$msg.get("xe.officeimporter.import.help.splitting")</p> <input type="hidden" name="groovyFilter" value="" /> <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /> </div> <div class="office_importer_buttons"><span class="buttonwrapper"><input type="submit" value="$msg.get('xe.officeimporter.import.import')" class="button"/></span></div> </form> </div> #end {pre} <script type="text/javascript"> /* <![CDATA[ */ if (typeof(XWiki) == "undefined") { XWiki = new Object(); } if (typeof(XWiki.officeImporter) == 'undefined') { XWiki.officeImporter = new Object(); } XWiki.officeImporter.populateTargetPageInputField = function(fileName) { var dot = fileName.lastIndexOf("."); if (-1 != dot) { fileName = fileName.substring(0, dot); } fileName = fileName.replace(/[\.:]/g, "-"); document.getElementById("targetPageInputId").value = fileName; } /* ]]> */ </script> {/pre}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox