Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.84 KB | None | 0 0
  1. <link href="/dropzone/dropzone.css" rel="stylesheet" type="text/css" />
  2. <link href="/assets/global/plugins/bootstrap-fileinput/bootstrap-fileinput.css" rel="stylesheet" type="text/css" />
  3.  
  4. <form id="upload_form_headshot" action="/upload_headshot.php" method="post" enctype="multipart/form-data">
  5.  
  6. <div class="modal-header">
  7.     <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
  8.     <h4 class="modal-title">Upload headshot</h4>
  9. </div>
  10.  
  11.  
  12. <div class="modal-body text-center">
  13.     <input type="hidden" name="company_id" value="43" />
  14.     <input type="hidden" name="realtor_id" value="9583" />
  15.     <input type="hidden" name="current_date" value="20190326141012" />
  16.    
  17.         <div class="alert alert-danger">NOTE: If you have already viewed a tour link associated with this agent in your browser, the updated image may not show as the browser data can be cached. Verify in a different browser to make sure the change was successful.</div>
  18.    
  19.     <div class="fileinput fileinput-new" data-provides="fileinput">
  20.         <div class="input-group input-large">
  21.             <div class="form-control uneditable-input input-fixed input-medium" data-trigger="fileinput">
  22.                 <i class="fa fa-file fileinput-exists"></i>&nbsp;
  23.                 <span class="fileinput-filename"> </span>
  24.             </div>
  25.             <span class="input-group-addon btn default btn-file">
  26.                 <span class="fileinput-new"> Select image </span>
  27.                 <span class="fileinput-exists"> Change </span>
  28.                 <input type="file" name="headshot"> </span>
  29.             <a href="javascript:;" class="input-group-addon btn red fileinput-exists" data-dismiss="fileinput"> Remove </a>
  30.         </div>
  31.     </div>
  32.     <div id="response"></div>
  33. </div>
  34.  
  35. <div class="modal-footer text-center">
  36.     <button id="done" type="button" data-dismiss="modal" class="btn default">Close</button>
  37.     <button type="submit" class="btn blue">Upload</button>
  38. </div>
  39.  
  40. </form>
  41.  
  42. <!-- <script src="assets/global/plugins/jquery-1.11.0.min.js" type="text/javascript"></script> -->
  43. <script src="assets/global/plugins/jquery.form.js"></script>
  44. <script src="assets/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js" type="text/javascript"></script>
  45. <!-- <script type="text/JavaScript" src="/dropzone/dropzone.js"></script> -->
  46. <script type="text/javascript">
  47.     $('#upload_form_headshot').ajaxForm(function() {
  48.         img = document.getElementById("headshot137");
  49.         img.src = "https://s3.amazonaws.com/viewshootsite/43/realtor_imgs/9583-20190326141012.jpg?" + new Date().getTime();
  50.         img.style.display = "block";
  51.         del = document.getElementById("delete_headshot137");
  52.         del.style.display = "block";
  53.         $('#done').click();
  54.     });
  55.    
  56.    
  57.     /*function initDropzone(){alert('hi');
  58.         Dropzone.options.headshotDropzone = {
  59.             paramName: "headshot",
  60.             parallelUploads: 1,
  61.             maxFilesize: 10,
  62.             acceptedFiles: "image/jpeg",
  63.             uploadMultiple: false
  64.         };
  65.     }
  66.     initDropzone();*/
  67. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement