| 1 | = ZOO Demo: odt converter = |
| 2 | |
| 3 | {{{ |
| 4 | #!html |
| 5 | <div class="post"> |
| 6 | <form id="form1" action="index.php" method="post" enctype="multipart/form-data"> |
| 7 | <table class="docConverter"> |
| 8 | <tr> |
| 9 | <td valign="top"> |
| 10 | <p>Browse and upload an .odt document:</p> |
| 11 | <div> |
| 12 | <div style="display:none"> |
| 13 | <input type="file" name="Filedata" id="Filedata" /> |
| 14 | </div> |
| 15 | </div> |
| 16 | </td> |
| 17 | <td> |
| 18 | <input type="text" class="qrinput" disabled="true" id="txtFileName" /> |
| 19 | <span id="spanButtonPlaceHolder"></span> |
| 20 | <div style="display:none" id="ustatus"> |
| 21 | <p><span id="tdPercentUploaded"></span></p> |
| 22 | <p>Size Uploaded <span id="tdSizeUploaded"></span></p> |
| 23 | </div> |
| 24 | </td> |
| 25 | </tr> |
| 26 | <tr> |
| 27 | <td valign="top"><p>Select an outout format:</p></td> |
| 28 | <td> |
| 29 | <div id="runProcess" > |
| 30 | <select class="select" id="format" disable="true"> |
| 31 | <option value='doc'>.doc</option> |
| 32 | <option value='rtf'>.rtf</option> |
| 33 | <option value='pdf'>.pdf</option> |
| 34 | </select> |
| 35 | </div> |
| 36 | </td> |
| 37 | </tr> |
| 38 | <tr> |
| 39 | <td valign="top"><p>Download your new document:</p><p id="uloading" style="display: none">Loading, please wait ...</p></td> |
| 40 | <td> |
| 41 | <p><input onclick="try{runExportDocument();}catch(e){}" id="QROK" disable="true" type="buton" value="OK" class="qrOK" />  <a style="display:none" href="#" id="newdoc">test.pdf (9ko)</a></p> |
| 42 | </td> |
| 43 | </tr> |
| 44 | </table> |
| 45 | </form> |
| 46 | </div> |
| 47 | |
| 48 | <script> |
| 49 | /* $(document).ready(function(){ |
| 50 | $("select, input:checkbox, input:radio, input:file").uniform(); |
| 51 | }); |
| 52 | */ |
| 53 | </script> |
| 54 | |
| 55 | <div class="post"> |
| 56 | <h2>Description</h2> |
| 57 | <p>The ZOO Doc converter demo is using OpenOffice Server to convert .odt documents on the fly.</p> |
| 58 | |
| 59 | </div> |
| 60 | |
| 61 | <script type="text/javascript"> |
| 62 | var settings = { |
| 63 | flash_url : "../swfupload-dist/swfupload.swf", |
| 64 | upload_url: "upload.php", |
| 65 | file_size_limit : "4 MB", |
| 66 | file_types : "*.odt", |
| 67 | file_types_description : "OpenOffice Document Text (.odt)", |
| 68 | file_upload_limit : 100, |
| 69 | file_queue_limit : 0, |
| 70 | |
| 71 | debug: false, |
| 72 | |
| 73 | // Button settings |
| 74 | button_image_url: "images/XPButtonUploadText_61x22.png", |
| 75 | button_width: "61", |
| 76 | button_height: "22", |
| 77 | button_placeholder_id: "spanButtonPlaceHolder", |
| 78 | file_post_name: "Filedata", |
| 79 | |
| 80 | |
| 81 | moving_average_history_size: 40, |
| 82 | |
| 83 | // The event handler functions are defined in handlers.js |
| 84 | file_queued_handler : fileQueued, |
| 85 | file_dialog_complete_handler: fileDialogComplete, |
| 86 | upload_start_handler : uploadStart, |
| 87 | upload_progress_handler : uploadProgress, |
| 88 | upload_success_handler : uploadSuccess, |
| 89 | upload_complete_handler : uploadComplete, |
| 90 | |
| 91 | custom_settings : { |
| 92 | tdFilesQueued : document.getElementById("tdFilesQueued"), |
| 93 | tdFilesUploaded : document.getElementById("tdFilesUploaded"), |
| 94 | tdErrors : document.getElementById("tdErrors"), |
| 95 | tdCurrentSpeed : document.getElementById("tdCurrentSpeed"), |
| 96 | tdAverageSpeed : document.getElementById("tdAverageSpeed"), |
| 97 | tdMovingAverageSpeed : document.getElementById("tdMovingAverageSpeed"), |
| 98 | tdTimeRemaining : document.getElementById("tdTimeRemaining"), |
| 99 | tdTimeElapsed : document.getElementById("tdTimeElapsed"), |
| 100 | tdPercentUploaded : document.getElementById("tdPercentUploaded"), |
| 101 | tdSizeUploaded : document.getElementById("tdSizeUploaded"), |
| 102 | tdProgressEventCount : document.getElementById("tdProgressEventCount") |
| 103 | } |
| 104 | }; |
| 105 | |
| 106 | var swfu = new SWFUpload(settings); |
| 107 | </script> |
| 108 | <div class="post"> |
| 109 | <h1 class="title">ZOO Demo: QR Creator</h1> |
| 110 | |
| 111 | <table class="docConverter"> |
| 112 | <tr> |
| 113 | <td valign="top"><p>Enter any valid URL:</p></td> |
| 114 | <td><input class='qrinput' id="qrinput" type='text' /><br></p></td> |
| 115 | </tr> |
| 116 | <tr> |
| 117 | <td valign="top"><p>Get new QR code:</p></td> |
| 118 | <td><input type="buton" value="OK" class="qrOK" 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';" /></td> |
| 119 | </tr> |
| 120 | <tr> |
| 121 | <td> |
| 122 | <center><img id="qr_output" 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" /></center> |
| 123 | </td> |
| 124 | </tr> |
| 125 | </table> |
| 126 | |
| 127 | </div> |
| 128 | |
| 129 | <div class="post"> |
| 130 | <h2>Description</h2> |
| 131 | <p>The ZOO QR Creator demo is using the ZOO QR service to create QR codes dynamically.</p> |
| 132 | |
| 133 | }}} |