<{import file="index/header.html"}> 
<{import file="api/nav.html"}> 
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>插件为一些第三方的插件，如云储存，短信，快捷登录，支付。</p>
		<p>如果是第三方开发的开发商，接口参考其他文件进行开发，系统会自动添加。</p>
	</div> 
</div> 
<div class="tab">
	<a href="<{$__ADMIN__}>api/index?type=storage" <{if $smarty.get.type == 'storage' || $smarty.get.type == ''}> class="ch"<{/if}>>储存接口</a> 
	<a href="<{$__ADMIN__}>api/index?type=pay" <{if $smarty.get.type == 'pay'}> class="ch"<{/if}>>支付接口</a>
	<a href="<{$__ADMIN__}>api/index?type=login" <{if $smarty.get.type == 'login'}> class="ch"<{/if}>>登录接口</a> 
	<a href="<{$__ADMIN__}>api/index?type=sms" <{if $smarty.get.type == 'sms'}> class="ch"<{/if}>>短信配置</a>
	<a href="<{$__ADMIN__}>api/index?type=email" <{if $smarty.get.type == 'email'}> class="ch"<{/if}>>邮箱接口</a> 
	<a href="<{$__ADMIN__}>api/index?type=wchat" <{if $smarty.get.type == 'wchat'}> class="ch"<{/if}>>微信接口</a>
	<a href="<{$__ADMIN__}>api/index?type=express" <{if $smarty.get.type == 'express'}> class="ch"<{/if}>>快递接口</a>  
</div>
<div class="main"> 
	<table class="ltable">
		<thead>
			<tr>
			 	<th width="<{if $smarty.get.type == 'sms' || $smarty.get.type == 'email' || $smarty.get.type == 'wchat'}>130<{else}>70<{/if}>">操作</th> 
				<th width="80">别名</th>
				<th width="120">名称</th> 
				<th>描述</th>
			</tr>
		</thead>
		<tbody>
		<{if $data}> 
			<{foreach item=i from=$data}>
				<tr>
					<td>
						<a href="<{$__ADMIN__}>api/edit?id=<{$i.id}>" class="edit">配置</a>
						<{if $smarty.get.type == 'sms' || $smarty.get.type == 'email' || $smarty.get.type == 'wchat'}>
							<a href="<{$__ADMIN__}>api/tpl?id=<{$i.id}>" class="edit">模板</a> 
						<{/if}>	
					</td> 
					<td><{$i.alias}></td> 
					<td><{$i.name}></td> 
					<td><span style="color:#888;"><{$i.desc}></span></td>
				</tr>
			<{/foreach}>
		<{else}>
			<tr><td colspan="7">还没有数据，赶快添加吧！</td></tr>
		<{/if}>
	</tbody>
</table>
</div>
<{import file="index/footer.html"}>