#include "../_inc/_layout.html"/> <#macro script> function doAjax(id){ var url = "${CPATH}/admin/template/enable?ucode=${(ucode)!}&id="+id; $.get(url, function(result){ if(result.errorCode > 0){ toastr.error(result.message,'操作失败'); }else{ location.reload(); } }); } #macro> <@layout active_id=p child_active_id=c> 模板 <#if templateList ??> ${templateList.size()} <#else> 0 #if> 安装新模板 <#if templateList ??> <#list templateList as template> #list> #if> @layout>