<?php include pTemplate("header");?>
     <div id="loadingbar"></div>
     
     <div id="main" class="mainPanel wd txt_left">

     <div class="path b_size"><ul><li class="home" style="z-index:100;"><a href="<?php echo SITEURL;?>?mod=school&do=files">文件下载</a></li><li style="z-index:2;"><a href="javascript:''"><?php echo $folder['name'];?></a></li></ul></div>
 
     <div style="width:100%;height:100%;">
     
     
     <div class="mainPanel wd txt_left" style="border:0;">
			
		<div class="content b_size">
									
<div name="groupmanage" style="">
		
												<div class="title_box">
		<h1 class="title">
        <input type="button" id="upload_file" class="btn btn_add right" fid="<?php echo $fid;?>" authcode="<?php echo $authcode;?>" value="↑&nbsp;上传文件" >
        <?php echo $folder['name'];?></h1>
		<div class="info">文件共享，准许上传文件类型：doc jpg gif txt</div>
	</div>
																				
		

				<div class="tool_bar" style="_position:relative;">
		<div class="right" style="margin:5px 10px 0 0;">
						<span>1/1&nbsp;页</span>
								</div>
		<a class="btn" opercmd="delfile"><span class="btnDel"></span>　 删除</a>
		<select id="moveFileTo1" style="background:#fff; display:none">
			<option>移动到...</option>
			<option value="/1000001">&nbsp;&nbsp;sadasd</option>
			<option value="/1000002">&nbsp;&nbsp;企业文档</option>
		</select>
	</div>
			
	<div id="ftnList" class="" style="width:100%;">			
		<table cellspacing="0" class="fileList listTable isroot" style="width:100%;table-layout:fixed;">
						<tbody><tr>
				<th class="o_title2" width="20%">
					<input id="cbSelectAll" type="checkbox" opercmd="batchcheck" checkname="fid" style="margin:0 12px 0 0;vertical-align:middle;">
																																																<a title="按文件名排序" onfocus="this.blur();" href="javascript:;" opercmd="sort" sorttype="filename" order="up">文件名</a>
														</th>
				<th class=" txt_right" width="5%">
															
																																	<a title="按大小排序" onfocus="this.blur();" href="javascript:;" opercmd="sort" sorttype="filesize" order="up">大小</a>
										
				</th>
				<!--<th class="" width="4%" >
															
																																	<a title="按进度排序" onfocus="this.blur();" href="javascript:;" opercmd="sort" sorttype="progress" order="up">进度</a>
										
				</th>-->
				<th class="txt_center" width="5%" nowrap="">
															
																																	下载										
				</th>
				<th class="" width="12%" nowrap="">
															
																																	上传者										
				</th>
				<th class="" width="13%">
															
																																															<a title="按上传时间排序" onfocus="this.blur();" href="javascript:;" opercmd="sort" sorttype="createtime" order="down">上传时间↑</a>
										
				</th>
				<th class="" width="10%">
					操作
				</th>
			</tr>
			
						<?php foreach((array)$arrfiles as $key=>$item) {?>
						
						<tr>
				
				<td class="name" nowrap="" style="overflow:hidden" title="<?php echo $item['filename'];?>">
                
					<input type="checkbox" un="mbrCheck" authcode="<?php echo $item['fileidauthcode'];?>" alias="<?php echo $item['fileid'];?>" style="margin-left:0;">
                   <a href="<?php echo SITEURL;?>?mod=fullFilePatch&fileid=<?php echo $item['fileid'];?>&authcode=<?php echo $item['fileidauthcode'];?>" cmdarg="down_count" title="点击下载《<?php echo $item['filename'];?>》" fileid="<?php echo $item['fileid'];?>" class="noneunderline">
					<img src="<?php echo PUBURL;?>images/fu_<?php echo $item['type'];?>.gif" style="vertical-align:middle;">
					<?php echo $item['filename'];?>
                    </a>
				</td>
				
				<td nowrap="" class="txt_right">
					<?php echo $item['filesize'];?>
				</td>

				<!--<td class="fSize">
					完成				</td>-->

				<td id="down_count" class="txt_center">
					<?php echo $item['down_count'];?>
				</td>
				
				<td nowrap="" class="whoUpload">
					<?php echo $item['author'];?>			</td>
				
				<td nowrap="">
					 <?php echo Ue_time($item['addtime'])?>
				</td>
				
				<td nowrap="" class="addrtitle">
					<a href="javascript:;" opercmd="delfile" authcode="<?php echo $item['fileidauthcode'];?>" fileid="<?php echo $item['fileid'];?>" title="删除" class="bt_del"></a>
					<a href="javascript:;" opercmd="rename" filename="<?php echo $item['filename'];?>" authcode="<?php echo $item['fileidauthcode'];?>" fileid="<?php echo $item['fileid'];?>"  title="重命名" fid="<?php echo $fid;?>" class="bt_rename"></a>&nbsp;&nbsp;<a href="<?php echo SITEURL;?>?mod=fullFilePatch&fileid=<?php echo $item['fileid'];?>&filename=<?php echo $item['filename'];?>&authcode=<?php echo $item['fileidauthcode'];?>" cmdarg="down_count" title="下载" fileid="<?php echo $item['fileid'];?>" class="bt_download"></a>&nbsp;&nbsp;
                    </td>
			</tr>
            
            			<?php }?>
					</tbody></table>
		
					
	</div>
		<div id="exInfo"></div>
	<div class="addrtitle" style="margin:15px 10px;display:none;">网盘容量：<em>2048 M</em>，当前剩余容量：<em>2047.90 M</em>，支持上传<em>1G</em>的单个文件。</div>
</div>
		</div><!--end centent-->
	</div>
     
     
     
     </div></div>

<?php include pTemplate("footer");?>
<script src="<?php echo PUBURL;?>js/jquery.upload-1.0.js"></script>
<script type="text/javascript">
$("#upload_file").click(function() {
		fid = this.getAttribute("fid");
		authcode = this.getAttribute("authcode");
        $.upload({
                url: TJ.path +'index.php?mod='+ TJ.mod +'&do=do', 
                fileName: 'filedata', 
                params: {
					action: 'upload_file',
					fid: fid,
					authcode:authcode
					},
                dataType: 'json',
                onSend: function() {
                        return true;
                },
                onComplate: function(data) {
                        location.replace(location.href);
                }
        });
});
</script>

</body>
</html>