Guest User

Untitled

a guest
Feb 18th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.34 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Form Upload</title>
  5. <!--[if IE]>
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <![endif]-->
  8. <meta charset="utf-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10.  
  11. <!-- Bootstrap styles -->
  12. <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
  13. <!-- blueimp Gallery styles -->
  14. <link rel="stylesheet" href="http://blueimp.github.io/Gallery/css/blueimp-gallery.min.css">
  15. <!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
  16. <link rel="stylesheet" href="./css/jquery.fileupload.css">
  17. <link rel="stylesheet" href="./css/jquery.fileupload-ui.css">
  18. <!-- CSS adjustments for browsers with JavaScript disabled -->
  19. <noscript><link rel="stylesheet" href="./css/jquery.fileupload-noscript.css"></noscript>
  20. <noscript><link rel="stylesheet" href="./css/jquery.fileupload-ui-noscript.css"></noscript>
  21. </head>
  22.  
  23. <body>
  24.  
  25. <div style="width: 800px; text-align: center; margin: 0 auto;">
  26.  
  27. <!-- The file upload form used as target for the file upload widget -->
  28. <form id="fileupload" action="./post.0.fileUpload.php" method="POST" enctype="multipart/form-data">
  29. <input type="hidden" name="token" value="<?=$_GET['token'];?>">
  30. <input type="hidden" name="appID" value="<?=$_GET['appID'];?>">
  31. <input type="hidden" name="uaID" value="<?=$_GET['uaID'];?>">
  32. <input type="hidden" name="uID" value="<?=$_GET['uID'];?>">
  33. <input type="hidden" name="applicationKey" value="<?=$_GET['applicationKey'];?>">
  34.  
  35. <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
  36. <div class="row fileupload-buttonbar">
  37. <div class="col-lg-7" style="width: 585px; margin: 0 auto 0 140px;">
  38.  
  39. <!-- The fileinput-button span is used to style the file input field as button -->
  40. <span class="btn btn-success fileinput-button">
  41. <i class="glyphicon glyphicon-plus"></i>
  42. <span>Add files...</span>
  43. <input type="file" name="files[]" multiple>
  44. </span>
  45.  
  46. <button type="submit" class="btn btn-primary start">
  47. <i class="glyphicon glyphicon-upload"></i>
  48. <span>Start upload</span>
  49. </button>
  50.  
  51. <button type="reset" class="btn btn-warning cancel">
  52. <i class="glyphicon glyphicon-ban-circle"></i>
  53. <span>Cancel upload</span>
  54. </button>
  55.  
  56. <button type="button" class="btn btn-danger delete">
  57. <i class="glyphicon glyphicon-trash"></i>
  58. <span>Delete selected</span>
  59. </button>
  60.  
  61. <input type="checkbox" class="toggle" style="margin-left: 10px;">
  62.  
  63. <!-- The global file processing state -->
  64. <span class="fileupload-process"></span>
  65.  
  66. </div>
  67.  
  68. <!-- The global progress state -->
  69. <div class="col-lg-5 fileupload-progress fade" style="width: 450px; margin: 0 auto 0 210px;">
  70.  
  71. <!-- The global progress bar -->
  72. <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
  73.  
  74. <div class="progress-bar progress-bar-success" style="width:0%;"></div>
  75.  
  76. </div>
  77.  
  78. <!-- The extended global progress state -->
  79. <div class="progress-extended">&nbsp;</div>
  80.  
  81. </div>
  82. </div>
  83.  
  84. <!-- The table listing the files available for upload/download -->
  85. <table role="presentation" class="table table-striped"><tbody class="files"></tbody></table>
  86.  
  87. </form>
  88.  
  89. </div>
  90.  
  91. <!-- The blueimp Gallery widget -->
  92. <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
  93. <div class="slides"></div>
  94. <h3 class="title"></h3>
  95. <a class="prev">‹</a>
  96. <a class="next">›</a>
  97. <a class="close">×</a>
  98. <a class="play-pause"></a>
  99. <ol class="indicator"></ol>
  100. </div>
  101.  
  102. <!-- The template to display files available for upload -->
  103. <script id="template-upload" type="text/x-tmpl">
  104. {% for (var i=0, file; file=o.files[i]; i++) { %}
  105. <tr class="template-upload fade">
  106. <td><span class="preview"></span></td>
  107. <td><p class="name">{%=file.name%}</p> <strong class="error text-danger"></strong></td>
  108. <td><p class="size">Processing...</p>
  109. <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div></td>
  110. <td>
  111. {% if (!i && !o.options.autoUpload) { %}
  112. <button class="btn btn-primary start" disabled>
  113. <i class="glyphicon glyphicon-upload"></i>
  114. <span>Start</span>
  115. </button>
  116. {% } %}
  117. {% if (!i) { %}
  118. <button class="btn btn-warning cancel">
  119. <i class="glyphicon glyphicon-ban-circle"></i>
  120. <span>Cancel</span>
  121. </button>
  122. {% } %}
  123. </td>
  124. </tr>
  125. {% } %}
  126. </script>
  127.  
  128. <!-- The template to display files available for download -->
  129. <script id="template-download" type="text/x-tmpl">
  130. {% for (var i=0, file; file=o.files[i]; i++) { %}
  131. <tr class="template-download fade">
  132. <td><span class="preview">
  133. {% if (file.thumbnailUrl) { %}
  134. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
  135. {% } %}
  136. </span></td>
  137. <td><p class="name">
  138. {% if (file.url) { %}
  139. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
  140. {% } else { %}
  141. <span>{%=file.name%}</span>
  142. {% } %}
  143. </p>
  144. {% if (file.error) { %}
  145. <div><span class="label label-danger">Error</span> {%=file.error%}</div>
  146. {% } %}
  147. </td>
  148. <td><span class="size">{%=o.formatFileSize(file.size)%}</span></td>
  149. <td>
  150. {% if (file.deleteUrl) { %}
  151. <button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
  152. <i class="glyphicon glyphicon-trash"></i>
  153. <span>Delete</span>
  154. </button>
  155. <input type="checkbox" name="delete" value="1" class="toggle">
  156. {% } else { %}
  157. <button class="btn btn-warning cancel">
  158. <i class="glyphicon glyphicon-ban-circle"></i>
  159. <span>Cancel</span>
  160. </button>
  161. {% } %}
  162. </td>
  163. </tr>
  164. {% } %}
  165. </script>
  166.  
  167. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  168. <!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
  169. <script src="./js/jquery.ui.widget.js"></script>
  170. <!-- The Templates plugin is included to render the upload/download listings -->
  171. <script src="http://blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
  172. <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
  173. <script src="http://blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script>
  174. <!-- The Canvas to Blob plugin is included for image resizing functionality -->
  175. <script src="http://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
  176. <!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
  177. <script src="http://netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  178. <!-- blueimp Gallery script -->
  179. <script src="http://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
  180. <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
  181. <script src="./js/jquery.iframe-transport.js"></script>
  182. <!-- The basic File Upload plugin -->
  183. <script src="./js/jquery.fileupload.js"></script>
  184. <!-- The File Upload processing plugin -->
  185. <script src="./js/jquery.fileupload-process.js"></script>
  186. <!-- The File Upload image preview & resize plugin -->
  187. <script src="./js/jquery.fileupload-image.js"></script>
  188. <!-- The File Upload audio preview plugin -->
  189. <script src="./js/jquery.fileupload-audio.js"></script>
  190. <!-- The File Upload video preview plugin -->
  191. <script src="./js/jquery.fileupload-video.js"></script>
  192. <!-- The File Upload validation plugin -->
  193. <script src="./js/jquery.fileupload-validate.js"></script>
  194. <!-- The File Upload user interface plugin -->
  195. <script src="./js/jquery.fileupload-ui.js"></script>
  196. <!-- The main application script -->
  197. <script src="./js/fileupload-main.js"></script>
  198. <!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
  199. <!--[if (gte IE 8)&(lt IE 10)]>
  200. <script src=".js/jquery.xdr-transport.js"></script>
  201. <![endif]-->
  202. </body>
  203. </html>
Advertisement
Add Comment
Please, Sign In to add comment