<?php defined('IN_DIALOG') or $obj_msg->on_error('access');?>
	<?php foreach($arr_folder as $item){ ?>
	<table class="divdir">
		<tr><td class="smallpic" style="cursor:default" ondblclick="on_dir_open('<?php echo $item['folder_id']?>');" onclick="on_set_focus('obj_folder_<?echo $item["folder_id"]?>','dir','<?php echo $item['folder_id']?>','<?php echo $item['folder_name']?>');" oncontextmenu="on_set_focus('obj_folder_<?echo $item["folder_id"]?>','dir','<?php echo $item['folder_id']?>','<?php echo $item['folder_name']?>');"><img src="<?php echo WEB_URL?>/store/images/file/pic/dir.gif"></td></tr>
		<tr><td class="txtname" id="obj_folder_<?echo $item["folder_id"]?>" style="cursor:default" ondblclick="on_dir_open('<?php echo $item['folder_id']?>');" onclick="on_set_focus('obj_folder_<?echo $item["folder_id"]?>','dir','<?php echo $item['folder_id']?>','<?php echo $item['folder_name']?>');" oncontextmenu="on_set_focus('obj_folder_<?echo $item["folder_id"]?>','dir','<?php echo $item['folder_id']?>','<?php echo $item['folder_name']?>');"><?php echo $item['folder_name']?></td></tr>
	</table>
<?php }?>
<?php foreach($arr_file as $item){ ?>
	<table class="divfile">
		<tr><td class="smallpic" style="cursor:default" ondblclick="on_open();" onclick="on_set_focus('obj_file_<?echo $item["upload_id"]?>','file','<?php echo $item['upload_id']?>','<?php echo $item['upload_path']?>');" oncontextmenu="on_set_focus('obj_file_<?echo $item["upload_id"]?>','file','<?php echo $item['upload_id']?>','<?php echo $item['upload_path']?>');">
		<?php if(strstr("jpg,gif,jpeg,bmp,ico,png",$item['upload_ext'])){?>
		<img src="<?php echo WEB_URL.$item['upload_path']?>" onload="if(this.width>95)this.width=95;if(this.height>95)this.height=95;">
		<?}else{?>
		<img src="<?php echo WEB_URL?>/store/images/file/pic/<?php echo $item['upload_ext']?>.gif">
		<?}?>
		</td></tr>
		<tr><td class="txtname" style="cursor:default" ondblclick="on_open();" onclick="on_set_focus('obj_file_<?echo $item["upload_id"]?>','file','<?php echo $item['upload_id']?>','<?php echo $item['upload_path']?>');" id="obj_file_<?echo $item["upload_id"]?>" oncontextmenu="on_set_focus('obj_file_<?echo $item["upload_id"]?>','file','<?php echo $item['upload_id']?>','<?php echo $item['upload_path']?>');"><?php echo $item['upload_name']?></td></tr>
	</table>
<?php }?>
	
