<!--#
##
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: upload.tpl.php 43 2014-02-12 06:46:06Z along $
#
#	Copyright (C) 2008-2016 PHPDisk Team. All Rights Reserved.
#
##
#-->
<?php !defined('IN_PHPDISK') && exit('[PHPDisk] Access Denied!'); ?>
<script>var folder_id={#(int)$folder_id#};</script>
<script type="text/javascript" src="includes/js/core.js"></script>
<script type="text/javascript" src="includes/js/queue.js"></script>
<script type="text/javascript" src="includes/js/progress.js"></script>
<script type="text/javascript" src="includes/js/speed.js"></script>
<script type="text/javascript" src="includes/js/events.js"></script>
<script type="text/javascript">
var lang = new Array();
lang['has_upload'] = "<?=__('has_upload')?>";
lang['current_speed'] = "<?=__('current_speed')?>";
lang['queue_too_many_files'] = "<?=__('queue_too_many_files')?>";
lang['current_file_size'] = "<?=__('current_file_size')?>";
lang['file_too_big'] = "<?=__('file_too_big')?>";
lang['zero_byte_file'] = "<?=__('zero_byte_file')?>";
lang['unknown_error'] = "<?=__('unknown_error')?>";
lang['upload_complete'] = "<?=__('upload_complete')?>";
lang['js_tag'] = "<?=__('js_tag')?>";
lang['js_tag_tips'] = "<?=__('js_tag_tips')?>";
lang['js_content'] = "<?=__('js_content')?>";
lang['js_expand'] = "<?=__('js_expand')?>";
lang['replace_file_tips'] = "<?=__('replace_file_tips')?>";
</script>

<div id="container">
<div class="store_nav"><?=__('store_location')?>：<img src="images/icon_nav.gif" align="absmiddle" border="0" /><a href="javascript:;" onclick="top.document.location='{#urr("mydisk","item=files&action=index")#}';"><img src="images/disk.gif" border="0" align="absmiddle" /><?=__('root_folder')?></a> &raquo;
{#get_folder_path($folder_id,$pd_uid,1)#}
</div>

<!--#if($cannot_upload){#-->
<div class="up_msg_box">
<div align="center"><img src="images/light.gif" border="0" align="absmiddle">&nbsp;<span class="txtgreen">{$hints_msg}</span></div>
<br><br>
</div>
<!--#}else{#-->
<div class="upload_style">
	<span id="spanPDButton"></span>
</div>
<div class="upload_btn">
	<input type="button" class="btn_green" value="<?=__('btn_upload_file')?>" id="upload_btn" disabled="disabled"/>
</div>
<div class="clear"></div>
</div>	
<div id="up_msg_tips" style="display:none"><img src="images/up_suc.gif" align="absmiddle" border="0" /> <span id="up_msg"></span> </div>
<div id="uploadprogressbar"></div>
</div>

<!--#}#-->
<script type="text/javascript">
var upl;
//window.onload = function() {
	var settings = {
		flash_url : "includes/js/upload.swf",
		upload_url: '{$doupload_url}',
		post_params: {"action": "doupload","uid":"{$pd_uid}","sess_id":"{$sess_id}","token":"{$token}"},
		file_size_limit : "{$max_user_file_size}B",
		file_types : "{$user_file_types}",
		button_image_url : "images/upload_icon.gif",
		button_placeholder_id : "spanPDButton",
		button_width: 110,
		button_height: 18,
		button_text : "<span><?=__('select_your_files')?>({$max_user_file_size})</span>",
		file_queued_handler : fileQueued,
		file_dialog_complete_handler: fileDialogComplete,
		file_queue_error_handler : fileQueueError,
		upload_start_handler : uploadStart,
		upload_progress_handler : uploadProgress,
		upload_success_handler : uploadSuccess,
		upload_complete_handler : uploadComplete,
		custom_settings : {
			uploadprogressbar : "uploadprogressbar"
		}
	};
	upl = new SWFUpload(settings);
 //};
</script>
