{include file="public/header" /}
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto" id="LAY-user">
			{if condition="$param.select neq 1"}<!--<blockquote class="layui-elem-quote"></blockquote>-->{/if}
			<div class="layui-btn-group" {if condition="$param.select eq 1"}style="display:none;"{/if}>
				<a data-href="{:url('select')}?aid={$param.id}&type=down&parent_id={$param.fileId}" data-title="添加离线下载任务" title="添加磁力离线下载任务" data-width="500" data-height="450" class="layui-btn layui-btn-primary j-select">添加离线下载</a>
				<a  onclick="wk.layer_show('查看离线任务','{:url('select')}?aid={$param.id}&type=tasks','','',1)" title="查看迅雷离线下载任务" class="layui-btn layui-btn-primary">查看离线任务</a>
				<a data-fileId="{$param.fileId}" data-href="{:url('create')}?aid={$param.id}&type=addFolder" class="layui-btn layui-btn-primary" title="在当前文件夹内创建新的文件夹" id="addFolder">新建文件夹</a>
				<a data-href="{:url('create')}?aid={$param.id}&type=delall" title="清空回收站释放网盘空间" class="layui-btn layui-btn-primary delAll">清空回收站</a>
			</div>
            <div>
				<span class="layui-breadcrumb" lay-separator="/"></span>	
            </div>
        </div>

        <div class="layui-card-body">
            <table id="LAY-table-manage" lay-filter="LAY-table-manage"></table>
			<!--账号模板-->
            <script type="text/html" id="fileBar">
			{{# if(d.fileType !== '文件夹'){ }}
				{{d.fileName}}
			{{# }else{ }}
				<a href="{:url('panList')}?id={$param.id}&fileId={{d.fileId}}&select={$param.select}&input={$param.input}" id="fileId-{{d.fileId}}" style="color:blue;">{{d.fileName}}</a>
			{{# } }}
            </script>
			<!--操作模板-->
			{if condition="$param.select neq 1"}
            <script type="text/html" id="opeBar">
			{{# if(d.fileType !== '文件夹'){ }}
				{{# if(d.fileType.match(/(mp4|mp3|ts|mepg|wma|amr|mkv|flv)$/i)){ }}
				<a class="layui-btn layui-btn-xs layui-btn-primary" title="播放预览" lay-event="look"><i class="layui-icon layui-icon-play"></i></a>
				{{# }else if(d.fileType.match(/(gif|jpg|jpeg|png|bmp|webp)$/i)){ }}
				<a class="layui-btn layui-btn-xs layui-btn-primary" title="预览图片" lay-event="look"><i class="layui-icon layui-icon-picture"></i></a>
				{{# }else{ }}
				<a class="layui-btn layui-btn-xs layui-btn-primary" title="下载" lay-event="look"><i class="layui-icon layui-icon-download-circle"></i></a>
				{{# } }}
                <a class="layui-btn layui-btn-xs layui-btn-normal" title="复制链接" lay-event="copy"><i class="layui-icon layui-icon-link"></i>  </a>
			{{# }else{ }}
				<a class="layui-btn layui-btn-xs layui-btn-normal" title="打开文件夹" lay-event="openFolder">打开文件夹</a>
			{{# } }}
            </script>{/if}
			<!--批量操作模板-->
			<script type="text/html" id="toolBar">
			{if condition="$param.select eq 1"}
				<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="onSelect">选中返回</button>{else /}
				<a class="layui-btn layui-btn-xs " title="批量复制外链" lay-event="copyAll"><i class="layui-icon layui-icon-link"></i>批量复制</a>
				<a class="layui-btn layui-btn-xs layui-btn-normal" title="一键发布" lay-event="fabu"><i class="layui-icon layui-icon-release"></i>一键发布</a>
				<a class="layui-btn layui-btn-xs" lay-event="m3u8"><i class="layui-icon layui-icon-senior"></i>生成m3u8链接</a>
				<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delAll">删除文件</button>
				<button class="layui-btn layui-btn-xs" lay-event="moveAll" data-href="{:url('select')}?aid={$param.id}&type=moveFile">移动文件</button>
				<button class="layui-btn layui-btn-warm layui-btn-xs" data-href="{:url('select')}?aid={$param.id}&type=editFile" data-save="{:url('create')}?aid={$param.id}&type=fileEdit" lay-event="renameAll">重命名</button>
			{/if}
			</script>
        </div>
    </div>
</div>
<!--复制-->
<!--离线任务-->
<style>#down-tasks p{word-break: break-all;overflow: hidden;}</style>
<div id="offline-tasks" style="display:none;">
	<div id="down-tasks" style="padding:10px 10px;font-size:18px;">
		<p id="tasks-status"></p>
		<p id="tasks-msg"></p>
		<p id="tasks-btn" style="text-align:center;padding: 10px 0px 0px;">
			<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop" style="font-size: 40px;"></i>
		</p>
	</div>
</div>
{$pan_data}
{include file="public/footer"/}
{include file="public/copy"/}
<script src="__JS__/xunlei.js?v={$version.code}" ></script>
<script>

</script>
</body>
</html>