if($g_isadmin){
$dlist->SetTemplate(DEDETEMPLATE.'/plus/guestbook1.htm');//////后台模板
}else{
$dlist->SetTemplate(DEDETEMPLATE.'/plus/guestbook.htm');///////前台模板
}
另外我是通过(xdebug)
xdebug_start_code_coverage();
var_dump(xdebug_get_code_coverage());
xdebug_stop_code_coverage();
找出执行路径,找到判断是否是管理员的变量,然后加载不同模板解决的