*/
@RouteBind(path = "/")
public class WebadminController extends BaseController {
public void index() {
this.setAttr("StaticCfg", new StaticCfg());
// Record m=this.getSessionAttr("manager");
Record m=getCurrentUser();
if(m==null){
this.setAttr("StaticCfg", new StaticCfg());
}else{
List<Record> menus=fetchMenu();
if(menus!=null&&menus.isEmpty()==false){
this.setAttr("menus",menus);
this.setAttr("pid", menus.get(0).getLong("id"));