
<table class="table table-hover" id="tablelist">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center">[%pack:templates_pack-espcms_templates_file_filename%]</th>
			<th class="text-center table_width_130">[%pack:templates_pack-espcms_templates_file_filetype%]</th>
			<th class="text-center table_width_130">[%pack:public_pack-espcms_lable_addtime_name%]</th>
			<th class="text-center table_width_130">[%pack:public_pack-espcms_lable_updatetime%]</th>
			<th class="text-center table_width_180">[%pack:public_pack-espcms_lable_control_name%]</th>
		</tr>
	</thead>
	[%if espcms_count($array)>0 %]
	<tbody id="sortable">
		[%if $open_dirname!='' %]
		<tr class="selecticon">
			<td class="text-left fileicon filecheck kill_copy" colspan="5" dir-name="[%$open_gobackdir%]" updir-name="[%$open_gobackpath%]" title="[%$open_dirname%]"><img src="[%$ESPCMS_ADMIN_TEMPLATES_URL%]images/fileicon/dir.png"/>返回上一级目录（[%$open_dirname%]）</td>
		</tr>
		[%/if%]
		[%forlist from=$array key=i%]
		<tr class="selecticon">
			[%if $array[i].extension=='dir'%]
			<td class="text-left fileicon filecheck kill_copy" dir-name="[%$array[i].filename%]" updir-name="[%$array[i].up_dirname%]" title="[%$array[i].filename%]"><img src="[%$ESPCMS_ADMIN_TEMPLATES_URL%]images/fileicon/[%$array[i].extension%].png"/>[%$array[i].filename%]</td>
			[%else%]
			<td class="text-left fileicon" title="[%$array[i].filename%]"><img src="[%$ESPCMS_ADMIN_TEMPLATES_URL%]images/fileicon/[%$array[i].extension%].png"/>[%$array[i].filename%]</td>
			[%/if%]
			<td class="text-center">[%$array[i].extension%]</td>
			<td class="text-center">[%$array[i].addtime|espcms_timeformat(9)%]</td>
			<td class="text-center">[%$array[i].updatetime|espcms_timeformat(9)%]</td>
			<td class="text-center kill_copy">
				[%if $array[i].extension=='html' || $array[i].extension=='css'%]
				[%if @this->power('editTemplateFile')%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:templates_pack-espcms_templates_file_button_edit%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
				[%/if%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:templates_pack-espcms_templates_file_button_copy%]" tab_close="false" tab_url="[%$array[i].copy%]">[%pack:botton_pack-espcms_botton_copy%]</button>
				[%if @this->power('delTemplateFile')%]
				<button type="button" class="btn btn-reakit btn-padding10 btn-xs info_del" template_type="[%$template_type%]" filename="[%$array[i].filename%]" filepath="[%$open_dirname%]">[%pack:botton_pack-espcms_botton_del%]</button>
				[%/if%]
				[%/if%]
			</td>
		</tr>
		[%/forlist%]
	</tbody>
	[%else%]
	<tbody>
		[%if $open_dirname!='' %]
		<tr class="selecticon">
			<td class="text-left fileicon filecheck kill_copy" colspan="5" dir-name="[%$open_gobackdir%]" updir-name="[%$open_gobackpath%]" title="[%$open_dirname%]"><img src="[%$ESPCMS_ADMIN_TEMPLATES_URL%]images/fileicon/dir.png"/>返回上一级目录（[%$open_dirname%]）</td>
		</tr>
		[%/if%]
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
	[%/if%]
</table>

