コード例 #1
0
  @RequestMapping("/admin_global/v_list.do")
  public String list(
      String queryUsername,
      String queryEmail,
      Integer queryGroupId,
      Boolean queryDisabled,
      Integer pageNo,
      HttpServletRequest request,
      ModelMap model) {
    CmsUser currUser = CmsUtils.getUser(request);
    Pagination pagination =
        manager.getPage(
            queryUsername,
            queryEmail,
            null,
            queryGroupId,
            queryDisabled,
            true,
            currUser.getRank(),
            cpn(pageNo),
            CookieUtils.getPageSize(request));
    model.addAttribute("pagination", pagination);

    model.addAttribute("queryUsername", queryUsername);
    model.addAttribute("queryEmail", queryEmail);
    model.addAttribute("queryGroupId", queryGroupId);
    model.addAttribute("queryDisabled", queryDisabled);

    return "admin/global/list";
  }
コード例 #2
0
 @RequestMapping("/advertising_space/v_list.do")
 public String list(Integer pageNo, HttpServletRequest request, ModelMap model) {
   CmsSite site = CmsUtils.getSite(request);
   Pagination pagination =
       manager.getPageList(site.getId(), cpn(pageNo), CookieUtils.getPageSize(request));
   model.addAttribute("pagination", pagination);
   model.addAttribute("pageNo", pagination.getPageNo());
   return "advertising_space/list";
 }