{#include file="header.html"#}
<body>

<!-- top menu -->
{#include file="top.html"#}
<!-- top menu -->

<!-- wrap -->
<div class="wrap">
	<!-- nav -->
	<div class="navlink"><a href="admincp.php">{#$cp_lang.cp#}</a>{#$navlink#}</div>
	<!-- msg -->
	<!-- main -->
	<div class="container">
		<table cellpadding="0" cellspacing="0">
		<tr>
		<td style="width:180px">
		<!-- sidebar -->
		<div class="sidebar">
		<div class="leftmenuheader">{#$cp_lang.plugin#}</div>
		<div class="leftmenubody">
			<div class="leftmenutitle" onClick="show_menu('leftmenuitem_1','1');"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="leftmenuitem_icon_1" />&nbsp;&nbsp;{#$menu.mName#}</div>
			<div class="leftmenuitem" id="leftmenuitem_1">
				{#foreach from=$menu.mItems item=s_item key=s_key#}
				<li><a href="admincp.php?action=plugin&amp;plugin={#$s_item#}">{#$s_key#}</a></li>
				{#/foreach#}
			</div>
		</div>
		</div>
		<!-- sidebar end -->
		</td>
		<td>
		<!-- content -->
		<div class="content">
			<!-- include -->
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					{#$plugin_lang.plugin_tip#}
				</div>
			</div>
			<!-- tip end -->
			<!-- item -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$plugin_lang.plugin_title#}</div>
				<div class="tablecontent" id="tablecontent_1">
					{#if $showplugin eq "1"#}
					{#eval var=$plugin_tpl#}
					{#else#}
					<form action="{#$actionurl#}" method="post" name="form" id="plugin">
					<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_header">{#$cp_lang.plugin_name#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.plugin_dir#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.plugin_status#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.operation#}</td>
					</tr>
					{#foreach from=$plugins item=item name=plugins#}
					<tr class="{#if $smarty.foreach.plugins.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center"><a href="admincp.php?action=plugin&plugin={#$item.pmark#}">{#$item.pname#}</a></td>
						<td align="center">{#$item.pmark#}</td>
						<td align="center"><span class="altconfirm" onclick="checkAction('admincp.php?action=plugin&amp;step=status&amp;status={#$item.status#}&pid={#$item.pid#}', '{#$item.opptagstatus#}')"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/status_{#$item.status#}.gif" alt="{#$item.opptagstatus#}" /></span></td>
						<td align="center"><span class="altconfirm" onclick="checkAction('admincp.php?action=plugin&amp;step=del&amp;pid={#$item.pid#}', '{#$cp_lang.plugin_uninstall#}')">{#$cp_lang.plugin_uninstall#}</span></td>
					</tr>
					{#/foreach#}
					</table>
					</form>
					{#/if#}
				</div>
			</div>
			<!-- item -->
			<!-- include -->
		</div>
		<!-- content -->
		</td>
		</tr>
		</table>
	</div>
</div>
<!-- wrap -->

{#include file="footer.html"#}