Skip to content

Instantly share code, notes, and snippets.

@PintuKumarPal
Last active December 22, 2015 06:19
Show Gist options
  • Save PintuKumarPal/6429847 to your computer and use it in GitHub Desktop.
Save PintuKumarPal/6429847 to your computer and use it in GitHub Desktop.
<cfoutput>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Designcell</title>
<link rel="stylesheet" href="flashuploader/css/bootstrap.min.css">
<style>body{padding-top:60px;}</style>
<link rel="stylesheet" href="flashuploader/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="flashuploader/css/bootstrap-image-gallery.min.css">
<link rel="stylesheet" href="flashuploader/css/jquery.fileupload-ui.css">
</head>
<script Language="JavaScript">
function WriteAndClose()
{
parent.opener.location.reload();
self.close();
}
</script>
<body onUnload="WriteAndClose()">
<div class="container">
&nbsp;&nbsp;Upload Files
<p><font style="font-family: 'Trebuchet MS'; color: ##1A68A1; font-size:11px;font-weight: bold;text-decoration: none; align:center;">Please choose the files from your computer and click on the upload button to add them to the documents. Please click on the Finish button when done.
</font></p>
<br>
<form id="fileupload" action="upload.cfm" method="POST" enctype="multipart/form-data">
<div class="row fileupload-buttonbar">
<div class="span7">
<span class="btn btn-success fileinput-button">
<span><i class="icon-plus icon-white"></i> Add files...</span>
<input type="file" name="files" multiple>
</span>
<button type="submit" class="btn btn-primary start">
<i class="icon-upload icon-white"></i> Start upload
</button>
<button type="reset" class="btn btn-warning cancel">
<i class="icon-ban-circle icon-white"></i> Cancel upload
</button>
</div>
<div class="span5">
<!-- The global progress bar -->
<div class="progress progress-success progress-striped active fade">
<div class="bar" style="width:0%;"></div>
</div>
</div>
</div>
<br>
<!-- The table listing the files available for upload/download -->
<table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="##modal-gallery"></tbody></table>
</form>
<br>
</div>
<script>
var fileUploadErrors = {
maxFileSize: 'File is too big',
minFileSize: 'File is too small',
acceptFileTypes: 'Filetype not allowed',
maxNumberOfFiles: 'Max number of files exceeded',
uploadedBytes: 'Uploaded bytes exceed file size',
emptyResult: 'Empty file upload result'
};
</script>
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/html">
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
<tr class="template-upload fade">
<td class="preview"><span class="fade"></span></td>
<td class="name">{%=file.name%}</td>
<td class="size">{%=o.formatFileSize(file.size)%}</td>
{% if (file.error) { %}
<td class="error" colspan="2"><span class="label label-important">Error</span> {%=fileUploadErrors[file.error] || file.error%}</td>
{% } else if (o.files.valid && !i) { %}
<td>
<div class="progress progress-success progress-striped active"><div class="bar" style="width:0%;"></div></div>
</td>
<td class="start">{% if (!o.options.autoUpload) { %}
<button class="btn btn-primary">
<i class="icon-upload icon-white"></i>Start
</button>
{% } %}</td>
{% } else { %}
<td colspan="2"></td>
{% } %}
<td class="cancel">{% if (!i) { %}
<button class="btn btn-warning">
<i class="icon-ban-circle icon-white"></i>Cancel
</button>
{% } %}</td>
</tr>
{% } %}
</script>
<!-- The template to display files available for download -->
<script id="template-download" type="text/html">
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
<tr class="template-download fade">
<td class="preview"><span class="fade"></span></td>
<td class="name">
{%=file.name%}
</td>
<td class="size">
{%=o.formatFileSize(file.size)%}
</td>
<td class="size">File Uploaded</td>
</tr>
{% } %}
</script>
<table width="100%" cellpadding="0" cellspacing="7" border="0" bordercolor="red">
<tr>
<td align="center" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;
<a href="##" onClick="javascript:WriteAndClose();"><input type="button" value="Finish"></a>
</td>
</tr>
<tr>
<td align="center" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</table>
<script src="flashuploader/js/jquery.min.js"></script>
<script src="flashuploader/js/vendor/jquery.ui.widget.js"></script>
<script src="flashuploader/js/tmpl.min.js"></script>
<script src="flashuploader/js/load-image.min.js"></script>
<script src="flashuploader/js/bootstrap.min.js"></script>
<script src="flashuploader/js/jquery.iframe-transport.js"></script>
<script src="flashuploader/js/jquery.fileupload.js"></script>
<script src="flashuploader/js/jquery.fileupload-ui.js"></script>
<script src="flashuploader/js/main.js"></script>
</body>
</html>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment