You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.0 KiB
HTML
102 lines
3.0 KiB
HTML
<extend name="Public/base" />
|
|
|
|
<block name="body">
|
|
<script src="__JS__/common.js"></script>
|
|
<!-- 标题栏 -->
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
<h3 class="page_title">插件列表</h3>
|
|
<p class="description_text"></p>
|
|
</div>
|
|
|
|
<div class="cf top_nav_list">
|
|
<div class="fl button_list">
|
|
<a href="{:U('create')}" class=""><span class="button_icon button_icon1"></span>快速创建</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 数据列表 -->
|
|
<div class="data_list">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>名称</th>
|
|
<th>标识</th>
|
|
<th>描述</th>
|
|
<th>状态</th>
|
|
<th>作者</th>
|
|
<th>版本</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<notempty name="_list">
|
|
<volist name="_list" id="vo">
|
|
<tr>
|
|
<td>{$vo.title}</td>
|
|
<td>{$vo.name}</td>
|
|
<td>{$vo.description}</td>
|
|
<td>{$vo.status_text|default="未安装"}</td>
|
|
<td><a target="_blank" href="{$vo.url|default='http://www.onethink.cn'}">{$vo.author}</a></td>
|
|
<td>{$vo.version}</td>
|
|
<td>
|
|
<empty name="vo.uninstall">
|
|
<?php
|
|
$class = get_addon_class($vo['name']);
|
|
if(!class_exists($class)){
|
|
$has_config = 0;
|
|
}else{
|
|
$addon = new $class();
|
|
$has_config = count($addon->getConfig());
|
|
}
|
|
?>
|
|
<?php if ($has_config): ?>
|
|
<a href="{:U('config',array('id'=>$vo['id']))}">设置</a>
|
|
<?php endif ?>
|
|
<?php if ($vo['status'] >=0): ?>
|
|
<eq name="vo.status" value="0">
|
|
<a class="ajax-get" href="{:U('enable',array('id'=>$vo['id']))}">正常</a>
|
|
<else />
|
|
<a class="ajax-get" href="{:U('disable',array('id'=>$vo['id']))}">禁用</a>
|
|
</eq>
|
|
<?php endif ?>
|
|
{// <eq name="vo.author" value="thinkphp">}
|
|
<a class="ajax-get" href="{:U('uninstall?id='.$vo['id'])}">卸载</a>
|
|
{// </eq>}
|
|
<else />
|
|
<a class="ajax-get" href="{:U('install?addon_name='.$vo['name'])}">安装</a>
|
|
</empty>
|
|
</td>
|
|
</tr>
|
|
</volist>
|
|
<else/>
|
|
<td colspan="6" class="text-center">aOh! 暂时还没有内容!</td>
|
|
</notempty>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- 分页 -->
|
|
<div class="page">
|
|
{$_page}
|
|
</div>
|
|
<script type="text/javascript">
|
|
(function(){
|
|
var ThinkPHP = window.Think = {
|
|
"ROOT" : "__ROOT__", //当前网站地址
|
|
"APP" : "__APP__", //当前项目地址
|
|
"PUBLIC" : "__PUBLIC__", //项目公共目录地址
|
|
"DEEP" : "{:C('URL_PATHINFO_DEPR')}", //PATHINFO分割符
|
|
"MODEL" : ["{:C('URL_MODEL')}", "{:C('URL_CASE_INSENSITIVE')}", "{:C('URL_HTML_SUFFIX')}"],
|
|
"VAR" : ["{:C('VAR_MODULE')}", "{:C('VAR_CONTROLLER')}", "{:C('VAR_ACTION')}"]
|
|
}
|
|
})();
|
|
</script>
|
|
<script type="text/javascript" src="__STATIC__/think.js"></script>
|
|
<script>
|
|
highlight_subnav('{:U('Addons/index')}');
|
|
Think.setValue('row','{:I("row",10)}');
|
|
</script>
|
|
</block>
|