foreach($list as $type=>$value){
{$value['name']}

插件名称 | 作者 | 版本号 | 描述 | 操作 | 卸载
--- | --- | --- | --- | --- | ---
if(empty($value['data'])) {
暂无{$value['name']} |  |  |  |  |
}
{$vo['pluginName']} | {$vo['author']} if(isset($vo['site'])){ {$vo['site']} } | {$vo['version']} | {$vo['info']} | if($type == "valid"){ $stop_href = U('admin/Addons/stopAddon',array('addonId'=>$vo['addonId'])); $stop_alert_1 = '确定停用该插件?'; 停用 }else{ $install_href = U('admin/Addons/startAddon',array('name'=>$vo['name'])); if($vo['sqlfile']){ $install_alert_1 = '初次启用该插件时将会进行sql操作，且无法恢复，强烈建议您备份数据库后再启用，确定继续?'; }else{ $install_alert_1 = '确定启用该插件？'; } if(isset($vo['addonId'])){ 启用 }else{ 安装 } } if(isset($vo['admin']) && $type == "valid"){ $href = U('admin/Addons/admin',array('pluginid'=>$vo['addonId'])); 管理 } | if(isset($vo['addonId'])){ $uninstall_href = U('admin/Addons/uninstallAddon',array('name'=>$vo['name'])); $uninstall_alert_1 = '确定卸载该插件?'; $uninstall_alert_2 = '卸载后, 您将丢失所有插件相关的数据, 强烈建议您备份数据库后再卸载!! 确定继续?'; 卸载 }

}