| | 1 | = Demo ODT converter = |
| | 2 | |
| | 3 | == Description == |
| | 4 | |
| | 5 | The ZOO Doc converter demo is using !OpenOffice Server to convert .odt documents on the fly. |
| | 6 | |
| | 7 | == Demo Form == |
| | 8 | |
| | 9 | {{{ |
| | 10 | #!html |
| | 11 | <form enctype="multipart/form-data" method="post" action="index.php" id="form1"> |
| | 12 | <table class="docConverter"> |
| | 13 | <tbody><tr> |
| | 14 | <td valign="top"> |
| | 15 | <p>Browse and upload an .odt document:</p> |
| | 16 | <div> |
| | 17 | <div style="display: none;"> |
| | 18 | <input type="file" id="Filedata" name="Filedata"> |
| | 19 | </div> |
| | 20 | </div> |
| | 21 | </td> |
| | 22 | <td> |
| | 23 | <input type="text" id="txtFileName" disabled="true" class="qrinput"> |
| | 24 | <object width="61" height="22" class="swfupload" data="../swfupload-dist/swfupload.swf?preventswfcaching=1291199686110" type="application/x-shockwave-flash" id="SWFUpload_0"><param value="window" name="wmode"><param value="../swfupload-dist/swfupload.swf?preventswfcaching=1291199686110" name="movie"><param value="high" name="quality"><param value="false" name="menu"><param value="always" name="allowScriptAccess"><param value="movieName=SWFUpload_0&uploadURL=%2Fupload.php&useQueryString=false&requeueOnError=false&httpSuccess=&assumeSuccessTimeout=0&params=&filePostName=Filedata&fileTypes=*.odt&fileTypesDescription=OpenOffice%20Document%20Text%20(.odt)&fileSizeLimit=4%20MB&fileUploadLimit=100&fileQueueLimit=0&debugEnabled=false&buttonImageURL=%2Fimages%2FXPButtonUploadText_61x22.png&buttonWidth=61&buttonHeight=22&buttonText=&buttonTextTopPadding=0&buttonTextLeftPadding=0&buttonTextStyle=color%3A%20%23000000%3B%20font-size%3A%2016pt%3B&buttonAction=-110&buttonDisabled=false&buttonCursor=-1" name="flashvars"></object> |
| | 25 | <div id="ustatus" style="display: none;"> |
| | 26 | <p><span id="tdPercentUploaded"></span></p> |
| | 27 | <p>Size Uploaded <span id="tdSizeUploaded"></span></p> |
| | 28 | </div> |
| | 29 | </td> |
| | 30 | </tr> |
| | 31 | <tr> |
| | 32 | <td valign="top"><p>Select an outout format:</p></td> |
| | 33 | <td> |
| | 34 | <div id="runProcess"> |
| | 35 | <select disable="true" id="format" class="select"> |
| | 36 | <option value="doc">.doc</option> |
| | 37 | |
| | 38 | <option value="rtf">.rtf</option> |
| | 39 | <option value="pdf">.pdf</option> |
| | 40 | </select> |
| | 41 | </div> |
| | 42 | </td> |
| | 43 | </tr> |
| | 44 | <tr> |
| | 45 | <td valign="top"><p>Download your new document:</p><p style="display: none;" id="uloading">Loading, please wait ...</p></td> |
| | 46 | |
| | 47 | <td> |
| | 48 | <p><input type="buton" class="qrOK" value="OK" disable="true" id="QROK" onclick="try{runExportDocument();}catch(e){}" /> <a id="newdoc" href="#" style="display: none;">test.pdf (9ko)</a></p> |
| | 49 | </td> |
| | 50 | </tr> |
| | 51 | |
| | 52 | </tbody></table> |
| | 53 | </form> |
| | 54 | }}} |
| | 55 | |
| | 56 | |
| | 57 | = QR Creator Demo = |
| | 58 | |
| | 59 | == Description == |
| | 60 | |
| | 61 | The ZOO QR Creator demo is using the ZOO QR service to create QR codes dynamically. |
| | 62 | |
| | 63 | == Demo Form == |
| | 64 | {{{ |
| | 65 | #!html |
| | 66 | <table class="docConverter"> |
| | 67 | <tbody><tr> |
| | 68 | <td valign="top"><p>Enter any valid URL:</p></td> |
| | 69 | <td><input type="text" id="qrinput" class="qrinput"><br></td> |
| | 70 | </tr> |
| | 71 | <tr> |
| | 72 | <td valign="top"><p>Get new QR code:</p></td> |
| | 73 | <td><input type="buton" onclick="document.getElementById('qr_output').src='http://160.193.16.171/zoosoo/?request=Execute&service=WPS&version=1.0.0&Identifier=QREncode&DataInputs=Text='+document.getElementById('qrinput').value+'&RawDataOutput=QR';" class="qrOK" value="OK"></td> |
| | 74 | </tr> |
| | 75 | <tr> |
| | 76 | <td> |
| | 77 | <center><img src="http://160.193.16.171/zoosoo/?request=Execute&service=WPS&version=1.0.0&Identifier=QREncode&DataInputs=Text=http://160.193.16.171/&RawDataOutput=QR" id="qr_output"></center> |
| | 78 | </td> |
| | 79 | </tr> |
| | 80 | </tbody></table> |
| | 81 | }}} |
| | 82 | |
| | 83 | |
| | 84 | {{{ |
| | 85 | #!html |
| | 86 | <script type="text/javascript"> |
| | 87 | var settings = { |
| | 88 | flash_url : "/swfupload-dist/swfupload.swf", |
| | 89 | upload_url: "upload.php", |
| | 90 | file_size_limit : "4 MB", |
| | 91 | file_types : "*.odt", |
| | 92 | file_types_description : "OpenOffice Document Text (.odt)", |
| | 93 | file_upload_limit : 100, |
| | 94 | file_queue_limit : 0, |
| | 95 | |
| | 96 | debug: false, |
| | 97 | |
| | 98 | // Button settings |
| | 99 | button_image_url: "images/XPButtonUploadText_61x22.png", |
| | 100 | button_width: "61", |
| | 101 | button_height: "22", |
| | 102 | button_placeholder_id: "spanButtonPlaceHolder", |
| | 103 | file_post_name: "Filedata", |
| | 104 | |
| | 105 | |
| | 106 | moving_average_history_size: 40, |
| | 107 | |
| | 108 | // The event handler functions are defined in handlers.js |
| | 109 | file_queued_handler : fileQueued, |
| | 110 | file_dialog_complete_handler: fileDialogComplete, |
| | 111 | upload_start_handler : uploadStart, |
| | 112 | upload_progress_handler : uploadProgress, |
| | 113 | upload_success_handler : uploadSuccess, |
| | 114 | upload_complete_handler : uploadComplete, |
| | 115 | |
| | 116 | custom_settings : { |
| | 117 | tdFilesQueued : document.getElementById("tdFilesQueued"), |
| | 118 | tdFilesUploaded : document.getElementById("tdFilesUploaded"), |
| | 119 | tdErrors : document.getElementById("tdErrors"), |
| | 120 | tdCurrentSpeed : document.getElementById("tdCurrentSpeed"), |
| | 121 | tdAverageSpeed : document.getElementById("tdAverageSpeed"), |
| | 122 | tdMovingAverageSpeed : document.getElementById("tdMovingAverageSpeed"), |
| | 123 | tdTimeRemaining : document.getElementById("tdTimeRemaining"), |
| | 124 | tdTimeElapsed : document.getElementById("tdTimeElapsed"), |
| | 125 | tdPercentUploaded : document.getElementById("tdPercentUploaded"), |
| | 126 | tdSizeUploaded : document.getElementById("tdSizeUploaded"), |
| | 127 | tdProgressEventCount : document.getElementById("tdProgressEventCount") |
| | 128 | } |
| | 129 | }; |
| | 130 | |
| | 131 | var swfu; |
| | 132 | try{ swfu = new SWFUpload(settings); }catch(e){} |
| | 133 | </script> |
| | 134 | }}} |