[svn r10699] add real progress bar

skala
Julian Prud'homme 18 years ago
parent 9cd80f61ff
commit 76172833b0
  1. 1
      main/inc/lib/fckeditor/editor/plugins/MP3/fck_mp3.js
  2. 36
      main/inc/lib/fckeditor/editor/plugins/MP3/fck_mp3.php

@ -308,7 +308,6 @@ function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
window.location.href=FCKConfig.PluginsPath + 'MP3/fck_mp3.php';
return ;
}
document.getElementById("loader").style.display="none";
SetUrl( fileUrl ) ;
GetE('frmUpload').reset() ;

@ -42,22 +42,30 @@ include('../../../../../../inc/global.inc.php');
?>
</div>
<div id="divUpload" style="DISPLAY: none">
<?php
require("../loader.class.php");
$loader = new Loader('frmUpload');
$loader->init();
?>
<form id="frmUpload" name="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data" action="" onSubmit="return CheckUpload();">
<!--<span id="eUploadMessage">Upload</span>--><br />
<table cellspacing="1" cellpadding="1" border="0" width="90%" align="center">
<tr><td><input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /></td></tr>
<tr><td><input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" /></td></tr>
</table>
<iframe name="UploadWindow" style="DISPLAY: none" src="../fckblank.html"></iframe>
</form>
<?php
$loader->close();
include_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
$form = new FormValidator('frmUpload','POST','','UploadWindow','id="frmUpload" enctype="multipart/form-data" onSubmit="return CheckUpload();"');
$form->addElement('html','<table cellspacing="1" cellpadding="1" border="0" width="90%" align="center">');
$form->addElement('html','<tr><td>');
$form->addElement('file','NewFile','','id="txtUploadFile" style="WIDTH: 100%" size="40"');
$form->addElement('html','</td></tr>');
$form->addElement('html','<tr><td>');
$form->addElement('submit','','Send it to the Server','id="btnUpload" fckLang="DlgLnkBtnUpload"');
$form->addElement('html','</td></tr></table>');
$form->addElement('html','<iframe name="UploadWindow" style="DISPLAY: none" src="../fckblank.html"></iframe>');
$form->add_real_progress_bar('fckMP3','NewFile');
$form->display();
?>
</div>
<script language="javascript">window_onload();</script>
</body>

Loading…
Cancel
Save