<!doctype html>
<html dir="{-:*_LD_-}">
<head>
<meta charset="utf-8" />
<title>{-:@MANAGE-}</title>
{-include:../meta-}
<script>
var GV = {
	_LD_ : '{-:*_LD_-}',
	LANG_NAME : '{-:*LANG_NAME-}'
};
</script>
</head>

<body>
<div class="container margin">

<form id="formList" action="" method="post">
<ul class="subnav subnav-tab">
	<li{-if:'' == ARequest::get('e_type')-} class="active"{-:/if-}><a href="{-url:admin@extension/list_extension-}">{-:@ALL_EXTENSION-}</a></li>
	<li{-if:'module' == ARequest::get('e_type')-} class="active"{-:/if-}><a href="{-url:admin@extension/list_extension?e_type=module-}">{-:@MODULE-}</a></li>
	<li{-if:'plugin' == ARequest::get('e_type')-} class="active"{-:/if-}><a href="{-url:admin@extension/list_extension?e_type=plugin-}">{-:@PLUGIN-}</a></li>
	<li{-if:'template' == ARequest::get('e_type')-} class="active"{-:/if-}><a href="{-url:admin@extension/list_extension?e_type=template-}">{-:@TEMPLATE-}</a></li>
	<li{-if:'patch' == ARequest::get('e_type')-} class="active"{-:/if-}><a href="{-url:admin@extension/list_extension?e_type=patch-}">{-:@PATCH-}</a></li>
	<li{-if:'other' == ARequest::get('e_type')-} class="active"{-:/if-}><a href="{-url:admin@extension/list_extension?e_type=other-}">{-:@OTHER-}</a></li>
</ul>
<div id="tabContent">
		<div class="alert margin">
			{-:@EXTENSION_MAIN_TIP-}
		</div>
	{-if:empty($_EL)-}
		<div class="placeholder text-center margin">{-:@LIST_EMPTY-}</div>
	{-else:-}
		<table class="table table-hover">
			<tr>
				<th scope="col">{-:@NAME-}</th>
				<th scope="col">{-:@AUTHOR-}</th>
				<th scope="col">{-:@VERSION-}</th>
				<th scope="col">{-:@PUBLISH_TIME-}</th>
				<th scope="col">{-:@TYPE-}</th>
				<th scope="col">{-:@STATUS-}</th>
				<th scope="col">{-:@MANAGE-}</th>
			</tr>
			{-foreach:$_EL,$e-}
			<tr>
				<td>{-:$e['e_name']-} <span class="badge">{-:$e['e_alias']-}</span></td>
				<td>{-:$e['e_author']-}</td>
				<td>{-:$e['e_version']-}</td>
				<td>{-:$e['e_publish_date']-}</td>
				<td>
				{-if:'module' == $e['e_type']-}
					{-:@MODULE-}
				{-elseif:'plugin' == $e['e_type']-}
					{-:@PLUGIN-}
				{-elseif:'template' == $e['e_type']-}
					{-:@TEMPLATE-}
				{-elseif:'patch' == $e['e_type']-}
					{-:@PATCH-}
				{-elseif:'other' == $e['e_type']-}
					{-:@OTHER-}
				{-:/if-}
				</td>
				<td>
				{-if:1 == $e['e_status']-}
					<span class="badge badge-success">{-:@INSTALLED-}</span>
					<span class="badge">{-:$e['e_install_datetime']|date~C('APP.TIME_FORMAT'),@me-}</span>
				{-else:-}
					<span class="badge">{-:@NOT_INSTALLED-}</span>
				{-:/if-}
				</td>
				<td><a href="{-url:admin@extension/show_extension?e_hashcode={$e['e_hashcode']}-}">{-:@DETAIL-}</a>
				{-if:1 == $e['e_status']-} | <a href="{-url:admin@extension/uninstall_extension_do?e_hashcode={$e['e_hashcode']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}">{-:@UNINSTALL-}</a>
				{-else:-} | <a href="{-url:admin@extension/install_extension?e_hashcode={$e['e_hashcode']}-}">{-:@INSTALL-}</a> | <a href="{-url:admin@extension/delete_extension_do?e_hashcode={$e['e_hashcode']}&timeKey={$_TK['timeKey']}&token={$_TK['token']}-}" class="delete_confirm">{-:@DELETE-}</a>
				{-:/if-}</td>
			</tr>
			{-:/foreach-}
		</table>
	{-:/if-}
</div>
<div id="operation" class="margin">
	<a class="btn" href="{-url:admin@extension/upload_extension-}">{-:@UPLOAD_EXTENSION-}</a>
	<a class="btn" href="{-url:admin@extension/package_extension-}">{-:@PACKAGE_EXTENSION-}</a>
</div><!--/#operation-->
</form>

</div>
<script src="{-:*__RES__-}js/loga.js"></script>
<script src="{-:*__RES__-}js/jquery.js"></script>
<script src="{-:*__RES__-}fea/js/fea.min.js"></script>
<script src="{-:*__STYLE__-}js/common.js"></script>
<script src="{-:*__STYLE__-}js/admin.js"></script>
</body>
</html>