SetTemplet(DEDEADMIN."/templets/plus_main.htm"); $dlist->SetSource($sql); $dlist->display(); function GetSta($sta,$id,$title) { if($sta==1) { return "   修改   启用 > 禁用   删除"; } else { return "   修改   禁用 > 启用   册除"; } } function GetLink($aid) { global $dsql; $row = $dsql->GetOne("SELECT menustring FROM `#@__plus` WHERE aid='{$aid}' "); $link = preg_replace('/^(.*)(link=\'([^\']*)\')(.*)$/i', '${3}', $row['menustring']); return $link; }