PageRenderTime 53ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/laravel/resources/views/admin/file-upload.blade.php

https://bitbucket.org/chirag4396/little-jamun
PHP | 268 lines | 256 code | 2 blank | 10 comment | 29 complexity | 5550904abaea7f9f937149e4ce94efa1 MD5 | raw file
Possible License(s): GPL-3.0
  1. <!DOCTYPE HTML>
  2. <!--
  3. /*
  4. * jQuery File Upload Plugin Demo
  5. * https://github.com/blueimp/jQuery-File-Upload
  6. *
  7. * Copyright 2010, Sebastian Tschan
  8. * https://blueimp.net
  9. *
  10. * Licensed under the MIT license:
  11. * https://opensource.org/licenses/MIT
  12. */
  13. -->
  14. <html lang="en">
  15. <head>
  16. <!-- Force latest IE rendering engine or ChromeFrame if installed -->
  17. <!--[if IE]>
  18. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  19. <![endif]-->
  20. <meta charset="utf-8">
  21. <title>jQuery File Upload Demo</title>
  22. <meta name="csrf-token" content="{{ csrf_token() }}">
  23. <meta name="description" content="File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.">
  24. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  25. <!-- Bootstrap styles -->
  26. <link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}">
  27. <!-- Generic page styles -->
  28. <link rel="stylesheet" href="{{ asset('file/css/style.css') }}">
  29. <!-- blueimp Gallery styles -->
  30. <link rel="stylesheet" href="{{ asset('file/css/blueimp-gallery.min.css') }}">
  31. <!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
  32. <link rel="stylesheet" href="{{ asset('file/css/jquery.fileupload.css') }}">
  33. <link rel="stylesheet" href="{{ asset('file/css/jquery.fileupload-ui.css') }}">
  34. <!-- CSS adjustments for browsers with JavaScript disabled -->
  35. <noscript><link rel="stylesheet" href="{{ asset('file/css/jquery.fileupload-noscript.css') }}"></noscript>
  36. <noscript><link rel="stylesheet" href="{{ asset('file/css/jquery.fileupload-ui-noscript.css') }}"></noscript>
  37. </head>
  38. <body>
  39. <div class="navbar navbar-default navbar-fixed-top">
  40. <div class="container">
  41. <div class="navbar-header">
  42. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-fixed-top .navbar-collapse">
  43. <span class="icon-bar"></span>
  44. <span class="icon-bar"></span>
  45. <span class="icon-bar"></span>
  46. </button>
  47. <a class="navbar-brand" href="https://github.com/blueimp/jQuery-File-Upload">jQuery File Upload</a>
  48. </div>
  49. <div class="navbar-collapse collapse">
  50. <ul class="nav navbar-nav">
  51. <li><a href="https://github.com/blueimp/jQuery-File-Upload/tags">Download</a></li>
  52. <li><a href="https://github.com/blueimp/jQuery-File-Upload">Source Code</a></li>
  53. <li><a href="https://github.com/blueimp/jQuery-File-Upload/wiki">Documentation</a></li>
  54. <li><a href="https://blueimp.net">&copy; Sebastian Tschan</a></li>
  55. </ul>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="container">
  60. <h1>jQuery File Upload Demo</h1>
  61. <h2 class="lead">Basic Plus UI version</h2>
  62. <ul class="nav nav-tabs">
  63. <li><a href="basic.html">Basic</a></li>
  64. <li><a href="basic-plus.html">Basic Plus</a></li>
  65. <li class="active"><a href="index.html">Basic Plus UI</a></li>
  66. <li><a href="angularjs.html">AngularJS</a></li>
  67. <li><a href="jquery-ui.html">jQuery UI</a></li>
  68. </ul>
  69. <br>
  70. <blockquote>
  71. <p>File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery.<br>
  72. Supports cross-domain, chunked and resumable file uploads and client-side image resizing.<br>
  73. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.</p>
  74. </blockquote>
  75. <br>
  76. <!-- The file upload form used as target for the file upload widget -->
  77. <form id="fileupload" action="//jquery-file-upload.appspot.com/" method="POST" enctype="multipart/form-data">
  78. <!-- Redirect browsers with JavaScript disabled to the origin page -->
  79. <noscript><input type="hidden" name="redirect" value="https://blueimp.github.io/jQuery-File-Upload/"></noscript>
  80. <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
  81. <div class="row fileupload-buttonbar">
  82. <div class="col-lg-7">
  83. <!-- The fileinput-button span is used to style the file input field as button -->
  84. <span class="btn btn-success fileinput-button">
  85. <i class="glyphicon glyphicon-plus"></i>
  86. <span>Add files...</span>
  87. <input type="file" name="files[]" multiple>
  88. </span>
  89. <button type="submit" class="btn btn-primary start">
  90. <i class="glyphicon glyphicon-upload"></i>
  91. <span>Start upload</span>
  92. </button>
  93. <button type="reset" class="btn btn-warning cancel">
  94. <i class="glyphicon glyphicon-ban-circle"></i>
  95. <span>Cancel upload</span>
  96. </button>
  97. <button type="button" class="btn btn-danger delete">
  98. <i class="glyphicon glyphicon-trash"></i>
  99. <span>Delete</span>
  100. </button>
  101. <input type="checkbox" class="toggle">
  102. <!-- The global file processing state -->
  103. <span class="fileupload-process"></span>
  104. </div>
  105. <!-- The global progress state -->
  106. <div class="col-lg-5 fileupload-progress fade">
  107. <!-- The global progress bar -->
  108. <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
  109. <div class="progress-bar progress-bar-success" style="width:0%;"></div>
  110. </div>
  111. <!-- The extended global progress state -->
  112. <div class="progress-extended">&nbsp;</div>
  113. </div>
  114. </div>
  115. <!-- The table listing the files available for upload/download -->
  116. <table role="presentation" class="table table-striped"><tbody class="files"></tbody></table>
  117. </form>
  118. <br>
  119. <div class="panel panel-default">
  120. <div class="panel-heading">
  121. <h3 class="panel-title">Demo Notes</h3>
  122. </div>
  123. <div class="panel-body">
  124. <ul>
  125. <li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
  126. <li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
  127. <li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
  128. <li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
  129. <li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
  130. <li>Built with the <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
  131. </ul>
  132. </div>
  133. </div>
  134. </div>
  135. <!-- The blueimp Gallery widget -->
  136. <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
  137. <div class="slides"></div>
  138. <h3 class="title"></h3>
  139. <a class="prev"></a>
  140. <a class="next"></a>
  141. <a class="close">×</a>
  142. <a class="play-pause"></a>
  143. <ol class="indicator"></ol>
  144. </div>
  145. <!-- The template to display files available for upload -->
  146. <script id="template-upload" type="text/x-tmpl">
  147. {% for (var i=0, file; file=o.files[i]; i++) { %}
  148. <tr class="template-upload fade">
  149. <td>
  150. <span class="preview"></span>
  151. </td>
  152. <td>
  153. <p class="name">{%=file.name%}</p>
  154. <strong class="error text-danger"></strong>
  155. </td>
  156. <td>
  157. <p class="size">Processing...</p>
  158. <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>
  159. </td>
  160. <td>
  161. {% if (!i && !o.options.autoUpload) { %}
  162. <button class="btn btn-primary start" disabled>
  163. <i class="glyphicon glyphicon-upload"></i>
  164. <span>Start</span>
  165. </button>
  166. {% } %}
  167. {% if (!i) { %}
  168. <button class="btn btn-warning cancel">
  169. <i class="glyphicon glyphicon-ban-circle"></i>
  170. <span>Cancel</span>
  171. </button>
  172. {% } %}
  173. </td>
  174. </tr>
  175. {% } %}
  176. </script>
  177. <!-- The template to display files available for download -->
  178. <script id="template-download" type="text/x-tmpl">
  179. {% for (var i=0, file; file=o.files[i]; i++) { %}
  180. <tr class="template-download fade">
  181. <td>
  182. <span class="preview">
  183. {% if (file.thumbnailUrl) { %}
  184. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
  185. {% } %}
  186. </span>
  187. </td>
  188. <td>
  189. <p class="name">
  190. {% if (file.url) { %}
  191. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
  192. {% } else { %}
  193. <span>{%=file.name%}</span>
  194. {% } %}
  195. </p>
  196. {% if (file.error) { %}
  197. <div><span class="label label-danger">Error</span> {%=file.error%}</div>
  198. {% } %}
  199. </td>
  200. <td>
  201. <span class="size">{%=o.formatFileSize(file.size)%}</span>
  202. </td>
  203. <td>
  204. {% if (file.deleteUrl) { %}
  205. <button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
  206. <i class="glyphicon glyphicon-trash"></i>
  207. <span>Delete</span>
  208. </button>
  209. <input type="checkbox" name="delete" value="1" class="toggle">
  210. {% } else { %}
  211. <button class="btn btn-warning cancel">
  212. <i class="glyphicon glyphicon-ban-circle"></i>
  213. <span>Cancel</span>
  214. </button>
  215. {% } %}
  216. </td>
  217. </tr>
  218. {% } %}
  219. </script>
  220. <script src="{{ asset('file/js/jquery.min.js') }}"></script>
  221. <!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
  222. <script src="{{ asset('file/js/vendor/jquery.ui.widget.js') }}"></script>
  223. <!-- The Templates plugin is included to render the upload/download listings -->
  224. <script src="{{ asset('file/js/tmpl.min.js') }}"></script>
  225. <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
  226. <script src="{{ asset('file/js/load-image.all.min.js') }}"></script>
  227. <!-- The Canvas to Blob plugin is included for image resizing functionality -->
  228. <script src="{{ asset('file/js/canvas-to-blob.min.js') }}"></script>
  229. <!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
  230. <script src="{{ asset('js/bootstrap-3.1.1.min.js') }}"></script>
  231. <!-- blueimp Gallery script -->
  232. <script src="{{ asset('file/js/jquery.blueimp-gallery.min.js') }}"></script>
  233. <script type="text/javascript">
  234. $.ajaxSetup({
  235. headers: {
  236. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  237. }
  238. });
  239. </script>
  240. <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
  241. <script src="{{ asset('file/js/jquery.iframe-transport.js') }}"></script>
  242. <!-- The basic File Upload plugin -->
  243. <script src="{{ asset('file/js/jquery.fileupload.js') }}"></script>
  244. <!-- The File Upload processing plugin -->
  245. <script src="{{ asset('file/js/jquery.fileupload-process.js') }}"></script>
  246. <!-- The File Upload image preview & resize plugin -->
  247. <script src="{{ asset('file/js/jquery.fileupload-image.js') }}"></script>
  248. <!-- The File Upload audio preview plugin -->
  249. <script src="{{ asset('file/js/jquery.fileupload-audio.js') }}"></script>
  250. <!-- The File Upload video preview plugin -->
  251. <script src="{{ asset('file/js/jquery.fileupload-video.js') }}"></script>
  252. <!-- The File Upload validation plugin -->
  253. <script src="{{ asset('file/js/jquery.fileupload-validate.js') }}"></script>
  254. <!-- The File Upload user interface plugin -->
  255. <script src="{{ asset('file/js/jquery.fileupload-ui.js') }}"></script>
  256. <!-- The main application script -->
  257. <script type="text/javascript">
  258. var d = '{{ route('file-upload') }}';
  259. </script>
  260. <script src="{{ asset('file/js/main.js') }}"></script>
  261. <!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
  262. <!--[if (gte IE 8)&(lt IE 10)]>
  263. {{-- <script src="{{ asset('file/js/cors/jquery.xdr-transport.js') }}"></script> --}}
  264. <![endif]-->
  265. </body>
  266. </html>