
Removed : Unused content from ClipBucket.class.php Fixed : Delete file if there is not file name Added : new include functions Added : Remote upload form
52 lines
No EOL
2 KiB
PHP
52 lines
No EOL
2 KiB
PHP
<?php
|
|
|
|
|
|
|
|
/**
|
|
* Loading Upload Form
|
|
*/
|
|
function load_upload_form($params)
|
|
{
|
|
global $file_name;
|
|
echo '<p>Select video files from your computer to begin uploading.</p>';
|
|
echo '<div class="upload_form_div clearfix">';
|
|
echo '<input name="submit_upload" type="hidden" value="Upload Data Now!">';
|
|
echo '<div id="progress_status" class="divStatus">';
|
|
echo '</div>';
|
|
echo '<div id="divStatus" class="divStatus moveL">Click \'Upload\' to select files</div>';
|
|
echo '<div class="moveR">';
|
|
echo '<span id="spanButtonPlaceHolder"></span>';
|
|
echo '<input id="btnCancel" type="button" value="Cancel"
|
|
onClick="swfu.cancelQueue();" disabled="disabled" style="margin:0px 0px 1px 3px" />';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '<div class="fieldset flash" id="fsUploadProgress"></div>';
|
|
}
|
|
|
|
|
|
function load_remote_upload_form($params)
|
|
{
|
|
global $file_name;
|
|
if($params['class'])
|
|
$class = ' '.$params['class'];
|
|
echo '<div class="upload_form_div clearfix'.$class.'">';
|
|
echo '<label for="check_url" class="label">Please enter remote file url</label>';
|
|
echo '<input type="textfield" id="remote_file_url" name="remote_file_url" class="upload_input"/>';
|
|
echo '<input name="submit_upload" type="hidden" value="Upload Data Now!">';
|
|
echo '<div id="remote_upload_result_cont"></div>';
|
|
echo '
|
|
<div id="loading" align="center" style="width:400px"></div>
|
|
<div class="remote_main_bar" id="main_bar">
|
|
<div id="prog_bar" class="remote_prog_bar"></div>
|
|
</div>
|
|
<div id="dspeed" align="center" style="width:400px"></div>
|
|
<div id="eta" align="center" style="width:400px"></div>
|
|
<div id="status" align="center" style="width:400px"></div>
|
|
<div id="time_took" align="center" style="width:400px"></div>
|
|
<div id="results" align="center" style="width:400px"></div>
|
|
';
|
|
echo '<div align="right"><input type="button" name="check_url" id="check_url" value="Upload" onClick="check_remote_url()" class="'.$params['button_class'].'"></div>';
|
|
echo '</div>';
|
|
}
|
|
|
|
?>
|