Exemple #1
0
  <h4>Upload Your Upgrade/Update</h4>
  <table class="table table-striped table-bordered responsive">
    <tbody>
      <tr>
        <td>Zip File</td>
        <td style='width:70%'><a id='file' class='red' data-name='file' data-type='file'  data-mode='inline' data-validator='notNull'><input id='fileinput' type='file' class='file' multiple=true data-show-preview='false' data-show-upload='false'> </a></td>
        <td class='center-text'><a style='font-size:1.5em' data-content='Browse to the zip file you have downloaded either for update, or Pro upgrade. Once selected, you will be asked to confirm the update, and the rest will be taken care of.' data-help='' data-toggle='popover' data-placement='left' data-trigger='hover' title='Your Digital Product' ><i class='glyphicon glyphicon-question-sign blue'></i></a></td>
      </tr>
    </tbody>
  </table>
</div>
<div class="clearfix"></div>
<div class="center red" id="loading" style="display:none;font-size:1.3em;width:100%"><i class="fa fa-spinner fa-spin"></i> Working! Please wait...</div>
<hr>
<?php 
echo $ftp->printForm();
closeBox();
?>
<script>
  $(document).ready(function () {
    var file;
    function ajaxUpload(_file) {
      var data = new FormData();
      data.append('file', _file);
      $.ajax({
        url: 'ajax/update.php',
        type: 'POST',
        dataType: 'json',
        data: data,
        processData: false,
        contentType: false,