<?php defined('IN_ECJIA') or exit('No permission resources.');?>
<!-- {extends file="ecjia.dwt.php"} -->

<!-- {block name="footer"} -->
<script type="text/javascript">
	ecjia.admin.platform.init();
</script>
<!-- {/block} -->

<!-- {block name="main_content"} -->
<div>
	<h3 class="heading">
		<!-- {if $ur_here}{$ur_here}{/if} -->
		{if $action_link}
		<a href="{$action_link.href}" class="btn plus_or_reply data-pjax" id="sticky_a"><i class="fontello-icon-reply"></i>{$action_link.text}</a>
		{/if}
	</h3>
</div>	
<div class="row-fluid">
	<div class="span12">
		<table class="table table-striped table-hide-edit" data-rowlink="a">
			<thead>
				<tr>
					<th class="w150">{lang key='platform::platform.plug_name'}</th>
					<th class="w200">{lang key='platform::platform.plug_num'}</th>
					<th>{lang key='platform::platform.describe'}</th>
				</tr>
			</thead>
			<tbody>
				<!-- {foreach from=$modules.module item=module} -->
				<tr>
					<td>{$module.ext_name}</td>
					<td class="hide-edit-area">
					<!-- {if $module.enabled == 1} -->
						{$module.ext_code}
						<div class="edit-list">
							<a class="data-pjax" href='{RC_Uri::url("platform/admin_command/extend_command", "code={$module.ext_code}")}' title="{lang key='platform::platform.help_command'}">{lang key='platform::platform.help_command'}</a>&nbsp;|&nbsp;
							<a class="data-pjax" href='{RC_Uri::url("platform/admin_extend/edit", "code={$module.ext_code}")}' title="{lang key='platform::platform.edit'}">{lang key='platform::platform.edit'}</a>&nbsp;|&nbsp;
							<a class="switch ecjiafc-red" href="javascript:;" data-url='{RC_Uri::url("platform/admin_extend/disable", "code={$module.ext_code}")}' title="{lang key='platform::platform.forbidden'}">{lang key='platform::platform.forbidden'}</a>
						</div>
					<!-- {else} -->
						{$module.ext_code}
						<div class="edit-list">
							<a class="switch" href="javascript:;" data-url='{RC_Uri::url("platform/admin_extend/enable", "code={$module.ext_code}")}' title="{lang key='platform::platform.start_using'}">{lang key='platform::platform.start_using'}</a>
						</div>
					<!-- {/if} -->
					</td>
					<td>{$module.ext_desc}</td>
				</tr>
				<!-- {foreachelse} -->
				   <tr><td class="no-records" colspan="10">{lang key='system::system.no_records'}</td></tr>
				<!-- {/foreach} -->
			</tbody>
		</table>	
		<!-- {$modules.page} -->
	</div>
</div>
<!-- {/block} -->