<style>
.plugin-icon{width:50px;}
.plugin-icon img{padding-top:5px;}
.plugin-name{color:#666;font-weight:bold}
.plugin-id{font-size:11px;color:#999}
.plugin-author{color:#999}
.plugin-do{text-align:right;width:150px;}
.plugin-do a{padding-right:10px;}
.plugin-intro{display:block;border:1px dotted #DEEFFB;padding:0 10px;background:#fff;color:#666;}
.plugin-bg:hover{background:#F2F9FD;}
.plunin-item p{line-height:26px;margin:0;}
.plunin-item i{font-style:normal;padding:0 8px;}
a.plugin-memo{color:#999;margin-left:20px;}
a.ab{color:#2366A8;font-weight:bold}
a.an{color:#2376A8;}
</style>
<table width="100%" class="topmenu">
	<tr><td>
		<a href="plugin.php" class="on"><em>插件管理</em></a><span>|</span>
		<a href="?action=cache"><em>更新插件缓存</em></a>
	</td></tr>
</table>
<table width="100%" class="grid">
	<tr><th colspan="3"><strong style="color:#0099CC">已启用的插件</strong></th></tr>
	<tbody>
	{?section name=i loop=$rows['open']?}
	<tr>
		<td valign="top" class="plugin-icon"><img src="{?$rows['open'][i].path?}/images/ico.png"></td>
		<td class="plunin-item">
			<span class="plugin-name">{?$rows['open'][i].name?} V{?$rows['open'][i].version?} R{?$rows['open'][i].releases?}</span>
			<span class="plugin-id">({?$rows['open'][i].identifier?})</span>
			{?if $rows['open'][i].intro!=''?}<a href="javascript:;" onclick="display('intro_{?$rows['open'][i].pluginid?}')" class="plugin-memo">查看说明</a>
			<div id="intro_{?$rows['open'][i].pluginid?}" class="plugin-intro" style="display:none">{?$rows['open'][i].intro?}</div>{?/if?}
			<p class="plugin-author">作者: {?$rows['open'][i].author?}</p>
			<p>{?section name=j loop=$rows['open'][i]['menu']?}{?if $j['order']>1?}<i>|</i>{?/if?}<a href="{?$rows['open'][i]['menu'][j].url?}" class="an">{?$rows['open'][i]['menu'][j].name?}</a>{?/section?}</p>
		</td>
		<td class="plugin-do">
			<a href="?action=close&identifier={?$rows['open'][i].identifier?}" class="an">关闭</a>
			<a href="?action=upgrade&identifier={?$rows['open'][i].identifier?}" class="an">更新</a>
		</td>
	</tr>
	{?/section?}
	</tbody>
</table>
<br>
<table width="100%" class="grid">
	<tr><th colspan="3"><strong style="color:#0099CC">未启用的插件</strong></th></tr>
	<tbody>
	{?section name=i loop=$rows['close']?}
	<tr>
		<td valign="top" class="plugin-icon"><img src="{?$rows['close'][i].path?}/images/ico.png"></td>
		<td class="plunin-item">
			<span class="plugin-name">{?$rows['close'][i].name?} V{?$rows['close'][i].version?} R{?$rows['close'][i].releases?}</span>
			<span class="plugin-id">({?$rows['close'][i].identifier?})</span>
			{?if $rows['close'][i].intro!=''?}<a href="javascript:;" onclick="display('intro_{?$rows['close'][i].pluginid?}')" class="plugin-memo">查看说明</a>
			<div id="intro_{?$rows['close'][i].pluginid?}" class="plugin-intro" style="display:none">{?$rows['close'][i].intro?}</div>{?/if?}
			<p class="plugin-author">作者: {?$rows['close'][i].author?}</p>
			<p>{?section name=j loop=$rows['close'][i]['menu']?}{?if $j['order']>1?}<i>|</i>{?/if?}<a href="{?$rows['close'][i]['menu'][j].url?}" class="an">{?$rows['close'][i]['menu'][j].name?}</a>{?/section?}</p>
		</td>
		<td class="plugin-do">
			<a href="?action=open&identifier={?$rows['close'][i].identifier?}" class="ab">启用</a>
			<a href="?action=upgrade&identifier={?$rows['close'][i].identifier?}" class="an">更新</a>
			<a href="?action=uninstall&identifier={?$rows['close'][i].identifier?}" class="an">卸载</a>
		</td>
	</tr>
	{?/section?}
	</tbody>
</table>
<br>
<table width="100%" class="grid">
	<tr><th colspan="3"><strong style="color:#0099CC">未安装的插件</strong></th></tr>
	<tbody>
	{?section name=i loop=$rows['uninstall']?}
	<tr class="plugin-bg">
		<td valign="top" class="plugin-icon"><img src="{?$rows['uninstall'][i].path?}/images/ico.png"></td>
		<td class="plunin-item">
			<span class="plugin-name">{?$rows['uninstall'][i].name?} V{?$rows['uninstall'][i].version?} R{?$rows['uninstall'][i].releases?}</span>
			<span class="plugin-id">({?$rows['uninstall'][i].identifier?})</span>
			{?if $rows['uninstall'][i].intro!=''?}<a href="javascript:;" onclick="display('intro_{?$rows['uninstall'][i].identifier?}')" class="plugin-memo">查看说明</a>
			<div id="intro_{?$rows['uninstall'][i].identifier?}" class="plugin-intro" style="display:none">{?$rows['uninstall'][i].intro?}</div>{?/if?}
			<p class="plugin-author">作者: {?$rows['uninstall'][i].author?}</p>
		</td>
		<td class="plugin-do"><a href="?action=install&dir={?$rows['uninstall'][i].dir?}" class="ab">安装</a></td>
	</tr>
	{?/section?}
	</tbody>
</table>