[%if espcms_count($array)>0 || espcms_count($array_top)>0 %]
<table class="table table-hover">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center table_width_60">[%pack:public_pack-espcms_lable_select_name%]</th>
			<th class="text-center table_width_100 sort_field" sort-field="tmid">[%pack:public_pack-espcms_lable_id_name%]</th>
			<th class="text-center">[%pack:templates_pack-espcms_templates_mail_templatename%]</th>
			<th class="text-center">[%pack:templates_pack-espcms_templates_mail_templatecode%]</th>
			<th class="text-center">[%pack:templates_pack-espcms_templates_mail_typeclass%]</th>
			<th class="text-center">[%pack:templates_pack-espcms_templates_mail_title%]</th>
			<th class="text-center">[%pack:public_pack-espcms_lable_addtime_name%]</th>
			<th class="text-center">[%pack:public_pack-espcms_lable_isclass_name%]</th>
			<th class="text-center table_width_130">[%pack:public_pack-espcms_lable_control_name%]</th>
		</tr>
	</thead>
	<tbody id="sortable">
		[%forlist from=$array key=i%]
		<tr data-id="[%$array[i].tmid%]" data-pid="[%$array[i].pid%]" class="selecticon">
			<td class="text-center">
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].tmid%]"/>
			</td>
			<td class="text-center">[%$array[i].tmid%]</td>
			<td class="text-center">[%$array[i].templatename%]</td>
			<td class="text-center">[%$array[i].templatecode%]</td>
			<td class="text-center">[%$array[i].typeclass%]</td>
			<td class="text-left text_eli">[%$array[i].title%]</td>
			<td class="text-center">[%$array[i].addtime|espcms_timeformat(9)%]</td>
			<td class="text-center">
				[%if $array[i].isclass==1%]
				<span class="espcms_icon_fa espcms_icon_fa-unlock-alt text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-lock text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center kill_copy">
				[%if @this->power('editMailTemplate')%]
				<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_mail_button_edit%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
				[%/if%]
				[%if @this->power('addMailTemplate')%]
				<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_mail_button_copy%]" tab_close="false" tab_url="[%$array[i].copy%]">[%pack:botton_pack-espcms_botton_copy%]</button>
				[%/if%]
			</td>
		</tr>
		[%/forlist%]
	</tbody>
</table>
[%else%]
<table class="table table-hover" id="tablelist">
	<tbody>
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
</table>
[%/if%]