if (active_base == "tab_install_wizard") {
	var keysetpwd_tbl = {key: "pgm50_keysetpwd_tbl", table: [{label: langs.getText("p162","adminpass"), colspan: 3}, {label: " ("+langs.getText("common","btn_save")+" : ", cont: 1}, {name: "CHKSAVE_KEYSETPWD", chk_type: "chk_iw008_keysetpwd_save", chk: 1, cont: 1}, {label: ")", cont: 1}]};
	var keysetpwd_tr = {key: "pgm50_keysetpwd_tr", tr: [{label: langs.getText("common","passwd")}, {name: "KEYSETPWD", value: "", password:[{max: 12}], message: "", cont: 0}, {chk_type: "chk_showpwd", chk: 1, cont: 1}, {label: langs.getText("p50","show_pwd"), cont: 1}, {label: langs.getText("p221","cmt_max12digit")}]};
} else {
	var keysetpwd_tbl= {};
	var keysetpwd_tr = {};
}
if(info.NO_OF_ICM_GRPS) {
    var range_guide = " 1 ~ "+info.NO_OF_ICM_GRPS+", "+langs.getText("p50","tenancy_rul");
}
else {
	var range_guide = "";
}
if(info.PHASE >= 4.0) {
	var web_api = {tr: [{label: " Web API", colspan: 2}, {name: "PRIVILEGE", value: "", radio: [{value: "7"}], cont: 1},{label: " : ", cont: 1},{label: "SMDR", cont: 1},{name: "API_SMDR", value: "0", chk_type: "chk_selectall", chk: 1, cont: 1},{label: " ", cont: 1},{label: "ACD", cont: 1},{name: "API_ACD", value: "0", chk_type: "chk_selectall", chk: 1, cont: 1},{label: " ", cont: 1},{label: "CTI", cont: 1},{name: "API_CALLAPI", value: "0", chk_type: "chk_selectall", chk: 1, cont: 1}]};
	var rp = 7;
}	
else if(info.PHASE >= 3.5) {
	var web_api = {tr: [{label: " REST API", colspan: 2}, {name: "PRIVILEGE", value: "", radio: [{value: "7"}], cont: 1}]};
	var rp = 7;
}
else{
	var web_api = {};
	var rp = 6;
}
define(
    {elements:[
        {name:"tab1", tab: [
            {key: "pgm50_button", button: [{btn: langs.getText("common","btn_save"), btn_type: "btn_save auth_write"}]},
            {key: "pgm50_mktbl", table: [{label: langs.getText("p50","add_user"), colspan: 3}]},
            {key: "pgm50_userid", tr: [{label: langs.getText("common","userid")}, {name: "ADD_USERID", value: "", textfield:[{max: 16}], message: "", cont: 0}, {label: langs.getText("common","max16chdigit")}, {br: 1, cont: 1}, {label: langs.getText("p50","cmt_userid2"), cont: 1}]},
            {key: "pgm50_password", tr: [{label: langs.getText("common","passwd")}, {name: "ADD_PASSWORD", value: "", password:[{max: 16}], message: "", cont: 0}, {chk_type: "chk_showpwd", chk: 1, cont: 1}, {label: langs.getText("p50","show_pwd"), cont: 1}, {label: langs.getText("common","max16chdigit")}]},
            {key: "pgm50_privilege", struct:[{tr: [{label: langs.getText("p50","privilege"), rowspan: rp}, {label: langs.getText("common", "opt_authority_maint"), colspan: 2}, {name: "PRIVILEGE", radio: [{value: "10"}], cont: 1}]},
								{tr: [{label: langs.getText("common", "opt_authority_admin"), colspan: 2}, {name: "PRIVILEGE", radio: [{value: "4"}], cont: 1}]},
								{tr: [{label: langs.getText("common", "user"), colspan: 2}, {name: "PRIVILEGE", value: "", radio: [{value: "3"}], cont: 1}]},
								{tr: [{label: langs.getText("common", "custom")+" 1", colspan: 2}, {name: "PRIVILEGE", value: "", radio: [{value: "5"}], cont: 1}]},
								{tr: [{label: langs.getText("common", "custom")+" 2", colspan: 2}, {name: "PRIVILEGE", value: "", radio: [{value: "6"}], cont: 1}]},
								web_api,
								{tr: [{label: "ReadOnly", colspan: 2}, {name: "READONLY", value: "", chk_type: "chk_selectall", chk: 1, cont: 1}]}
								/* {tr: [{label: langs.getText("p50","pri_sta")}, {name:"PRI_STA", value:"", textfield:[{max:8}], message: "", cont: 0}, {btn: "+", btn_type: "btn_addstn", cont: 1}]} */ ]},
				{key: "pgm50_tenancy", tr: [{label: langs.getText("p251","cmt_sysondmd_icmgrp")}, {name: "ADD_TENANCY", value: "", textfield:[{max: 15, size:15}], message: "", cont: 0}, {label: range_guide}]},
            {key: "pgm50_hr", contents: [{hr: 1}]},
            {key: "pgm50_userlist_tbl", table: [{label: langs.getText("p50","user_list"), colspan: 4}],
														 th: [{label: langs.getText("common","userid")}, {label: langs.getText("p50","privilege")}, {label: langs.getText("p251","cmt_sysondmd_icmgrp")}, {label: ""}],
												data_form: [{key: "", tr: [{name: "USER_ID", value: "", label: 1}, {name: "USER_PRI", value: "", select:[{value: "0", option: langs.getText("common","not_assigned")}, {value: "1", option: langs.getText("common", "info_stn")}, {value: "3", option: langs.getText("common", "user")}, {value: "4", option: langs.getText("common", "opt_authority_admin")}, {value: "5", option: langs.getText("common", "custom")+" 1"}, {value: "6", option: langs.getText("common", "custom")+" 2"}, {value: "7", option: "Web API"},{value: "10", option: langs.getText("common", "opt_authority_maint")},{value: "101", option: langs.getText("common", "info_stn")+" "+langs.getText("common", "read_only")}, {value: "103", option: langs.getText("common", "user")+" "+langs.getText("common", "read_only")}, {value: "104", option: langs.getText("common", "opt_authority_admin")+" "+langs.getText("common", "read_only")}, {value: "105", option: langs.getText("common", "custom")+" 1"+" "+langs.getText("common", "read_only")}, {value: "106", option: langs.getText("common", "custom")+" 2"+" "+langs.getText("common", "read_only")}, {value: "107", option: "REST API"+" "+langs.getText("common", "read_only")}, {value: "110", option: langs.getText("common", "opt_authority_maint")+" "+langs.getText("common", "read_only")}], message: "", show: 0},{name:"USER_APIFEATURE", value:"",cont:1,label:1},{name:"USER_TENANCY",value:"",label:1}, {btn: langs.getText("common","btn_del"), btn_type: "btn_p50_deluser auth_write"}]}],
										  variable_data: [{}]},
				keysetpwd_tbl,
				keysetpwd_tr
        ]}
    ]}
);
