コード例 #1
0
  public static Mapx init(Mapx params) {
    ZCAdminGroupSchema manageGroup = new ZCAdminGroupSchema();
    String ID = params.getString("ID");
    manageGroup.setGroupID(ID);
    manageGroup.fill();
    ZCForumGroupSchema group = new ZCForumGroupSchema();
    group.setID(manageGroup.getGroupID());
    group.fill();
    params = manageGroup.toMapx();
    params.put("Name", group.getName());
    Mapx map = new Mapx();
    map.put("Y", "允许");
    map.put("N", "不允许");
    params.put(
        "AllowEditUser",
        HtmlUtil.mapxToRadios("AllowEditUser", map, manageGroup.getAllowEditUser()));
    params.put(
        "AllowForbidUser",
        HtmlUtil.mapxToRadios("AllowForbidUser", map, manageGroup.getAllowForbidUser()));
    params.put(
        "AllowEditForum",
        HtmlUtil.mapxToRadios("AllowEditForum", map, manageGroup.getAllowEditForum()));
    params.put(
        "AllowVerfyPost",
        HtmlUtil.mapxToRadios("AllowVerfyPost", map, manageGroup.getAllowVerfyPost()));
    params.put("AllowEdit", HtmlUtil.mapxToRadios("AllowEdit", map, manageGroup.getAllowEdit()));
    params.put("AllowDel", HtmlUtil.mapxToRadios("AllowDel", map, manageGroup.getAllowDel()));
    params.put("Hide", HtmlUtil.mapxToRadios("Hide", map, manageGroup.getHide()));

    return params;
  }
コード例 #2
0
ファイル: Apply.java プロジェクト: yourfei/myfcms
  public static Mapx init(Mapx params) {
    String position = params.getString("Position");
    params.put("Political", HtmlUtil.mapxToOptions(Political_MAP, true));
    params.put("EduLevel", HtmlUtil.mapxToOptions(EduLevel_MAP, true));
    params.put("Gender", HtmlUtil.mapxToRadios("Gender", Gender_MAP, "M"));
    params.put("Ethnicity", HtmlUtil.codeToOptions("Ethnicity"));
    params.put("District", "");
    params.put("Position", position);

    Mapx district =
        new QueryBuilder("select code,name from zddistrict where treelevel=1")
            .executeDataTable()
            .toMapx(0, 1);
    params.put("NativePlace", HtmlUtil.mapxToOptions(district));
    return params;
  }
コード例 #3
0
 public static Mapx initThemeOption(Mapx params) {
   ZCAdminGroupSchema manageGroup = new ZCAdminGroupSchema();
   manageGroup.setGroupID(params.getString("ID"));
   manageGroup.fill();
   params = manageGroup.toMapx();
   Mapx map = new Mapx();
   map.put("Y", "允许");
   map.put("N", "不允许");
   params.put(
       "RemoveTheme", HtmlUtil.mapxToRadios("RemoveTheme", map, manageGroup.getRemoveTheme()));
   params.put("MoveTheme", HtmlUtil.mapxToRadios("MoveTheme", map, manageGroup.getMoveTheme()));
   params.put("TopTheme", HtmlUtil.mapxToRadios("TopTheme", map, manageGroup.getTopTheme()));
   params.put(
       "BrightTheme", HtmlUtil.mapxToRadios("BrightTheme", map, manageGroup.getBrightTheme()));
   params.put(
       "UpOrDownTheme",
       HtmlUtil.mapxToRadios("UpOrDownTheme", map, manageGroup.getUpOrDownTheme()));
   params.put("BestTheme", HtmlUtil.mapxToRadios("BestTheme", map, manageGroup.getBestTheme()));
   return params;
 }