--- base/Documents/BaseForMySql_v1.0.erwin
+++ base/Documents/BaseForMySql_v1.0.erwin
| Binary file is not shown |
--- base/Documents/MySql_기본데이터.sql
+++ base/Documents/MySql_기본데이터.sql
... | ... | @@ -140,13 +140,22 @@ |
| 140 | 140 |
INSERT INTO comtccmmndetailcode (CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('COM017', '01', '법정휴일', '법정휴일', 'Y', NOW(), 'SYSTEM', NOW(), 'SYSTEM');
|
| 141 | 141 |
INSERT INTO comtccmmndetailcode (CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('COM017', '02', '법정공휴일', '법정공휴일', 'Y', NOW(), 'SYSTEM', NOW(), 'SYSTEM');
|
| 142 | 142 |
INSERT INTO comtccmmndetailcode (CODE_ID, CODE, CODE_NM, CODE_DC, USE_AT, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('COM017', '03', '임시공휴일', '임시공휴일', 'Y', NOW(), 'SYSTEM', NOW(), 'SYSTEM');
|
| 143 |
+INSERT INTO comtccmmndetailcode (CODE_NM, CODE_DC, USE_AT, CODE, CODE_ID, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('통합관리자','통합관리자','Y','99','COM800',NOW(),'SYSTEM',NULL,NULL);
|
|
| 144 |
+INSERT INTO comtccmmndetailcode (CODE_NM, CODE_DC, USE_AT, CODE, CODE_ID, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('관리자','관리자','Y','10','COM800',NOW(),'SYSTEM',NULL,NULL);
|
|
| 145 |
+INSERT INTO comtccmmndetailcode (CODE_NM, CODE_DC, USE_AT, CODE, CODE_ID, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('교사','교사','Y','08','COM800',NOW(),'SYSTEM',NULL,NULL);
|
|
| 146 |
+INSERT INTO comtccmmndetailcode (CODE_NM, CODE_DC, USE_AT, CODE, CODE_ID, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('학생','학생','Y','06','COM800',NOW(),'SYSTEM',NULL,NULL);
|
|
| 147 |
+INSERT INTO comtccmmndetailcode (CODE_NM, CODE_DC, USE_AT, CODE, CODE_ID, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('학부모','학부모','Y','04','COM800',NOW(),'SYSTEM',NULL,NULL);
|
|
| 148 |
+INSERT INTO comtccmmndetailcode (CODE_NM, CODE_DC, USE_AT, CODE, CODE_ID, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('시민','시민','Y','02','COM800',NOW(),'SYSTEM',NULL,NULL);
|
|
| 149 |
+INSERT INTO comtccmmndetailcode (CODE_NM, CODE_DC, USE_AT, CODE, CODE_ID, FRST_REGISTER_PNTTM, FRST_REGISTER_ID, LAST_UPDUSR_PNTTM, LAST_UPDUSR_ID) VALUES ('모든사용자','모든사용자','Y','01','COM800',NOW(),'SYSTEM',NULL,NULL);
|
|
| 150 |
+ |
|
| 151 |
+ |
|
| 143 | 152 |
|
| 144 | 153 |
INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('01','모든사용자','',NOW());
|
| 145 | 154 |
INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('02','시민','',NOW());
|
| 146 | 155 |
INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('04','학부모','',NOW());
|
| 147 | 156 |
INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('06','학생','',NOW());
|
| 148 | 157 |
INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('08','교사','',NOW());
|
| 149 |
-INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('10','업무관리자','',NOW());
|
|
| 158 |
+INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('10','관리자','',NOW());
|
|
| 150 | 159 |
INSERT INTO comtnauthorinfo (AUTHOR_CODE, AUTHOR_NM, AUTHOR_DC, AUTHOR_CREAT_DE) VALUES ('99','통합관리자','',NOW());
|
| 151 | 160 |
|
| 152 | 161 |
|
--- base/src/main/java/egovframework/com/front/uat/uia/web/EgovLoginController.java
+++ base/src/main/java/egovframework/com/front/uat/uia/web/LoginController.java
... | ... | @@ -37,7 +37,7 @@ |
| 37 | 37 |
|
| 38 | 38 |
//일반 로그인, 인증서 로그인을 처리하는 컨트롤러 클래스 |
| 39 | 39 |
@Controller |
| 40 |
-public class EgovLoginController {
|
|
| 40 |
+public class LoginController {
|
|
| 41 | 41 |
|
| 42 | 42 |
@Resource(name = "siteManageService") |
| 43 | 43 |
SiteManageService siteManageService; |
... | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 |
@Resource(name = "directMailService") |
| 61 | 61 |
private DirectMailService directMailService; |
| 62 | 62 |
|
| 63 |
- protected static final Log LOG = LogFactory.getLog(EgovLoginController.class); |
|
| 63 |
+ protected static final Log LOG = LogFactory.getLog(LoginController.class); |
|
| 64 | 64 |
|
| 65 | 65 |
//로그인 화면으로 들어간다 |
| 66 | 66 |
@RequestMapping(value="/uat/uia/egovLoginUsr.do") |
--- base/src/main/java/egovframework/com/front/uss/ivp/web/EgovIndvdlestbsController.java
+++ base/src/main/java/egovframework/com/front/uss/ivp/web/IndvdlestbsController.java
... | ... | @@ -22,7 +22,7 @@ |
| 22 | 22 |
import egovframework.module.uss.ivp.service.IndvdlestbsVO; |
| 23 | 23 |
|
| 24 | 24 |
@Controller |
| 25 |
-public class EgovIndvdlestbsController {
|
|
| 25 |
+public class IndvdlestbsController {
|
|
| 26 | 26 |
|
| 27 | 27 |
@Resource(name = "indvdlestbsService") |
| 28 | 28 |
private IndvdlestbsService indvdlestbsService; |
--- base/src/main/java/egovframework/com/front/uss/umt/web/EgovUserInfoController.java
+++ base/src/main/java/egovframework/com/front/uss/umt/web/UserInfoController.java
... | ... | @@ -48,7 +48,7 @@ |
| 48 | 48 |
import egovframework.module.ems.service.DirectMailService; |
| 49 | 49 |
|
| 50 | 50 |
@Controller |
| 51 |
-public class EgovUserInfoController {
|
|
| 51 |
+public class UserInfoController {
|
|
| 52 | 52 |
|
| 53 | 53 |
@Resource(name = "siteManageService") |
| 54 | 54 |
private SiteManageService siteManageService; |
--- base/src/main/java/egovframework/com/mng/msi/web/EgovTemplateController.java
+++ base/src/main/java/egovframework/com/mng/msi/web/TemplateController.java
... | ... | @@ -15,7 +15,7 @@ |
| 15 | 15 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 16 | 16 |
|
| 17 | 17 |
@Controller("MngEgovTemplateController")
|
| 18 |
-public class EgovTemplateController {
|
|
| 18 |
+public class TemplateController {
|
|
| 19 | 19 |
|
| 20 | 20 |
@Resource(name = "propertiesService") |
| 21 | 21 |
protected EgovPropertyService propertiesService; |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovBbsStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/BbsStatsController.java
... | ... | @@ -1,152 +1,152 @@ |
| 1 |
-package egovframework.com.mng.sts.web; |
|
| 2 |
- |
|
| 3 |
-import java.util.ArrayList; |
|
| 4 |
-import java.util.HashMap; |
|
| 5 |
-import java.util.List; |
|
| 6 |
-import java.util.Map; |
|
| 7 |
- |
|
| 8 |
-import javax.annotation.Resource; |
|
| 9 |
-import javax.servlet.http.HttpServletRequest; |
|
| 10 |
-import javax.servlet.http.HttpServletResponse; |
|
| 11 |
- |
|
| 12 |
-import org.springframework.stereotype.Controller; |
|
| 13 |
-import org.springframework.ui.ModelMap; |
|
| 14 |
-import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
-import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
-import org.springframework.web.servlet.ModelAndView; |
|
| 17 |
- |
|
| 18 |
-import org.apache.commons.logging.Log; |
|
| 19 |
-import org.apache.commons.logging.LogFactory; |
|
| 20 |
- |
|
| 21 |
-import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 22 |
-import egovframework.module.sts.service.ScrinStatsService; |
|
| 23 |
-import egovframework.module.sts.service.StatsVO; |
|
| 24 |
-import egovframework.module.uat.uia.service.LoginVO; |
|
| 25 |
-import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 26 |
-import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 27 |
- |
|
| 28 |
-/** |
|
| 29 |
- * 화면 통계 검색 컨트롤러 클래스 |
|
| 30 |
- * @author 공통서비스 개발팀 박지욱 |
|
| 31 |
- * @since 2009.03.19 |
|
| 32 |
- * @version 1.0 |
|
| 33 |
- * @see |
|
| 34 |
- * |
|
| 35 |
- * <pre> |
|
| 36 |
- * << 개정이력(Modification Information) >> |
|
| 37 |
- * |
|
| 38 |
- * 수정일 수정자 수정내용 |
|
| 39 |
- * ------- -------- --------------------------- |
|
| 40 |
- * 2009.03.19 박지욱 최초 생성 |
|
| 41 |
- * |
|
| 42 |
- * </pre> |
|
| 43 |
- */ |
|
| 44 |
-@Controller |
|
| 45 |
-public class EgovBbsStatsController {
|
|
| 46 |
- |
|
| 47 |
- /** |
|
| 48 |
- * EgovConectStatsService |
|
| 49 |
- */ |
|
| 50 |
- @Resource(name = "scrinStatsService") |
|
| 51 |
- private ScrinStatsService scrinStatsService; |
|
| 52 |
- |
|
| 53 |
- /** log */ |
|
| 54 |
- protected static final Log LOG = LogFactory.getLog(EgovBbsStatsController.class); |
|
| 55 |
- |
|
| 56 |
- /** |
|
| 57 |
- * 게시물 통계를 조회한다 |
|
| 58 |
- * @param statsVO StatsVO |
|
| 59 |
- * @return String |
|
| 60 |
- * @exception Exception |
|
| 61 |
- */ |
|
| 62 |
- @RequestMapping(value="/mng/sts/selectBbsStats.do") |
|
| 63 |
- public String selectBbsStats(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 64 |
- ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 65 |
- |
|
| 66 |
- /* |
|
| 67 |
- List<SiteManageVO> siteList = siteManageService.selectSiteSimpleList(); |
|
| 68 |
- if(EgovStringUtil.isEmpty(statsVO.getSearchSiteId())) {
|
|
| 69 |
- if(siteList != null && siteList.size() > 0) {
|
|
| 70 |
- statsVO.setSearchSiteId(siteList.get(0).getSiteId()); |
|
| 71 |
- } |
|
| 72 |
- } |
|
| 73 |
- model.addAttribute("siteList", siteList);
|
|
| 74 |
- */ |
|
| 75 |
- |
|
| 76 |
- LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 77 |
- if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 78 |
- statsVO.setSiteId(loginVO.getSiteId()); |
|
| 79 |
- } |
|
| 80 |
- |
|
| 81 |
- if(!EgovStringUtil.isEmpty(statsVO.getSiteId())) {
|
|
| 82 |
- List<StatsVO> scrinStats = this.selectBbsStatsData(statsVO); |
|
| 83 |
- |
|
| 84 |
- model.addAttribute("scrinStats", scrinStats);
|
|
| 85 |
- } |
|
| 86 |
- return "/mng/sts/EgovBbsStats"; |
|
| 87 |
- } |
|
| 88 |
- |
|
| 89 |
- /** |
|
| 90 |
- * 게시물 통계를 엑셀로 다운로드 한다 |
|
| 91 |
- * @param statsVO StatsVO |
|
| 92 |
- * @return String |
|
| 93 |
- * @exception Exception |
|
| 94 |
- */ |
|
| 95 |
- @RequestMapping(value="/mng/sts/selectBbsStatsExcel.do") |
|
| 96 |
- public ModelAndView selectBbsStatsExcel(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 97 |
- ModelMap model) throws Exception {
|
|
| 98 |
- |
|
| 99 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 100 |
- List<String> columMap = new ArrayList<String>(); |
|
| 101 |
- List<Object> valueMap = new ArrayList<Object>(); |
|
| 102 |
- |
|
| 103 |
- columMap.add("사이트");
|
|
| 104 |
- columMap.add("구분");
|
|
| 105 |
- columMap.add("게시판");
|
|
| 106 |
- columMap.add("생성");
|
|
| 107 |
- columMap.add("조회");
|
|
| 108 |
- columMap.add("다운로드");
|
|
| 109 |
- |
|
| 110 |
- List<StatsVO> scrinStats = this.selectBbsStatsData(statsVO); |
|
| 111 |
- if(scrinStats != null) {
|
|
| 112 |
- StatsVO tmpVO = null; |
|
| 113 |
- Map<String, Object> tmpMap = null; |
|
| 114 |
- for(int i=0; i < scrinStats.size(); i++) {
|
|
| 115 |
- tmpVO = scrinStats.get(i); |
|
| 116 |
- |
|
| 117 |
- tmpMap = new HashMap<String, Object>(); |
|
| 118 |
- tmpMap.put("사이트", tmpVO.getSiteNm());
|
|
| 119 |
- tmpMap.put("구분", tmpVO.getGbNm());
|
|
| 120 |
- tmpMap.put("게시판", tmpVO.getBbsNm());
|
|
| 121 |
- tmpMap.put("생성", tmpVO.getCreatCo());
|
|
| 122 |
- tmpMap.put("조회", tmpVO.getTotInqireCo());
|
|
| 123 |
- tmpMap.put("다운로드", tmpVO.getDwldCo());
|
|
| 124 |
- |
|
| 125 |
- valueMap.add(tmpMap); |
|
| 126 |
- } |
|
| 127 |
- } |
|
| 128 |
- map.put("title", "게시물통계");
|
|
| 129 |
- map.put("columMap", columMap);
|
|
| 130 |
- map.put("valueMap", valueMap);
|
|
| 131 |
- |
|
| 132 |
- |
|
| 133 |
- |
|
| 134 |
- return new ModelAndView("excelDownloadView", "dataMap", map);
|
|
| 135 |
- } |
|
| 136 |
- |
|
| 137 |
- private List<StatsVO> selectBbsStatsData(StatsVO statsVO) throws Exception {
|
|
| 138 |
- |
|
| 139 |
- if(EgovStringUtil.isEmpty(statsVO.getPdKind()) || EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 140 |
- String today = EgovDateUtil.getToday(); |
|
| 141 |
- statsVO.setPdKind("D");
|
|
| 142 |
- statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 143 |
- statsVO.setToDate(today); |
|
| 144 |
- } |
|
| 145 |
- |
|
| 146 |
- if(EgovStringUtil.isEmpty(statsVO.getStatsKind())) {
|
|
| 147 |
- statsVO.setStatsKind("H");
|
|
| 148 |
- } |
|
| 149 |
- |
|
| 150 |
- return scrinStatsService.selectBbsStats(statsVO); |
|
| 151 |
- } |
|
| 1 |
+package egovframework.com.mng.sts.web; |
|
| 2 |
+ |
|
| 3 |
+import java.util.ArrayList; |
|
| 4 |
+import java.util.HashMap; |
|
| 5 |
+import java.util.List; |
|
| 6 |
+import java.util.Map; |
|
| 7 |
+ |
|
| 8 |
+import javax.annotation.Resource; |
|
| 9 |
+import javax.servlet.http.HttpServletRequest; |
|
| 10 |
+import javax.servlet.http.HttpServletResponse; |
|
| 11 |
+ |
|
| 12 |
+import org.springframework.stereotype.Controller; |
|
| 13 |
+import org.springframework.ui.ModelMap; |
|
| 14 |
+import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
+import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
+import org.springframework.web.servlet.ModelAndView; |
|
| 17 |
+ |
|
| 18 |
+import org.apache.commons.logging.Log; |
|
| 19 |
+import org.apache.commons.logging.LogFactory; |
|
| 20 |
+ |
|
| 21 |
+import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 22 |
+import egovframework.module.sts.service.ScrinStatsService; |
|
| 23 |
+import egovframework.module.sts.service.StatsVO; |
|
| 24 |
+import egovframework.module.uat.uia.service.LoginVO; |
|
| 25 |
+import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 26 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 27 |
+ |
|
| 28 |
+/** |
|
| 29 |
+ * 화면 통계 검색 컨트롤러 클래스 |
|
| 30 |
+ * @author 공통서비스 개발팀 박지욱 |
|
| 31 |
+ * @since 2009.03.19 |
|
| 32 |
+ * @version 1.0 |
|
| 33 |
+ * @see |
|
| 34 |
+ * |
|
| 35 |
+ * <pre> |
|
| 36 |
+ * << 개정이력(Modification Information) >> |
|
| 37 |
+ * |
|
| 38 |
+ * 수정일 수정자 수정내용 |
|
| 39 |
+ * ------- -------- --------------------------- |
|
| 40 |
+ * 2009.03.19 박지욱 최초 생성 |
|
| 41 |
+ * |
|
| 42 |
+ * </pre> |
|
| 43 |
+ */ |
|
| 44 |
+@Controller |
|
| 45 |
+public class BbsStatsController {
|
|
| 46 |
+ |
|
| 47 |
+ /** |
|
| 48 |
+ * EgovConectStatsService |
|
| 49 |
+ */ |
|
| 50 |
+ @Resource(name = "scrinStatsService") |
|
| 51 |
+ private ScrinStatsService scrinStatsService; |
|
| 52 |
+ |
|
| 53 |
+ /** log */ |
|
| 54 |
+ protected static final Log LOG = LogFactory.getLog(BbsStatsController.class); |
|
| 55 |
+ |
|
| 56 |
+ /** |
|
| 57 |
+ * 게시물 통계를 조회한다 |
|
| 58 |
+ * @param statsVO StatsVO |
|
| 59 |
+ * @return String |
|
| 60 |
+ * @exception Exception |
|
| 61 |
+ */ |
|
| 62 |
+ @RequestMapping(value="/mng/sts/selectBbsStats.do") |
|
| 63 |
+ public String selectBbsStats(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 64 |
+ ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 65 |
+ |
|
| 66 |
+ /* |
|
| 67 |
+ List<SiteManageVO> siteList = siteManageService.selectSiteSimpleList(); |
|
| 68 |
+ if(EgovStringUtil.isEmpty(statsVO.getSearchSiteId())) {
|
|
| 69 |
+ if(siteList != null && siteList.size() > 0) {
|
|
| 70 |
+ statsVO.setSearchSiteId(siteList.get(0).getSiteId()); |
|
| 71 |
+ } |
|
| 72 |
+ } |
|
| 73 |
+ model.addAttribute("siteList", siteList);
|
|
| 74 |
+ */ |
|
| 75 |
+ |
|
| 76 |
+ LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 77 |
+ if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 78 |
+ statsVO.setSiteId(loginVO.getSiteId()); |
|
| 79 |
+ } |
|
| 80 |
+ |
|
| 81 |
+ if(!EgovStringUtil.isEmpty(statsVO.getSiteId())) {
|
|
| 82 |
+ List<StatsVO> scrinStats = this.selectBbsStatsData(statsVO); |
|
| 83 |
+ |
|
| 84 |
+ model.addAttribute("scrinStats", scrinStats);
|
|
| 85 |
+ } |
|
| 86 |
+ return "/mng/sts/EgovBbsStats"; |
|
| 87 |
+ } |
|
| 88 |
+ |
|
| 89 |
+ /** |
|
| 90 |
+ * 게시물 통계를 엑셀로 다운로드 한다 |
|
| 91 |
+ * @param statsVO StatsVO |
|
| 92 |
+ * @return String |
|
| 93 |
+ * @exception Exception |
|
| 94 |
+ */ |
|
| 95 |
+ @RequestMapping(value="/mng/sts/selectBbsStatsExcel.do") |
|
| 96 |
+ public ModelAndView selectBbsStatsExcel(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 97 |
+ ModelMap model) throws Exception {
|
|
| 98 |
+ |
|
| 99 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 100 |
+ List<String> columMap = new ArrayList<String>(); |
|
| 101 |
+ List<Object> valueMap = new ArrayList<Object>(); |
|
| 102 |
+ |
|
| 103 |
+ columMap.add("사이트");
|
|
| 104 |
+ columMap.add("구분");
|
|
| 105 |
+ columMap.add("게시판");
|
|
| 106 |
+ columMap.add("생성");
|
|
| 107 |
+ columMap.add("조회");
|
|
| 108 |
+ columMap.add("다운로드");
|
|
| 109 |
+ |
|
| 110 |
+ List<StatsVO> scrinStats = this.selectBbsStatsData(statsVO); |
|
| 111 |
+ if(scrinStats != null) {
|
|
| 112 |
+ StatsVO tmpVO = null; |
|
| 113 |
+ Map<String, Object> tmpMap = null; |
|
| 114 |
+ for(int i=0; i < scrinStats.size(); i++) {
|
|
| 115 |
+ tmpVO = scrinStats.get(i); |
|
| 116 |
+ |
|
| 117 |
+ tmpMap = new HashMap<String, Object>(); |
|
| 118 |
+ tmpMap.put("사이트", tmpVO.getSiteNm());
|
|
| 119 |
+ tmpMap.put("구분", tmpVO.getGbNm());
|
|
| 120 |
+ tmpMap.put("게시판", tmpVO.getBbsNm());
|
|
| 121 |
+ tmpMap.put("생성", tmpVO.getCreatCo());
|
|
| 122 |
+ tmpMap.put("조회", tmpVO.getTotInqireCo());
|
|
| 123 |
+ tmpMap.put("다운로드", tmpVO.getDwldCo());
|
|
| 124 |
+ |
|
| 125 |
+ valueMap.add(tmpMap); |
|
| 126 |
+ } |
|
| 127 |
+ } |
|
| 128 |
+ map.put("title", "게시물통계");
|
|
| 129 |
+ map.put("columMap", columMap);
|
|
| 130 |
+ map.put("valueMap", valueMap);
|
|
| 131 |
+ |
|
| 132 |
+ |
|
| 133 |
+ |
|
| 134 |
+ return new ModelAndView("excelDownloadView", "dataMap", map);
|
|
| 135 |
+ } |
|
| 136 |
+ |
|
| 137 |
+ private List<StatsVO> selectBbsStatsData(StatsVO statsVO) throws Exception {
|
|
| 138 |
+ |
|
| 139 |
+ if(EgovStringUtil.isEmpty(statsVO.getPdKind()) || EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 140 |
+ String today = EgovDateUtil.getToday(); |
|
| 141 |
+ statsVO.setPdKind("D");
|
|
| 142 |
+ statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 143 |
+ statsVO.setToDate(today); |
|
| 144 |
+ } |
|
| 145 |
+ |
|
| 146 |
+ if(EgovStringUtil.isEmpty(statsVO.getStatsKind())) {
|
|
| 147 |
+ statsVO.setStatsKind("H");
|
|
| 148 |
+ } |
|
| 149 |
+ |
|
| 150 |
+ return scrinStatsService.selectBbsStats(statsVO); |
|
| 151 |
+ } |
|
| 152 | 152 |
}(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovEvtStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/EvtStatsController.java
... | ... | @@ -1,105 +1,105 @@ |
| 1 |
-package egovframework.com.mng.sts.web; |
|
| 2 |
- |
|
| 3 |
-import java.util.List; |
|
| 4 |
- |
|
| 5 |
-import javax.annotation.Resource; |
|
| 6 |
- |
|
| 7 |
-import org.springframework.stereotype.Controller; |
|
| 8 |
-import org.springframework.ui.ModelMap; |
|
| 9 |
-import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 10 |
-import org.springframework.web.bind.annotation.RequestMapping; |
|
| 11 |
- |
|
| 12 |
-import egovframework.module.sts.service.ScrinStatsService; |
|
| 13 |
-import egovframework.module.sts.service.StatsVO; |
|
| 14 |
-import egovframework.module.uss.umt.service.UserDefaultVO; |
|
| 15 |
-import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 16 |
-import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 17 |
-import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 18 |
-import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 19 |
- |
|
| 20 |
- |
|
| 21 |
-/****************************************************** |
|
| 22 |
- * @Class Name : EgovEvtStatsController.java |
|
| 23 |
- * @Program name : egovframework.com.mng.sts.web |
|
| 24 |
- * @Descriptopn : |
|
| 25 |
- * @version : 1.0.0 |
|
| 26 |
- * @author : 이호영 |
|
| 27 |
- * @created date : 2011. 10. 15. |
|
| 28 |
- * Modification log |
|
| 29 |
- * ===================================================== |
|
| 30 |
- * date name description |
|
| 31 |
- * ----------------------------------------------------- |
|
| 32 |
- * 2011. 10. 15. 이호영 first generated |
|
| 33 |
-*********************************************************/ |
|
| 34 |
-@Controller |
|
| 35 |
-public class EgovEvtStatsController {
|
|
| 36 |
- |
|
| 37 |
- /** |
|
| 38 |
- * EgovConectStatsService |
|
| 39 |
- * @uml.property name="scrinStatsService" |
|
| 40 |
- * @uml.associationEnd readOnly="true" |
|
| 41 |
- */ |
|
| 42 |
- @Resource(name = "scrinStatsService") |
|
| 43 |
- private ScrinStatsService scrinStatsService; |
|
| 44 |
- |
|
| 45 |
- /** EgovPropertyService */ |
|
| 46 |
- @Resource(name = "propertiesService") |
|
| 47 |
- protected EgovPropertyService propertiesService; |
|
| 48 |
- |
|
| 49 |
- /** |
|
| 50 |
- * 회차별 이벤트 통계를 조회한다. |
|
| 51 |
- * @param statsVO StatsVO |
|
| 52 |
- * @return String |
|
| 53 |
- * @exception Exception |
|
| 54 |
- */ |
|
| 55 |
- @RequestMapping(value="/mng/sts/selectEvtStats.do") |
|
| 56 |
- public String selectEvtStats(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 57 |
- ModelMap model) throws Exception {
|
|
| 58 |
- |
|
| 59 |
- if(EgovStringUtil.isEmpty(statsVO.getStatsKind())){
|
|
| 60 |
- statsVO.setStatsKind("userTyCode");
|
|
| 61 |
- } |
|
| 62 |
- |
|
| 63 |
- if(EgovStringUtil.isEmpty(statsVO.getFromDate()) || EgovStringUtil.isEmpty(statsVO.getToDate())) {
|
|
| 64 |
- String today = EgovDateUtil.getToday(); |
|
| 65 |
- statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 66 |
- statsVO.setToDate(today); |
|
| 67 |
- } |
|
| 68 |
- |
|
| 69 |
- List<StatsVO> evtStats = scrinStatsService.selectEvtStats(statsVO); |
|
| 70 |
- model.addAttribute("evtStats", evtStats);
|
|
| 71 |
- |
|
| 72 |
- return "/mng/sts/EgovEvtStats"; |
|
| 73 |
- } |
|
| 74 |
- |
|
| 75 |
- /** |
|
| 76 |
- * 사용자별 이벤트 통계를 조회한다. |
|
| 77 |
- * @param statsVO StatsVO |
|
| 78 |
- * @return String |
|
| 79 |
- * @exception Exception |
|
| 80 |
- */ |
|
| 81 |
- @RequestMapping(value="/mng/sts/selectEvtStatUser.do") |
|
| 82 |
- public String selectEvtStatUser(@ModelAttribute("searchVO") UserDefaultVO userDefaultVO, @ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 83 |
- ModelMap model) throws Exception {
|
|
| 84 |
- |
|
| 85 |
- userDefaultVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
|
| 86 |
- userDefaultVO.setPageSize(propertiesService.getInt("pageSize"));
|
|
| 87 |
- |
|
| 88 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 89 |
- paginationInfo.setCurrentPageNo(userDefaultVO.getPageIndex()); |
|
| 90 |
- paginationInfo.setRecordCountPerPage(userDefaultVO.getPageUnit()); |
|
| 91 |
- paginationInfo.setPageSize(userDefaultVO.getPageSize()); |
|
| 92 |
- |
|
| 93 |
- userDefaultVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 94 |
- userDefaultVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 95 |
- userDefaultVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 96 |
- |
|
| 97 |
- model.addAttribute("resultList", scrinStatsService.selectEvtStatsList(userDefaultVO));
|
|
| 98 |
- |
|
| 99 |
- int totCnt = scrinStatsService.selectEvtStatsListCnt(userDefaultVO); |
|
| 100 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 101 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 102 |
- |
|
| 103 |
- return "/mng/sts/EgovEvtStatsuser"; |
|
| 104 |
- } |
|
| 105 |
-} |
|
| 1 |
+package egovframework.com.mng.sts.web; |
|
| 2 |
+ |
|
| 3 |
+import java.util.List; |
|
| 4 |
+ |
|
| 5 |
+import javax.annotation.Resource; |
|
| 6 |
+ |
|
| 7 |
+import org.springframework.stereotype.Controller; |
|
| 8 |
+import org.springframework.ui.ModelMap; |
|
| 9 |
+import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 10 |
+import org.springframework.web.bind.annotation.RequestMapping; |
|
| 11 |
+ |
|
| 12 |
+import egovframework.module.sts.service.ScrinStatsService; |
|
| 13 |
+import egovframework.module.sts.service.StatsVO; |
|
| 14 |
+import egovframework.module.uss.umt.service.UserDefaultVO; |
|
| 15 |
+import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 16 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 17 |
+import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 18 |
+import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 19 |
+ |
|
| 20 |
+ |
|
| 21 |
+/****************************************************** |
|
| 22 |
+ * @Class Name : EgovEvtStatsController.java |
|
| 23 |
+ * @Program name : egovframework.com.mng.sts.web |
|
| 24 |
+ * @Descriptopn : |
|
| 25 |
+ * @version : 1.0.0 |
|
| 26 |
+ * @author : 이호영 |
|
| 27 |
+ * @created date : 2011. 10. 15. |
|
| 28 |
+ * Modification log |
|
| 29 |
+ * ===================================================== |
|
| 30 |
+ * date name description |
|
| 31 |
+ * ----------------------------------------------------- |
|
| 32 |
+ * 2011. 10. 15. 이호영 first generated |
|
| 33 |
+*********************************************************/ |
|
| 34 |
+@Controller |
|
| 35 |
+public class EvtStatsController {
|
|
| 36 |
+ |
|
| 37 |
+ /** |
|
| 38 |
+ * EgovConectStatsService |
|
| 39 |
+ * @uml.property name="scrinStatsService" |
|
| 40 |
+ * @uml.associationEnd readOnly="true" |
|
| 41 |
+ */ |
|
| 42 |
+ @Resource(name = "scrinStatsService") |
|
| 43 |
+ private ScrinStatsService scrinStatsService; |
|
| 44 |
+ |
|
| 45 |
+ /** EgovPropertyService */ |
|
| 46 |
+ @Resource(name = "propertiesService") |
|
| 47 |
+ protected EgovPropertyService propertiesService; |
|
| 48 |
+ |
|
| 49 |
+ /** |
|
| 50 |
+ * 회차별 이벤트 통계를 조회한다. |
|
| 51 |
+ * @param statsVO StatsVO |
|
| 52 |
+ * @return String |
|
| 53 |
+ * @exception Exception |
|
| 54 |
+ */ |
|
| 55 |
+ @RequestMapping(value="/mng/sts/selectEvtStats.do") |
|
| 56 |
+ public String selectEvtStats(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 57 |
+ ModelMap model) throws Exception {
|
|
| 58 |
+ |
|
| 59 |
+ if(EgovStringUtil.isEmpty(statsVO.getStatsKind())){
|
|
| 60 |
+ statsVO.setStatsKind("userTyCode");
|
|
| 61 |
+ } |
|
| 62 |
+ |
|
| 63 |
+ if(EgovStringUtil.isEmpty(statsVO.getFromDate()) || EgovStringUtil.isEmpty(statsVO.getToDate())) {
|
|
| 64 |
+ String today = EgovDateUtil.getToday(); |
|
| 65 |
+ statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 66 |
+ statsVO.setToDate(today); |
|
| 67 |
+ } |
|
| 68 |
+ |
|
| 69 |
+ List<StatsVO> evtStats = scrinStatsService.selectEvtStats(statsVO); |
|
| 70 |
+ model.addAttribute("evtStats", evtStats);
|
|
| 71 |
+ |
|
| 72 |
+ return "/mng/sts/EgovEvtStats"; |
|
| 73 |
+ } |
|
| 74 |
+ |
|
| 75 |
+ /** |
|
| 76 |
+ * 사용자별 이벤트 통계를 조회한다. |
|
| 77 |
+ * @param statsVO StatsVO |
|
| 78 |
+ * @return String |
|
| 79 |
+ * @exception Exception |
|
| 80 |
+ */ |
|
| 81 |
+ @RequestMapping(value="/mng/sts/selectEvtStatUser.do") |
|
| 82 |
+ public String selectEvtStatUser(@ModelAttribute("searchVO") UserDefaultVO userDefaultVO, @ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 83 |
+ ModelMap model) throws Exception {
|
|
| 84 |
+ |
|
| 85 |
+ userDefaultVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
|
| 86 |
+ userDefaultVO.setPageSize(propertiesService.getInt("pageSize"));
|
|
| 87 |
+ |
|
| 88 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 89 |
+ paginationInfo.setCurrentPageNo(userDefaultVO.getPageIndex()); |
|
| 90 |
+ paginationInfo.setRecordCountPerPage(userDefaultVO.getPageUnit()); |
|
| 91 |
+ paginationInfo.setPageSize(userDefaultVO.getPageSize()); |
|
| 92 |
+ |
|
| 93 |
+ userDefaultVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 94 |
+ userDefaultVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 95 |
+ userDefaultVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 96 |
+ |
|
| 97 |
+ model.addAttribute("resultList", scrinStatsService.selectEvtStatsList(userDefaultVO));
|
|
| 98 |
+ |
|
| 99 |
+ int totCnt = scrinStatsService.selectEvtStatsListCnt(userDefaultVO); |
|
| 100 |
+ paginationInfo.setTotalRecordCount(totCnt); |
|
| 101 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 102 |
+ |
|
| 103 |
+ return "/mng/sts/EgovEvtStatsuser"; |
|
| 104 |
+ } |
|
| 105 |
+} |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovScrinStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/ScrinStatsController.java
... | ... | @@ -1,151 +1,151 @@ |
| 1 |
-package egovframework.com.mng.sts.web; |
|
| 2 |
- |
|
| 3 |
-import java.util.ArrayList; |
|
| 4 |
-import java.util.HashMap; |
|
| 5 |
-import java.util.List; |
|
| 6 |
-import java.util.Map; |
|
| 7 |
- |
|
| 8 |
-import javax.annotation.Resource; |
|
| 9 |
-import javax.servlet.http.HttpServletRequest; |
|
| 10 |
-import javax.servlet.http.HttpServletResponse; |
|
| 11 |
- |
|
| 12 |
-import org.springframework.stereotype.Controller; |
|
| 13 |
-import org.springframework.ui.ModelMap; |
|
| 14 |
-import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
-import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
-import org.springframework.web.servlet.ModelAndView; |
|
| 17 |
- |
|
| 18 |
-import org.apache.commons.logging.Log; |
|
| 19 |
-import org.apache.commons.logging.LogFactory; |
|
| 20 |
- |
|
| 21 |
-import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 22 |
-import egovframework.module.sts.service.ScrinStatsService; |
|
| 23 |
-import egovframework.module.sts.service.StatsVO; |
|
| 24 |
-import egovframework.module.uat.uia.service.LoginVO; |
|
| 25 |
-import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 26 |
-import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 27 |
- |
|
| 28 |
-/** |
|
| 29 |
- * 화면 통계 검색 컨트롤러 클래스 |
|
| 30 |
- * @author 공통서비스 개발팀 박지욱 |
|
| 31 |
- * @since 2009.03.19 |
|
| 32 |
- * @version 1.0 |
|
| 33 |
- * @see |
|
| 34 |
- * |
|
| 35 |
- * <pre> |
|
| 36 |
- * << 개정이력(Modification Information) >> |
|
| 37 |
- * |
|
| 38 |
- * 수정일 수정자 수정내용 |
|
| 39 |
- * ------- -------- --------------------------- |
|
| 40 |
- * 2009.03.19 박지욱 최초 생성 |
|
| 41 |
- * |
|
| 42 |
- * </pre> |
|
| 43 |
- */ |
|
| 44 |
-@Controller |
|
| 45 |
-public class EgovScrinStatsController {
|
|
| 46 |
- |
|
| 47 |
- /** |
|
| 48 |
- * EgovConectStatsService |
|
| 49 |
- */ |
|
| 50 |
- @Resource(name = "scrinStatsService") |
|
| 51 |
- private ScrinStatsService scrinStatsService; |
|
| 52 |
- |
|
| 53 |
- /** log */ |
|
| 54 |
- protected static final Log LOG = LogFactory.getLog(EgovScrinStatsController.class); |
|
| 55 |
- |
|
| 56 |
- /** |
|
| 57 |
- * 화면 통계를 조회한다 |
|
| 58 |
- * @param statsVO StatsVO |
|
| 59 |
- * @return String |
|
| 60 |
- * @exception Exception |
|
| 61 |
- */ |
|
| 62 |
- @RequestMapping(value="/mng/sts/selectScrinStats.do") |
|
| 63 |
- public String selectUserStats(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 64 |
- ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 65 |
- |
|
| 66 |
- /* |
|
| 67 |
- List<SiteManageVO> siteList = siteManageService.selectSiteSimpleList(); |
|
| 68 |
- if(EgovStringUtil.isEmpty(statsVO.getSearchSiteId())) {
|
|
| 69 |
- if(siteList != null && siteList.size() > 0) {
|
|
| 70 |
- statsVO.setSearchSiteId(siteList.get(0).getSiteId()); |
|
| 71 |
- } |
|
| 72 |
- } |
|
| 73 |
- model.addAttribute("siteList", siteList);
|
|
| 74 |
- */ |
|
| 75 |
- |
|
| 76 |
- LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 77 |
- if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 78 |
- statsVO.setSiteId(loginVO.getSiteId()); |
|
| 79 |
- } |
|
| 80 |
- |
|
| 81 |
- if(!EgovStringUtil.isEmpty(statsVO.getSiteId())) {
|
|
| 82 |
- List<StatsVO> scrinStats = this.selectScrinStatsData(statsVO); |
|
| 83 |
- float iMaxUnit = 0; |
|
| 84 |
- for (int i = 0; i < scrinStats.size(); i++) {
|
|
| 85 |
- StatsVO sVo = scrinStats.get(i); |
|
| 86 |
- iMaxUnit += sVo.getStatsCo(); |
|
| 87 |
- } |
|
| 88 |
- statsVO.setMaxUnit(iMaxUnit); |
|
| 89 |
- |
|
| 90 |
- model.addAttribute("scrinStats", scrinStats);
|
|
| 91 |
- } |
|
| 92 |
- |
|
| 93 |
- return "/mng/sts/EgovScrinStats"; |
|
| 94 |
- } |
|
| 95 |
- |
|
| 96 |
- /** |
|
| 97 |
- * 화면 통계를 엑셀로 다운로드 한다 |
|
| 98 |
- * @param statsVO StatsVO |
|
| 99 |
- * @return String |
|
| 100 |
- * @exception Exception |
|
| 101 |
- */ |
|
| 102 |
- @RequestMapping(value="/mng/sts/selectScrinStatsExcel.do") |
|
| 103 |
- public ModelAndView selectScrinStatsExcel(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 104 |
- ModelMap model) throws Exception {
|
|
| 105 |
- |
|
| 106 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 107 |
- List<String> columMap = new ArrayList<String>(); |
|
| 108 |
- List<Object> valueMap = new ArrayList<Object>(); |
|
| 109 |
- |
|
| 110 |
- columMap.add("날짜");
|
|
| 111 |
- columMap.add("접속수");
|
|
| 112 |
- |
|
| 113 |
- List<StatsVO> scrinStats = this.selectScrinStatsData(statsVO); |
|
| 114 |
- if(scrinStats != null) {
|
|
| 115 |
- StatsVO tmpVO = null; |
|
| 116 |
- Map<String, Object> tmpMap = null; |
|
| 117 |
- for(int i=0; i < scrinStats.size(); i++) {
|
|
| 118 |
- tmpVO = scrinStats.get(i); |
|
| 119 |
- |
|
| 120 |
- tmpMap = new HashMap<String, Object>(); |
|
| 121 |
- tmpMap.put("날짜", tmpVO.getStatsDate());
|
|
| 122 |
- tmpMap.put("접속수", tmpVO.getStatsCo());
|
|
| 123 |
- |
|
| 124 |
- valueMap.add(tmpMap); |
|
| 125 |
- } |
|
| 126 |
- } |
|
| 127 |
- map.put("title", "접속통계");
|
|
| 128 |
- map.put("columMap", columMap);
|
|
| 129 |
- map.put("valueMap", valueMap);
|
|
| 130 |
- |
|
| 131 |
- |
|
| 132 |
- |
|
| 133 |
- return new ModelAndView("excelDownloadView", "dataMap", map);
|
|
| 134 |
- } |
|
| 135 |
- |
|
| 136 |
- private List<StatsVO> selectScrinStatsData(StatsVO statsVO) throws Exception {
|
|
| 137 |
- |
|
| 138 |
- if(EgovStringUtil.isEmpty(statsVO.getPdKind()) || EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 139 |
- String today = EgovDateUtil.getToday(); |
|
| 140 |
- statsVO.setPdKind("D");
|
|
| 141 |
- statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 142 |
- statsVO.setToDate(today); |
|
| 143 |
- } |
|
| 144 |
- |
|
| 145 |
- if(EgovStringUtil.isEmpty(statsVO.getStatsKind())) {
|
|
| 146 |
- statsVO.setStatsKind("H");
|
|
| 147 |
- } |
|
| 148 |
- |
|
| 149 |
- return scrinStatsService.selectScrinStats(statsVO); |
|
| 150 |
- } |
|
| 1 |
+package egovframework.com.mng.sts.web; |
|
| 2 |
+ |
|
| 3 |
+import java.util.ArrayList; |
|
| 4 |
+import java.util.HashMap; |
|
| 5 |
+import java.util.List; |
|
| 6 |
+import java.util.Map; |
|
| 7 |
+ |
|
| 8 |
+import javax.annotation.Resource; |
|
| 9 |
+import javax.servlet.http.HttpServletRequest; |
|
| 10 |
+import javax.servlet.http.HttpServletResponse; |
|
| 11 |
+ |
|
| 12 |
+import org.springframework.stereotype.Controller; |
|
| 13 |
+import org.springframework.ui.ModelMap; |
|
| 14 |
+import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
+import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
+import org.springframework.web.servlet.ModelAndView; |
|
| 17 |
+ |
|
| 18 |
+import org.apache.commons.logging.Log; |
|
| 19 |
+import org.apache.commons.logging.LogFactory; |
|
| 20 |
+ |
|
| 21 |
+import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 22 |
+import egovframework.module.sts.service.ScrinStatsService; |
|
| 23 |
+import egovframework.module.sts.service.StatsVO; |
|
| 24 |
+import egovframework.module.uat.uia.service.LoginVO; |
|
| 25 |
+import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 26 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 27 |
+ |
|
| 28 |
+/** |
|
| 29 |
+ * 화면 통계 검색 컨트롤러 클래스 |
|
| 30 |
+ * @author 공통서비스 개발팀 박지욱 |
|
| 31 |
+ * @since 2009.03.19 |
|
| 32 |
+ * @version 1.0 |
|
| 33 |
+ * @see |
|
| 34 |
+ * |
|
| 35 |
+ * <pre> |
|
| 36 |
+ * << 개정이력(Modification Information) >> |
|
| 37 |
+ * |
|
| 38 |
+ * 수정일 수정자 수정내용 |
|
| 39 |
+ * ------- -------- --------------------------- |
|
| 40 |
+ * 2009.03.19 박지욱 최초 생성 |
|
| 41 |
+ * |
|
| 42 |
+ * </pre> |
|
| 43 |
+ */ |
|
| 44 |
+@Controller |
|
| 45 |
+public class ScrinStatsController {
|
|
| 46 |
+ |
|
| 47 |
+ /** |
|
| 48 |
+ * EgovConectStatsService |
|
| 49 |
+ */ |
|
| 50 |
+ @Resource(name = "scrinStatsService") |
|
| 51 |
+ private ScrinStatsService scrinStatsService; |
|
| 52 |
+ |
|
| 53 |
+ /** log */ |
|
| 54 |
+ protected static final Log LOG = LogFactory.getLog(ScrinStatsController.class); |
|
| 55 |
+ |
|
| 56 |
+ /** |
|
| 57 |
+ * 화면 통계를 조회한다 |
|
| 58 |
+ * @param statsVO StatsVO |
|
| 59 |
+ * @return String |
|
| 60 |
+ * @exception Exception |
|
| 61 |
+ */ |
|
| 62 |
+ @RequestMapping(value="/mng/sts/selectScrinStats.do") |
|
| 63 |
+ public String selectUserStats(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 64 |
+ ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 65 |
+ |
|
| 66 |
+ /* |
|
| 67 |
+ List<SiteManageVO> siteList = siteManageService.selectSiteSimpleList(); |
|
| 68 |
+ if(EgovStringUtil.isEmpty(statsVO.getSearchSiteId())) {
|
|
| 69 |
+ if(siteList != null && siteList.size() > 0) {
|
|
| 70 |
+ statsVO.setSearchSiteId(siteList.get(0).getSiteId()); |
|
| 71 |
+ } |
|
| 72 |
+ } |
|
| 73 |
+ model.addAttribute("siteList", siteList);
|
|
| 74 |
+ */ |
|
| 75 |
+ |
|
| 76 |
+ LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 77 |
+ if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 78 |
+ statsVO.setSiteId(loginVO.getSiteId()); |
|
| 79 |
+ } |
|
| 80 |
+ |
|
| 81 |
+ if(!EgovStringUtil.isEmpty(statsVO.getSiteId())) {
|
|
| 82 |
+ List<StatsVO> scrinStats = this.selectScrinStatsData(statsVO); |
|
| 83 |
+ float iMaxUnit = 0; |
|
| 84 |
+ for (int i = 0; i < scrinStats.size(); i++) {
|
|
| 85 |
+ StatsVO sVo = scrinStats.get(i); |
|
| 86 |
+ iMaxUnit += sVo.getStatsCo(); |
|
| 87 |
+ } |
|
| 88 |
+ statsVO.setMaxUnit(iMaxUnit); |
|
| 89 |
+ |
|
| 90 |
+ model.addAttribute("scrinStats", scrinStats);
|
|
| 91 |
+ } |
|
| 92 |
+ |
|
| 93 |
+ return "/mng/sts/EgovScrinStats"; |
|
| 94 |
+ } |
|
| 95 |
+ |
|
| 96 |
+ /** |
|
| 97 |
+ * 화면 통계를 엑셀로 다운로드 한다 |
|
| 98 |
+ * @param statsVO StatsVO |
|
| 99 |
+ * @return String |
|
| 100 |
+ * @exception Exception |
|
| 101 |
+ */ |
|
| 102 |
+ @RequestMapping(value="/mng/sts/selectScrinStatsExcel.do") |
|
| 103 |
+ public ModelAndView selectScrinStatsExcel(@ModelAttribute("statsVO") StatsVO statsVO,
|
|
| 104 |
+ ModelMap model) throws Exception {
|
|
| 105 |
+ |
|
| 106 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 107 |
+ List<String> columMap = new ArrayList<String>(); |
|
| 108 |
+ List<Object> valueMap = new ArrayList<Object>(); |
|
| 109 |
+ |
|
| 110 |
+ columMap.add("날짜");
|
|
| 111 |
+ columMap.add("접속수");
|
|
| 112 |
+ |
|
| 113 |
+ List<StatsVO> scrinStats = this.selectScrinStatsData(statsVO); |
|
| 114 |
+ if(scrinStats != null) {
|
|
| 115 |
+ StatsVO tmpVO = null; |
|
| 116 |
+ Map<String, Object> tmpMap = null; |
|
| 117 |
+ for(int i=0; i < scrinStats.size(); i++) {
|
|
| 118 |
+ tmpVO = scrinStats.get(i); |
|
| 119 |
+ |
|
| 120 |
+ tmpMap = new HashMap<String, Object>(); |
|
| 121 |
+ tmpMap.put("날짜", tmpVO.getStatsDate());
|
|
| 122 |
+ tmpMap.put("접속수", tmpVO.getStatsCo());
|
|
| 123 |
+ |
|
| 124 |
+ valueMap.add(tmpMap); |
|
| 125 |
+ } |
|
| 126 |
+ } |
|
| 127 |
+ map.put("title", "접속통계");
|
|
| 128 |
+ map.put("columMap", columMap);
|
|
| 129 |
+ map.put("valueMap", valueMap);
|
|
| 130 |
+ |
|
| 131 |
+ |
|
| 132 |
+ |
|
| 133 |
+ return new ModelAndView("excelDownloadView", "dataMap", map);
|
|
| 134 |
+ } |
|
| 135 |
+ |
|
| 136 |
+ private List<StatsVO> selectScrinStatsData(StatsVO statsVO) throws Exception {
|
|
| 137 |
+ |
|
| 138 |
+ if(EgovStringUtil.isEmpty(statsVO.getPdKind()) || EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 139 |
+ String today = EgovDateUtil.getToday(); |
|
| 140 |
+ statsVO.setPdKind("D");
|
|
| 141 |
+ statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 142 |
+ statsVO.setToDate(today); |
|
| 143 |
+ } |
|
| 144 |
+ |
|
| 145 |
+ if(EgovStringUtil.isEmpty(statsVO.getStatsKind())) {
|
|
| 146 |
+ statsVO.setStatsKind("H");
|
|
| 147 |
+ } |
|
| 148 |
+ |
|
| 149 |
+ return scrinStatsService.selectScrinStats(statsVO); |
|
| 150 |
+ } |
|
| 151 | 151 |
}(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/StatsController.java
... | ... | @@ -1,122 +1,122 @@ |
| 1 |
-package egovframework.com.mng.sts.web; |
|
| 2 |
- |
|
| 3 |
-import java.util.ArrayList; |
|
| 4 |
- |
|
| 5 |
-import javax.annotation.Resource; |
|
| 6 |
- |
|
| 7 |
-import org.springframework.stereotype.Controller; |
|
| 8 |
-import org.springframework.ui.ModelMap; |
|
| 9 |
-import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 10 |
-import org.springframework.web.bind.annotation.RequestMapping; |
|
| 11 |
- |
|
| 12 |
-import org.apache.commons.logging.Log; |
|
| 13 |
-import org.apache.commons.logging.LogFactory; |
|
| 14 |
- |
|
| 15 |
-import egovframework.module.sts.service.ScrinStatsService; |
|
| 16 |
-import egovframework.module.sts.service.StatsVO; |
|
| 17 |
-import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 18 |
-import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 19 |
- |
|
| 20 |
-/** |
|
| 21 |
- * 통계 컨트롤러 클래스 |
|
| 22 |
- * @author 주성진 |
|
| 23 |
- * @since 2012.06.01 |
|
| 24 |
- * @version 1.0 |
|
| 25 |
- * @see |
|
| 26 |
- * |
|
| 27 |
- * <pre> |
|
| 28 |
- * << 개정이력(Modification Information) >> |
|
| 29 |
- * |
|
| 30 |
- * 수정일 수정자 수정내용 |
|
| 31 |
- * ------- -------- --------------------------- |
|
| 32 |
- * 2012.06.01 주성진 최초 생성 |
|
| 33 |
- * |
|
| 34 |
- * </pre> |
|
| 35 |
- */ |
|
| 36 |
-@Controller |
|
| 37 |
-public class EgovStatsController {
|
|
| 38 |
- |
|
| 39 |
- /** |
|
| 40 |
- * EgovStatsService |
|
| 41 |
- */ |
|
| 42 |
- @Resource(name = "scrinStatsService") |
|
| 43 |
- private ScrinStatsService scrinStatsService; |
|
| 44 |
- |
|
| 45 |
- /** log */ |
|
| 46 |
- protected static final Log LOG = LogFactory.getLog(EgovStatsController.class); |
|
| 47 |
- |
|
| 48 |
- /** |
|
| 49 |
- * 회원가입 통계를 조회한다 |
|
| 50 |
- * @param statsVO StatsVO |
|
| 51 |
- * @return String |
|
| 52 |
- * @exception Exception |
|
| 53 |
- */ |
|
| 54 |
- @RequestMapping(value="/mng/sts/selectMbrStats.do") |
|
| 55 |
- public String selectMbrStats(@ModelAttribute("statsVO") StatsVO statsVO, ModelMap model) throws Exception {
|
|
| 56 |
- |
|
| 57 |
- if(EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 58 |
- String today = EgovDateUtil.getToday(); |
|
| 59 |
- statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 60 |
- statsVO.setToDate(today); |
|
| 61 |
- } |
|
| 62 |
- |
|
| 63 |
- ArrayList<StatsVO> list = new ArrayList<StatsVO>(); |
|
| 64 |
- StatsVO resultVO = null; |
|
| 65 |
- |
|
| 66 |
- //교사 |
|
| 67 |
- statsVO.setUserType("T");
|
|
| 68 |
- resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 69 |
- resultVO.setStatsNm("교사");
|
|
| 70 |
- list.add(resultVO); |
|
| 71 |
- |
|
| 72 |
- //학부모 |
|
| 73 |
- statsVO.setUserType("P");
|
|
| 74 |
- resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 75 |
- resultVO.setStatsNm("학부모");
|
|
| 76 |
- list.add(resultVO); |
|
| 77 |
- |
|
| 78 |
- //학생 |
|
| 79 |
- statsVO.setUserType("S");
|
|
| 80 |
- resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 81 |
- resultVO.setStatsNm("학생");
|
|
| 82 |
- list.add(resultVO); |
|
| 83 |
- |
|
| 84 |
- //기타 |
|
| 85 |
- statsVO.setUserType("O");
|
|
| 86 |
- resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 87 |
- resultVO.setStatsNm("기타");
|
|
| 88 |
- list.add(resultVO); |
|
| 89 |
- |
|
| 90 |
- model.addAttribute("mbrStats", list);
|
|
| 91 |
- |
|
| 92 |
- return "/mng/sts/EgovMbrStats"; |
|
| 93 |
- } |
|
| 94 |
- |
|
| 95 |
- /** |
|
| 96 |
- * 커뮤니티개설 통계를 조회한다 |
|
| 97 |
- * @param statsVO StatsVO |
|
| 98 |
- * @return String |
|
| 99 |
- * @exception Exception |
|
| 100 |
- */ |
|
| 101 |
- @RequestMapping(value="/mng/sts/selectCmyStats.do") |
|
| 102 |
- public String selectCmyStats(@ModelAttribute("statsVO") StatsVO statsVO, ModelMap model) throws Exception {
|
|
| 103 |
- |
|
| 104 |
- if(EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 105 |
- String today = EgovDateUtil.getToday(); |
|
| 106 |
- statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 107 |
- statsVO.setToDate(today); |
|
| 108 |
- } |
|
| 109 |
- |
|
| 110 |
- ArrayList<StatsVO> list = new ArrayList<StatsVO>(); |
|
| 111 |
- StatsVO resultVO = null; |
|
| 112 |
- |
|
| 113 |
- //커뮤니티개설 |
|
| 114 |
- resultVO = scrinStatsService.selectCmyStats(statsVO); |
|
| 115 |
- resultVO.setStatsNm("커뮤니티개설수");
|
|
| 116 |
- list.add(resultVO); |
|
| 117 |
- |
|
| 118 |
- model.addAttribute("cmyStats", list);
|
|
| 119 |
- |
|
| 120 |
- return "/mng/sts/EgovCmyStats"; |
|
| 121 |
- } |
|
| 1 |
+package egovframework.com.mng.sts.web; |
|
| 2 |
+ |
|
| 3 |
+import java.util.ArrayList; |
|
| 4 |
+ |
|
| 5 |
+import javax.annotation.Resource; |
|
| 6 |
+ |
|
| 7 |
+import org.springframework.stereotype.Controller; |
|
| 8 |
+import org.springframework.ui.ModelMap; |
|
| 9 |
+import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 10 |
+import org.springframework.web.bind.annotation.RequestMapping; |
|
| 11 |
+ |
|
| 12 |
+import org.apache.commons.logging.Log; |
|
| 13 |
+import org.apache.commons.logging.LogFactory; |
|
| 14 |
+ |
|
| 15 |
+import egovframework.module.sts.service.ScrinStatsService; |
|
| 16 |
+import egovframework.module.sts.service.StatsVO; |
|
| 17 |
+import egovframework.module.utl.fcc.service.EgovDateUtil; |
|
| 18 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 19 |
+ |
|
| 20 |
+/** |
|
| 21 |
+ * 통계 컨트롤러 클래스 |
|
| 22 |
+ * @author 주성진 |
|
| 23 |
+ * @since 2012.06.01 |
|
| 24 |
+ * @version 1.0 |
|
| 25 |
+ * @see |
|
| 26 |
+ * |
|
| 27 |
+ * <pre> |
|
| 28 |
+ * << 개정이력(Modification Information) >> |
|
| 29 |
+ * |
|
| 30 |
+ * 수정일 수정자 수정내용 |
|
| 31 |
+ * ------- -------- --------------------------- |
|
| 32 |
+ * 2012.06.01 주성진 최초 생성 |
|
| 33 |
+ * |
|
| 34 |
+ * </pre> |
|
| 35 |
+ */ |
|
| 36 |
+@Controller |
|
| 37 |
+public class StatsController {
|
|
| 38 |
+ |
|
| 39 |
+ /** |
|
| 40 |
+ * EgovStatsService |
|
| 41 |
+ */ |
|
| 42 |
+ @Resource(name = "scrinStatsService") |
|
| 43 |
+ private ScrinStatsService scrinStatsService; |
|
| 44 |
+ |
|
| 45 |
+ /** log */ |
|
| 46 |
+ protected static final Log LOG = LogFactory.getLog(StatsController.class); |
|
| 47 |
+ |
|
| 48 |
+ /** |
|
| 49 |
+ * 회원가입 통계를 조회한다 |
|
| 50 |
+ * @param statsVO StatsVO |
|
| 51 |
+ * @return String |
|
| 52 |
+ * @exception Exception |
|
| 53 |
+ */ |
|
| 54 |
+ @RequestMapping(value="/mng/sts/selectMbrStats.do") |
|
| 55 |
+ public String selectMbrStats(@ModelAttribute("statsVO") StatsVO statsVO, ModelMap model) throws Exception {
|
|
| 56 |
+ |
|
| 57 |
+ if(EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 58 |
+ String today = EgovDateUtil.getToday(); |
|
| 59 |
+ statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 60 |
+ statsVO.setToDate(today); |
|
| 61 |
+ } |
|
| 62 |
+ |
|
| 63 |
+ ArrayList<StatsVO> list = new ArrayList<StatsVO>(); |
|
| 64 |
+ StatsVO resultVO = null; |
|
| 65 |
+ |
|
| 66 |
+ //교사 |
|
| 67 |
+ statsVO.setUserType("T");
|
|
| 68 |
+ resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 69 |
+ resultVO.setStatsNm("교사");
|
|
| 70 |
+ list.add(resultVO); |
|
| 71 |
+ |
|
| 72 |
+ //학부모 |
|
| 73 |
+ statsVO.setUserType("P");
|
|
| 74 |
+ resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 75 |
+ resultVO.setStatsNm("학부모");
|
|
| 76 |
+ list.add(resultVO); |
|
| 77 |
+ |
|
| 78 |
+ //학생 |
|
| 79 |
+ statsVO.setUserType("S");
|
|
| 80 |
+ resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 81 |
+ resultVO.setStatsNm("학생");
|
|
| 82 |
+ list.add(resultVO); |
|
| 83 |
+ |
|
| 84 |
+ //기타 |
|
| 85 |
+ statsVO.setUserType("O");
|
|
| 86 |
+ resultVO = scrinStatsService.selectMbrStats(statsVO); |
|
| 87 |
+ resultVO.setStatsNm("기타");
|
|
| 88 |
+ list.add(resultVO); |
|
| 89 |
+ |
|
| 90 |
+ model.addAttribute("mbrStats", list);
|
|
| 91 |
+ |
|
| 92 |
+ return "/mng/sts/EgovMbrStats"; |
|
| 93 |
+ } |
|
| 94 |
+ |
|
| 95 |
+ /** |
|
| 96 |
+ * 커뮤니티개설 통계를 조회한다 |
|
| 97 |
+ * @param statsVO StatsVO |
|
| 98 |
+ * @return String |
|
| 99 |
+ * @exception Exception |
|
| 100 |
+ */ |
|
| 101 |
+ @RequestMapping(value="/mng/sts/selectCmyStats.do") |
|
| 102 |
+ public String selectCmyStats(@ModelAttribute("statsVO") StatsVO statsVO, ModelMap model) throws Exception {
|
|
| 103 |
+ |
|
| 104 |
+ if(EgovStringUtil.isEmpty(statsVO.getFromDate())) {
|
|
| 105 |
+ String today = EgovDateUtil.getToday(); |
|
| 106 |
+ statsVO.setFromDate(EgovDateUtil.convertDate(today, "0000", "yyyyMM") + "01"); |
|
| 107 |
+ statsVO.setToDate(today); |
|
| 108 |
+ } |
|
| 109 |
+ |
|
| 110 |
+ ArrayList<StatsVO> list = new ArrayList<StatsVO>(); |
|
| 111 |
+ StatsVO resultVO = null; |
|
| 112 |
+ |
|
| 113 |
+ //커뮤니티개설 |
|
| 114 |
+ resultVO = scrinStatsService.selectCmyStats(statsVO); |
|
| 115 |
+ resultVO.setStatsNm("커뮤니티개설수");
|
|
| 116 |
+ list.add(resultVO); |
|
| 117 |
+ |
|
| 118 |
+ model.addAttribute("cmyStats", list);
|
|
| 119 |
+ |
|
| 120 |
+ return "/mng/sts/EgovCmyStats"; |
|
| 121 |
+ } |
|
| 122 | 122 |
}(파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/java/egovframework/com/mng/uss/umt/web/EgovUserManageController.java
+++ base/src/main/java/egovframework/com/mng/uss/umt/web/UserManageController.java
... | ... | @@ -38,7 +38,7 @@ |
| 38 | 38 |
import net.sf.json.JSONObject; |
| 39 | 39 |
|
| 40 | 40 |
@Controller |
| 41 |
-public class EgovUserManageController {
|
|
| 41 |
+public class UserManageController {
|
|
| 42 | 42 |
|
| 43 | 43 |
/** EgovMessageSource */ |
| 44 | 44 |
@Resource(name="egovMessageSource") |
... | ... | @@ -64,7 +64,7 @@ |
| 64 | 64 |
|
| 65 | 65 |
|
| 66 | 66 |
//회원 목록을 조회 |
| 67 |
- @RequestMapping(value = "/mng/usr/EgovMberManage.do") |
|
| 67 |
+ @RequestMapping(value = "/mng/usr/mberManage.do") |
|
| 68 | 68 |
public String selectEgovMberManage(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 69 | 69 |
|
| 70 | 70 |
LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
... | ... | @@ -90,48 +90,48 @@ |
| 90 | 90 |
paginationInfo.setTotalRecordCount(totCnt); |
| 91 | 91 |
model.addAttribute("paginationInfo", paginationInfo);
|
| 92 | 92 |
|
| 93 |
- return "mng/usr/EgovMemberList"; |
|
| 93 |
+ //권한 |
|
| 94 |
+ CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); |
|
| 95 |
+ voComCode = new CmmnDetailCodeVO(); |
|
| 96 |
+ voComCode.setCodeId("COM800");
|
|
| 97 |
+ model.addAttribute("userSeCodeList", cmmUseService.selectCmmCodeDetail(voComCode));
|
|
| 98 |
+ |
|
| 99 |
+ return "mng/usr/MemberList"; |
|
| 94 | 100 |
} |
| 95 | 101 |
|
| 96 | 102 |
//사용자 등록화면으로 이동한다. |
| 97 |
- @RequestMapping(value = "/mng/usr/EgovMberAddView.do") |
|
| 103 |
+ @RequestMapping(value = "/mng/usr/mberAddView.do") |
|
| 98 | 104 |
public String EgovMberAddView(@ModelAttribute("searchVO") UserDefaultVO searchVO, @RequestParam(value="userId", defaultValue="", required=false) String userId, UserManageVO userManageVO, HttpServletRequest request, ModelMap model) throws Exception{
|
| 99 | 105 |
|
| 100 |
- return "mng/usr/EgovMemberIndt"; |
|
| 106 |
+ return "mng/usr/MemberIndt"; |
|
| 101 | 107 |
} |
| 102 | 108 |
|
| 103 | 109 |
//사용자 정보를 DB에 입력한다. |
| 104 |
- @RequestMapping(value = "/mng/usr/EgovUserSelectIndt.do") |
|
| 110 |
+ @RequestMapping(value = "/mng/usr/userSelectIndt.do") |
|
| 105 | 111 |
public String EgovUserSelectIndt(final MultipartHttpServletRequest multiRequest,@ModelAttribute("searchVO") UserDefaultVO searchVO,UserManageVO userManageVO,BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response)throws Exception {
|
| 106 | 112 |
|
| 107 | 113 |
userManageService.insertUser(userManageVO); |
| 108 | 114 |
|
| 109 |
- return "forward:/mng/usr/EgovMberManage.do"; |
|
| 115 |
+ return "forward:/mng/usr/mberManage.do"; |
|
| 110 | 116 |
} |
| 111 | 117 |
|
| 112 |
- /** |
|
| 113 |
- * 교원 삭제 |
|
| 114 |
- */ |
|
| 115 |
- @RequestMapping(value = "/mng/usr/EgovUserDelete.do") |
|
| 118 |
+ //회원 삭제 |
|
| 119 |
+ @RequestMapping(value = "/mng/usr/userDelete.do") |
|
| 116 | 120 |
public String EgovUserDelete(@ModelAttribute("searchVO") UserDefaultVO searchVO, UserManageVO userManageVO)throws Exception {
|
| 117 |
- |
|
| 118 |
- userManageService.deleteUser(userManageVO); |
|
| 119 |
- |
|
| 120 |
- return "redirect:/mng/usr/EgovMberManage.do"; |
|
| 121 |
+ userManageService.deleteUser(userManageVO); |
|
| 122 |
+ return "redirect:/mng/usr/mberManage.do"; |
|
| 121 | 123 |
} |
| 122 | 124 |
|
| 123 | 125 |
//비밀번호 초기화 |
| 124 |
- @RequestMapping(value = "/mng/usr/EgovResetPwd.do") |
|
| 126 |
+ @RequestMapping(value = "/mng/usr/resetPwd.do") |
|
| 125 | 127 |
public String EgovResetPwd(UserManageVO userManageVO)throws Exception {
|
| 126 | 128 |
userManageService.updateResetPwd(userManageVO); |
| 127 | 129 |
|
| 128 |
- return "forward:/mng/usr/EgovMemberView.do"; |
|
| 130 |
+ return "forward:/mng/usr/mberAddView.do"; |
|
| 129 | 131 |
} |
| 130 |
- |
|
| 131 |
- |
|
| 132 |
- |
|
| 132 |
+ |
|
| 133 | 133 |
//사용자목록을 엑셀로 다운받는다. |
| 134 |
- @RequestMapping(value="/mng/usr/EgovMberManageExcel.do") |
|
| 134 |
+ @RequestMapping(value="/mng/usr/mberManageExcel.do") |
|
| 135 | 135 |
public String EgovMberManageExcel(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model) throws Exception {
|
| 136 | 136 |
|
| 137 | 137 |
int totCnt = userManageService.selectUserListTotCnt(userManageVO); |
... | ... | @@ -141,26 +141,28 @@ |
| 141 | 141 |
|
| 142 | 142 |
model.addAttribute("resultList", userManageService.selectUserList(userManageVO));
|
| 143 | 143 |
|
| 144 |
- return "mng/usr/EgovMemberListExcel"; |
|
| 144 |
+ return "mng/usr/MemberListExcel"; |
|
| 145 | 145 |
} |
| 146 | 146 |
|
| 147 | 147 |
//사용자정보 수정 화면으로 이동한다. |
| 148 |
- @RequestMapping(value = "/mng/usr/EgovUserSelectUpdtView.do") |
|
| 149 |
- public String EgovUserSelectUpdtView( |
|
| 150 |
- @ModelAttribute("searchVO") UserDefaultVO searchVO,
|
|
| 151 |
- UserManageVO userManageVO, HttpServletRequest request, ModelMap model) throws Exception {
|
|
| 152 |
- |
|
| 148 |
+ @RequestMapping(value = "/mng/usr/userSelectUpdtView.do") |
|
| 149 |
+ public String EgovUserSelectUpdtView(@ModelAttribute("searchVO") UserDefaultVO searchVO, UserManageVO userManageVO, HttpServletRequest request, ModelMap model) throws Exception {
|
|
| 150 |
+ //권한 |
|
| 151 |
+ CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); |
|
| 152 |
+ voComCode = new CmmnDetailCodeVO(); |
|
| 153 |
+ voComCode.setCodeId("COM800");
|
|
| 154 |
+ model.addAttribute("userSeCodeList", cmmUseService.selectCmmCodeDetail(voComCode));
|
|
| 155 |
+ |
|
| 153 | 156 |
model.addAttribute("userManageVO", userManageService.selectUser(userManageVO));
|
| 154 |
- |
|
| 155 | 157 |
model.addAttribute("MembersFileStoreWebPath", propertiesService.getString("Members.fileStoreWebPath"));
|
| 156 | 158 |
|
| 157 |
- return "mng/usr/EgovMemberUpdt"; |
|
| 159 |
+ return "mng/usr/MemberUpdt"; |
|
| 158 | 160 |
} |
| 159 | 161 |
|
| 160 | 162 |
|
| 161 | 163 |
//사용자정보 수정 처리 한다. |
| 162 |
- @RequestMapping(value = "/mng/usr/EgovUserSelectUpdt.do") |
|
| 163 |
- public String EgovUserSelectUpdt(final MultipartHttpServletRequest multiRequest,@ModelAttribute("searchVO") UserDefaultVO searchVO, @RequestParam(value="targetId", defaultValue="", required=false) String targetId,UserManageVO userManageVO, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response)throws Exception {
|
|
| 164 |
+ @RequestMapping(value = "/mng/usr/userSelectUpdt.do") |
|
| 165 |
+ public String EgovUserSelectUpdt(final MultipartHttpServletRequest multiRequest,@ModelAttribute("searchVO") UserDefaultVO searchVO, @RequestParam(value="targetId", defaultValue="", required=false) String targetId,UserManageVO userManageVO, ModelMap model, HttpServletRequest request, HttpServletResponse response)throws Exception {
|
|
| 164 | 166 |
|
| 165 | 167 |
// 아이디 체크 |
| 166 | 168 |
List<FileVO> result = null; |
... | ... | @@ -197,12 +199,12 @@ |
| 197 | 199 |
userManageService.updateManageUser(userManageVO); |
| 198 | 200 |
//model.addAttribute("message", egovMessageSource.getMessage("success.common.process"));
|
| 199 | 201 |
|
| 200 |
- return "forward:/mng/usr/EgovMberManage.do"; |
|
| 202 |
+ return "forward:/mng/usr/mberManage.do"; |
|
| 201 | 203 |
} |
| 202 | 204 |
|
| 203 | 205 |
|
| 204 | 206 |
//관리자가 패스워드를 임의로 재발급하고 핸드폰으로 전송 한다. |
| 205 |
- @RequestMapping(value = "/mng/usr/SendPassword.do") |
|
| 207 |
+ @RequestMapping(value = "/mng/usr/sendPassword.do") |
|
| 206 | 208 |
public String SendPassword( |
| 207 | 209 |
@ModelAttribute("searchVO") UserManageVO userManageVO, final HttpServletRequest request, Model model) throws Exception {
|
| 208 | 210 |
|
... | ... | @@ -223,7 +225,7 @@ |
| 223 | 225 |
} |
| 224 | 226 |
|
| 225 | 227 |
//선택한 사용자 목록을 접속금지/해제 처리 한다. |
| 226 |
- @RequestMapping(value="/mng/usr/EgovMberManageConfrm.do") |
|
| 228 |
+ @RequestMapping(value="/mng/usr/mberManageConfrm.do") |
|
| 227 | 229 |
public String mberManageConfrm(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model) throws Exception {
|
| 228 | 230 |
|
| 229 | 231 |
if("N".equals(userManageVO.getConfmAt())) {
|
... | ... | @@ -233,11 +235,11 @@ |
| 233 | 235 |
} |
| 234 | 236 |
|
| 235 | 237 |
//model.addAttribute("message", egovMessageSource.getMessage("success.common.process"));
|
| 236 |
- return "forward:/mng/usr/EgovMberManage.do"; |
|
| 238 |
+ return "forward:/mng/usr/MberManage.do"; |
|
| 237 | 239 |
} |
| 238 | 240 |
|
| 239 | 241 |
//선택한 사용자 목록을 접속금지/해제 처리 한다. |
| 240 |
- @RequestMapping(value="/mng/usr/EgovMberManageDelete.do") |
|
| 242 |
+ @RequestMapping(value="/mng/usr/mberManageDelete.do") |
|
| 241 | 243 |
public String mberManageDelete(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 242 | 244 |
|
| 243 | 245 |
LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
... | ... | @@ -245,17 +247,16 @@ |
| 245 | 247 |
userManageService.deleteUser(userManageVO); |
| 246 | 248 |
|
| 247 | 249 |
//model.addAttribute("message", egovMessageSource.getMessage("success.common.process"));
|
| 248 |
- return "forward:/mng/usr/EgovMberManage.do"; |
|
| 250 |
+ return "forward:/mng/usr/mberManage.do"; |
|
| 249 | 251 |
} |
| 250 | 252 |
|
| 251 | 253 |
//사용자 엑셀파일을 일괄 업로드한다. |
| 252 |
- @RequestMapping(value = "/mng/usr/EgovMberExcelUploadView.do") |
|
| 254 |
+ @RequestMapping(value = "/mng/usr/MberExcelUploadView.do") |
|
| 253 | 255 |
public String EgovMberExcelUploadView(@ModelAttribute("searchVO") UserManageVO userManageVO, Model model) throws Exception {
|
| 254 |
- return "mng/usr/EgovMberExcelUpload"; |
|
| 256 |
+ return "mng/usr/MberExcelUpload"; |
|
| 255 | 257 |
} |
| 256 | 258 |
//사용자 엑셀파일을 일괄 업로드한다. |
| 257 |
- @SuppressWarnings("unchecked")
|
|
| 258 |
- @RequestMapping(value = "/mng/usr/EgovMberExcelUpload.do") |
|
| 259 |
+ @RequestMapping(value = "/mng/usr/mberExcelUpload.do") |
|
| 259 | 260 |
public String EgovMberExcelUpload(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") UserManageVO userManageVO, Model model) throws Exception {
|
| 260 | 261 |
|
| 261 | 262 |
Map<String, Object> resultList = null; |
... | ... | @@ -284,88 +285,10 @@ |
| 284 | 285 |
} |
| 285 | 286 |
} |
| 286 | 287 |
|
| 287 |
- return "mng/usr/EgovMberExcelUpload"; |
|
| 288 |
+ return "mng/usr/MberExcelUpload"; |
|
| 288 | 289 |
} |
| 289 | 290 |
|
| 290 |
- /** |
|
| 291 |
- * 직원 목록을 조회 |
|
| 292 |
- * @param model 화면모델 |
|
| 293 |
- * @return mng/usr/EgovMemberList |
|
| 294 |
- * @throws Exception |
|
| 295 |
- */ |
|
| 296 |
- @RequestMapping(value = "/mng/usr/EgovStaffManage.do") |
|
| 297 |
- public String selectEgovStaffManage(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 298 |
- |
|
| 299 |
- LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 300 |
- if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 301 |
- userManageVO.setSiteId(loginVO.getSiteId()); |
|
| 302 |
- } |
|
| 303 |
- |
|
| 304 |
- userManageVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
|
| 305 |
- userManageVO.setPageSize(propertiesService.getInt("pageSize"));
|
|
| 306 |
- |
|
| 307 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 308 |
- paginationInfo.setCurrentPageNo(userManageVO.getPageIndex()); |
|
| 309 |
- paginationInfo.setRecordCountPerPage(userManageVO.getPageUnit()); |
|
| 310 |
- paginationInfo.setPageSize(userManageVO.getPageSize()); |
|
| 311 |
- |
|
| 312 |
- userManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 313 |
- userManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 314 |
- userManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 315 |
- |
|
| 316 |
- userManageVO.setUserSeCode("10");
|
|
| 317 |
- model.addAttribute("resultList", userManageService.selectUserList(userManageVO));
|
|
| 318 |
- |
|
| 319 |
- int totCnt = userManageService.selectUserListTotCnt(userManageVO); |
|
| 320 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 321 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 322 |
- |
|
| 323 |
- return "mng/usr/EgovStaffList"; |
|
| 324 |
- } |
|
| 325 |
- |
|
| 326 |
- /** |
|
| 327 |
- * 학생 목록을 조회 |
|
| 328 |
- * @param model 화면모델 |
|
| 329 |
- * @return mng/usr/EgovMemberList |
|
| 330 |
- * @throws Exception |
|
| 331 |
- */ |
|
| 332 |
- @RequestMapping(value = "/mng/usr/EgovStudentManage.do") |
|
| 333 |
- public String EgovStudentManage(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 334 |
- |
|
| 335 |
- LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 336 |
- if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) {
|
|
| 337 |
- userManageVO.setSiteId(loginVO.getSiteId()); |
|
| 338 |
- } |
|
| 339 |
- |
|
| 340 |
- userManageVO.setPageUnit(propertiesService.getInt("pageUnit"));
|
|
| 341 |
- userManageVO.setPageSize(propertiesService.getInt("pageSize"));
|
|
| 342 |
- |
|
| 343 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 344 |
- paginationInfo.setCurrentPageNo(userManageVO.getPageIndex()); |
|
| 345 |
- paginationInfo.setRecordCountPerPage(userManageVO.getPageUnit()); |
|
| 346 |
- paginationInfo.setPageSize(userManageVO.getPageSize()); |
|
| 347 |
- |
|
| 348 |
- userManageVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 349 |
- userManageVO.setLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 350 |
- userManageVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 351 |
- |
|
| 352 |
- userManageVO.setUserSeCode("04");
|
|
| 353 |
- model.addAttribute("resultList", userManageService.selectUserList(userManageVO));
|
|
| 354 |
- |
|
| 355 |
- int totCnt = userManageService.selectUserListTotCnt(userManageVO); |
|
| 356 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 357 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 358 |
- |
|
| 359 |
- CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); |
|
| 360 |
- voComCode = new CmmnDetailCodeVO(); |
|
| 361 |
- // 소속 리스트 |
|
| 362 |
- /*voComCode.setCodeId("COM041");
|
|
| 363 |
- model.addAttribute("groupList", cmmUseService.selectCmmCodeDetail(voComCode));*/
|
|
| 364 |
- |
|
| 365 |
- return "mng/usr/EgovStudentList"; |
|
| 366 |
- } |
|
| 367 |
- |
|
| 368 |
- @RequestMapping(value ="/mng/usr/EgovMberEmailDuplChk.json") |
|
| 291 |
+ @RequestMapping(value ="/mng/usr/mberEmailDuplChk.json") |
|
| 369 | 292 |
public void selectEgovMberEmailDuplChk(@ModelAttribute("searchVO") UserManageVO userManageVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 370 | 293 |
String successYn = "Y"; |
| 371 | 294 |
|
--- base/src/main/java/egovframework/module/uss/umt/service/impl/UserManageServiceImpl.java
+++ base/src/main/java/egovframework/module/uss/umt/service/impl/UserManageServiceImpl.java
... | ... | @@ -154,6 +154,12 @@ |
| 154 | 154 |
|
| 155 | 155 |
//사용자 정보를 수정한다. |
| 156 | 156 |
public int updateManageUser(UserManageVO userManageVO) throws Exception {
|
| 157 |
+ //암호화 작업 |
|
| 158 |
+ if(!EgovStringUtil.isEmpty(userManageVO.getPassword())) {
|
|
| 159 |
+ userManageVO.setPassword(EgovCrypTo.encryptPassword(userManageVO.getPassword())); |
|
| 160 |
+ } |
|
| 161 |
+ |
|
| 162 |
+ userManageVO.setPassword(EgovCrypTo.encryptPassword(userManageVO.getPassword())); |
|
| 157 | 163 |
return userManageMapper.updateManageUser(userManageVO); |
| 158 | 164 |
} |
| 159 | 165 |
|
--- base/src/main/resources/egovframework/mapper/mysql/uss/umt/UserManage_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/uss/umt/UserManage_SQL.xml
... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 |
<result property="emailAdres" column="EMAIL_ADRES"/> |
| 14 | 14 |
<result property="confmAt" column="CONFM_AT"/> |
| 15 | 15 |
<result property="confmPnttm" column="CONFM_PNTTM"/> |
| 16 |
- <result property="frstRegistPnttm" column="FRST_REGIST_PNTTM"/> |
|
| 16 |
+ <result property="frstRegisterPnttm" column="FRST_REGISTER_PNTTM"/> |
|
| 17 | 17 |
<result property="photoStreFileNm" column="PHOTO_STRE_FILE_NM"/> |
| 18 | 18 |
</resultMap> |
| 19 | 19 |
|
... | ... | @@ -24,15 +24,14 @@ |
| 24 | 24 |
, A.EMAIL_ADRES |
| 25 | 25 |
, A.USER_SE_CODE |
| 26 | 26 |
, A.MOBLPHON_NO |
| 27 |
- , A.FRST_REGIST_PNTTM |
|
| 27 |
+ , A.FRST_REGISTER_PNTTM |
|
| 28 | 28 |
, A.CONFM_AT |
| 29 | 29 |
, PHOTO_STRE_FILE_NM |
| 30 |
- , EMAIL_ADRES |
|
| 31 | 30 |
FROM comtnmber A |
| 32 | 31 |
|
| 33 | 32 |
<include refid="selectUserListWhere"></include> |
| 34 | 33 |
|
| 35 |
- ORDER BY A.FRST_REGIST_PNTTM DESC, A.USER_ID ASC |
|
| 34 |
+ ORDER BY A.FRST_REGISTER_PNTTM DESC, A.USER_ID ASC |
|
| 36 | 35 |
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
|
| 37 | 36 |
</select> |
| 38 | 37 |
|
... | ... | @@ -45,12 +44,14 @@ |
| 45 | 44 |
<sql id="selectUserListWhere"> |
| 46 | 45 |
<where> |
| 47 | 46 |
A.DELETE_AT = 'N' |
| 48 |
- AND A.USER_SE_CODE = #{userSeCode}
|
|
| 47 |
+ <if test='userSeCode != null and userSeCode != ""'> |
|
| 48 |
+ AND A.USER_SE_CODE = #{userSeCode}
|
|
| 49 |
+ </if> |
|
| 49 | 50 |
<if test='searchConfirmAt != null and searchConfirmAt != ""'> |
| 50 | 51 |
AND A.CONFM_AT = #{searchConfirmAt}
|
| 51 | 52 |
</if> |
| 52 |
- <if test='(searchUserNm != null and searchUserNm != "") or (searchCondition != null and searchCondition != "")'> |
|
| 53 |
- AND USER_NM LIKE CONCAT('%', #{searchUserNm}, '%')
|
|
| 53 |
+ <if test='(searchKeyword != null and searchKeyword != "") or (searchCondition != null and searchCondition != "")'> |
|
| 54 |
+ AND USER_NM LIKE CONCAT('%', #{searchKeyword}, '%')
|
|
| 54 | 55 |
</if> |
| 55 | 56 |
</where> |
| 56 | 57 |
</sql> |
... | ... | @@ -66,7 +67,7 @@ |
| 66 | 67 |
, EMAIL_ADRES |
| 67 | 68 |
, CONFM_AT |
| 68 | 69 |
, CONFM_PNTTM |
| 69 |
- , FRST_REGIST_PNTTM |
|
| 70 |
+ , FRST_REGISTER_PNTTM |
|
| 70 | 71 |
, PHOTO_STRE_FILE_NM |
| 71 | 72 |
FROM comtnmber A |
| 72 | 73 |
WHERE A.DELETE_AT = 'N' |
... | ... | @@ -82,7 +83,7 @@ |
| 82 | 83 |
, USER_NM |
| 83 | 84 |
, EMAIL_ADRES |
| 84 | 85 |
, MOBLPHON_NO |
| 85 |
- , FRST_REGIST_PNTTM |
|
| 86 |
+ , FRST_REGISTER_PNTTM |
|
| 86 | 87 |
, DELETE_AT |
| 87 | 88 |
, CONFM_AT |
| 88 | 89 |
, USER_SCH_NO |
... | ... | @@ -109,15 +110,19 @@ |
| 109 | 110 |
<update id="updateManageUser"> |
| 110 | 111 |
UPDATE comtnmber SET |
| 111 | 112 |
USER_NM = #{userNm}
|
| 113 |
+ <if test='password != null and password != ""'> |
|
| 114 |
+ , PASSWORD = #{password}
|
|
| 115 |
+ </if> |
|
| 112 | 116 |
, EMAIL_ADRES = #{emailAdres}
|
| 113 | 117 |
<if test='moblphonNo != null and moblphonNo != ""'> |
| 114 | 118 |
, MOBLPHON_NO = #{moblphonNo}
|
| 115 | 119 |
</if> |
| 116 |
- , CONFM_AT = #{confmAt}
|
|
| 120 |
+ <if test='confmAt != null and confmAt != ""'> |
|
| 121 |
+ , CONFM_AT = #{confmAt}
|
|
| 122 |
+ </if> |
|
| 117 | 123 |
, LAST_UPDUSR_ID = #{lastUpdusrId}
|
| 118 | 124 |
, LAST_UPDUSR_PNTTM = NOW() |
| 119 |
- WHERE USER_ID = #{targetId}
|
|
| 120 |
- AND DELETE_AT = 'N' |
|
| 125 |
+ WHERE USER_ID = #{userId}
|
|
| 121 | 126 |
</update> |
| 122 | 127 |
|
| 123 | 128 |
<update id="updateUser"> |
... | ... | @@ -240,7 +245,7 @@ |
| 240 | 245 |
, USER_NM |
| 241 | 246 |
, EMAIL_ADRES |
| 242 | 247 |
, MOBLPHON_NO |
| 243 |
- , FRST_REGIST_PNTTM |
|
| 248 |
+ , FRST_REGISTER_PNTTM |
|
| 244 | 249 |
, DELETE_AT |
| 245 | 250 |
, CONFM_AT |
| 246 | 251 |
, USER_SCH_NO |
... | ... | @@ -275,7 +280,7 @@ |
| 275 | 280 |
, GEOCODE |
| 276 | 281 |
, MOBLPHON_NO |
| 277 | 282 |
, USER_SE_CODE |
| 278 |
- , FRST_REGIST_PNTTM |
|
| 283 |
+ , FRST_REGISTER_PNTTM |
|
| 279 | 284 |
, DELETE_AT |
| 280 | 285 |
, CONFM_AT) |
| 281 | 286 |
SELECT |
--- base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-loginaop.xml
+++ base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-loginaop.xml
... | ... | @@ -10,9 +10,9 @@ |
| 10 | 10 |
<aop:config> |
| 11 | 11 |
<aop:aspect id="logManageAspect" ref="logManage"> |
| 12 | 12 |
|
| 13 |
- <aop:before pointcut="execution(public * egovframework.com.front.uat.uia.web.EgovLoginController.actionMain(..))" method="logLogin" /> |
|
| 13 |
+ <aop:before pointcut="execution(public * egovframework.com.front.uat.uia.web.LoginController.actionMain(..))" method="logLogin" /> |
|
| 14 | 14 |
|
| 15 |
- <aop:before pointcut="execution(public * egovframework.com.front.uat.uia.web.EgovLoginController.actionLogout(..))" method="logLogout" /> |
|
| 15 |
+ <aop:before pointcut="execution(public * egovframework.com.front.uat.uia.web.LoginController.actionLogout(..))" method="logLogout" /> |
|
| 16 | 16 |
|
| 17 | 17 |
</aop:aspect> |
| 18 | 18 |
</aop:config> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/EgovBoardMstrList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/EgovBoardMstrList.jsp
... | ... | @@ -3,6 +3,7 @@ |
| 3 | 3 |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
| 4 | 4 |
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> |
| 5 | 5 |
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> |
| 6 |
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> |
|
| 6 | 7 |
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> |
| 7 | 8 |
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> |
| 8 | 9 |
<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> |
... | ... | @@ -132,7 +133,7 @@ |
| 132 | 133 |
</c:url> |
| 133 | 134 |
<a href="${manageUrl}" onclick="fnBBS_Manage(this.href);return false;"><img src="${_IMG}/btn/btn_letter.gif"/></a>
|
| 134 | 135 |
</td> |
| 135 |
- <td><c:out value="${result.frstRegisterPnttm}"/></td>
|
|
| 136 |
+ <td><fmt:formatDate value="${result.frstRegisterPnttm}" pattern="yyyy-MM-dd"/></td>
|
|
| 136 | 137 |
<td> |
| 137 | 138 |
<c:url var="viewUrl" value="/mng/cop/bbs/SelectBBSMasterInf.do${_PAGE_PARAM}">
|
| 138 | 139 |
<c:param name="bbsId" value="${result.bbsId}"/>
|
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 |
<div id="topMenu"> |
| 48 | 48 |
<ul class="list"> |
| 49 | 49 |
<li><span class="nonBtn"><c:out value="${USER_INFO.name}"/>님</span></li>
|
| 50 |
- <li><a href="<%=egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper.getRedirectLogoutUrl()%>" class="nonBtn"><img src="${mngimg}/logo_admin.gif" alt="로그아웃"/></a></li>
|
|
| 50 |
+ <li><a href="<%=egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper.getRedirectLogoutUrl()%>" class="nonBtn">로그아웃</a></li> |
|
| 51 | 51 |
</ul> |
| 52 | 52 |
</div> |
| 53 | 53 |
</div> |
... | ... | @@ -58,7 +58,7 @@ |
| 58 | 58 |
<li><a href="<c:url value="/mng/sym/sit/selectSiteInfoList.do"/>" <c:if test="${param.menu eq 'SYSTEM_MANAGE' }">class="slt"</c:if> target="_self">시스템관리</a></li>
|
| 59 | 59 |
</c:if> |
| 60 | 60 |
<li><a href="<c:url value="/mng/sym/mpm/selectMpmList.do"/>" <c:if test="${param.menu eq 'MENUCNTNTS_MANAGE' }">class="slt"</c:if> target="_self">메뉴관리</a></li>
|
| 61 |
- <li><a href="<c:url value="/mng/usr/EgovMberManage.do"/>" <c:if test="${param.menu eq 'MBER_MANAGE' }">class="slt"</c:if> target="_self">회원관리</a></li>
|
|
| 61 |
+ <li><a href="<c:url value="/mng/usr/mberManage.do"/>" <c:if test="${param.menu eq 'MBER_MANAGE' }">class="slt"</c:if> target="_self">회원관리</a></li>
|
|
| 62 | 62 |
|
| 63 | 63 |
<li><a href="<c:url value="/mng/cop/bbs/SelectBBSMasterInfs.do"/>" <c:if test="${param.menu eq 'BOARD_MANAGE' }">class="slt"</c:if> target="_self">게시판관리</a></li>
|
| 64 | 64 |
<%-- <li><a href="<c:url value="/mng/prg/ComtnprogrmList.do"/>" <c:if test="${param.menu eq 'COURSE_MANAGE' }">class="slt"</c:if> target="_self">체험프로그램</a></li> --%>
|
... | ... | @@ -119,7 +119,7 @@ |
| 119 | 119 |
|
| 120 | 120 |
<c:when test="${param.menu eq 'MBER_MANAGE' }"> <!-- 회원관리 -->
|
| 121 | 121 |
<ul class="list"> |
| 122 |
- <li class="smnu"><a href="<c:url value="/mng/usr/EgovMberManage.do"/>" <c:if test="${param.depth2 eq 'PROF_MANAGE' }">class="slt"</c:if> target="_self">회원관리</a></li>
|
|
| 122 |
+ <li class="smnu"><a href="<c:url value="/mng/usr/mberManage.do"/>" <c:if test="${param.depth2 eq 'PROF_MANAGE' }">class="slt"</c:if> target="_self">회원관리</a></li>
|
|
| 123 | 123 |
</ul> |
| 124 | 124 |
</c:when> |
| 125 | 125 |
|
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovMemberList.jsp
... | ... | @@ -1,229 +0,0 @@ |
| 1 | -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 4 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 5 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 6 | -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 7 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 8 | -<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> | |
| 9 | -<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response) %>" /> | |
| 10 | - | |
| 11 | -<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 12 | - | |
| 13 | -<% /*URL 정의*/ %> | |
| 14 | - <c:url var="_BASE_PARAM" value=""> | |
| 15 | - <c:param name="siteId" value="${searchVO.siteId}" /> | |
| 16 | - <c:if test="${!empty searchVO.searchPositionCode}"><c:param name="searchPositionCode" value="${searchVO.searchPositionCode}" /></c:if> | |
| 17 | - <c:if test="${!empty searchVO.searchDept}"><c:param name="searchDept" value="${searchVO.searchDept}" /></c:if> | |
| 18 | - <c:if test="${!empty searchVO.searchGender}"><c:param name="searchGender" value="${searchVO.searchGender}" /></c:if> | |
| 19 | - <c:if test="${!empty searchVO.searchGroup}"><c:param name="searchGroup" value="${searchVO.searchGroup}" /></c:if> | |
| 20 | - <c:if test="${!empty searchVO.searchWork}"><c:param name="searchWork" value="${searchVO.searchWork}" /></c:if> | |
| 21 | - <c:if test="${!empty searchVO.searchUserNm}"><c:param name="searchUserNm" value="${searchVO.searchUserNm}" /></c:if> | |
| 22 | - <c:if test="${!empty searchVO.templateAt}"><c:param name="templateAt" value="${searchVO.templateAt}" /></c:if> | |
| 23 | - </c:url> | |
| 24 | -<% /*URL 정의*/ %> | |
| 25 | -<c:set var="_ACTION" value="/mng/usr/EgovMberManage.do" /> | |
| 26 | -<c:choose> | |
| 27 | -<c:when test="${searchVO.templateAt ne 'N'}"> | |
| 28 | - <c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 29 | - <c:param name="menu" value="MBER_MANAGE"/> | |
| 30 | - <c:param name="depth1" value="MBER_MANAGE"/> | |
| 31 | - <c:param name="depth2" value="PROF_MANAGE"/> | |
| 32 | - <c:param name="title" value="교원관리"/> | |
| 33 | - </c:import> | |
| 34 | - | |
| 35 | -<script> | |
| 36 | -$(document).ready(function(){ | |
| 37 | -}); | |
| 38 | -</script> | |
| 39 | -<style> | |
| 40 | -tr td{cursor:pointer;} | |
| 41 | -</style> | |
| 42 | - <div id="cntnts"> | |
| 43 | - | |
| 44 | - <%-- 사이트 선택 주석처리 --%> | |
| 45 | - <c:if test="${USER_INFO.userSe > 10}"> | |
| 46 | - <form id="SiteListForm" name="SiteListForm" action="${_ACTION }" method="post"> | |
| 47 | - <div id="bbs_search"> | |
| 48 | - <c:import url="/mng/sym/sit/selectCommonSiteList.do"/> | |
| 49 | - </div> | |
| 50 | - </form> | |
| 51 | - </c:if> | |
| 52 | - | |
| 53 | - <form:form name="listForm" action="${_ACTION }" method="post"> | |
| 54 | - <input type="hidden" name="siteId" value="${searchVO.siteId}"/> | |
| 55 | - | |
| 56 | - <div id="bbs_search"> | |
| 57 | - <select name="searchCondition" id="searchCondition"> | |
| 58 | - <option value="1" <c:if test="${searchVO.searchCondition eq '1'}">selected="selected"</c:if>>아이디</option> | |
| 59 | - <option value="2" <c:if test="${searchVO.searchCondition eq '2'}">selected="selected"</c:if>>이름</option> | |
| 60 | - </select> | |
| 61 | - | |
| 62 | - <label><input type="text" name="searchUserNm" value="${searchVO.searchUserNm}" id="inp_text" placeholder="검색어를 입력해주세요."/></label> | |
| 63 | - <input type=image src="${_IMG}/btn/btn_search.gif" alt="검색" /> | |
| 64 | - </div> | |
| 65 | - <p class="total">총 회원 ${paginationInfo.totalRecordCount}명ㅣ 현재페이지 <strong class="green">${paginationInfo.currentPageNo}</strong>/${paginationInfo.totalPageCount}</p> | |
| 66 | - | |
| 67 | - <table class="chart_board"> | |
| 68 | - <colgroup> | |
| 69 | - <col width="70"/> | |
| 70 | - <col width="%"/> | |
| 71 | - <col width="%"/> | |
| 72 | - <col width="70"/> | |
| 73 | - <col width="70"/> | |
| 74 | - <col width="70"/> | |
| 75 | - <col width="180"/> | |
| 76 | - </colgroup> | |
| 77 | - <thead> | |
| 78 | - <tr> | |
| 79 | - <th>번호</th> | |
| 80 | - <th>아이디</th> | |
| 81 | - <th>이름</th> | |
| 82 | - <th>권한</th> | |
| 83 | - <th>잠금</th> | |
| 84 | - <th>승인여부</th> | |
| 85 | - <th>관리</th> | |
| 86 | - </tr> | |
| 87 | - </thead> | |
| 88 | - <tbody> | |
| 89 | - <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 90 | - <tr class="data-row" onclick="location.href='/mng/usr/EgovMberView.do?userId=${result.userId }&userSeCode=08'"> | |
| 91 | - <td class="listtd"><fmt:formatNumber value="${paginationInfo.totalRecordCount - ((searchVO.pageIndex-1) * searchVO.pageSize) - (status.count - 1)}" type="number"/></td> | |
| 92 | - <td class="listtd"><c:out value="${result.userId}" /></td> | |
| 93 | - <td class="listtd"><c:out value="${result.userNm}" /></td> | |
| 94 | - <td class="listtd"><c:out value="${result.userSeCode}" /></td> | |
| 95 | - <td class="listtd"></td> | |
| 96 | - <td class="listtd"></td> | |
| 97 | - <td class="listtd"><c:out value="${result.mngDeptCodeNm}" /></td> | |
| 98 | - <td class="listtd"> | |
| 99 | - <c:choose> | |
| 100 | - <c:when test="${result.confmAt eq 'Y'}">승인</c:when> | |
| 101 | - <c:otherwise>미승인</c:otherwise> | |
| 102 | - </c:choose> | |
| 103 | - </td> | |
| 104 | - <td class="listtd" <c:if test="${result.useYn eq 'N'}">style="color:red;"</c:if>> | |
| 105 | - | |
| 106 | - </td> | |
| 107 | - | |
| 108 | - </tr> | |
| 109 | - </c:forEach> | |
| 110 | - <c:if test="${fn:length(resultList) == 0}"> | |
| 111 | - <tr> | |
| 112 | - <td class="listtd" colspan="10"> | |
| 113 | - <spring:message code="common.nodata.msg" /> | |
| 114 | - </td> | |
| 115 | - </tr> | |
| 116 | - </c:if> | |
| 117 | - | |
| 118 | - </tbody> | |
| 119 | - </table> | |
| 120 | - | |
| 121 | - <div class="btn_r"> | |
| 122 | - <a href="<c:url value='/mng/usr/EgovMberAddView.do'/>"><img src="${_IMG}/btn/btn_regist.gif" /></a> | |
| 123 | - </div> | |
| 124 | - | |
| 125 | - <div id="paging"> | |
| 126 | - <c:url var="pageUrl" value="/mng/usr/EgovMberManage.do${_BASE_PARAM}"> | |
| 127 | - </c:url> | |
| 128 | - | |
| 129 | - <c:if test="${not empty paginationInfo}"> | |
| 130 | - <ul> | |
| 131 | - <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="${pageUrl}" /> | |
| 132 | - </ul> | |
| 133 | - </c:if> | |
| 134 | - </div> | |
| 135 | - </form:form> | |
| 136 | - </div> | |
| 137 | - <c:import url="/mng/template/bottom.do" charEncoding="utf-8"/> | |
| 138 | -</c:when> | |
| 139 | -<c:otherwise> | |
| 140 | -<!doctype html> | |
| 141 | -<html lang="ko"> | |
| 142 | -<head> | |
| 143 | -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| 144 | -<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| 145 | -<link rel="stylesheet" href="/resources/template/manage/css/default.css"> | |
| 146 | -<link rel="stylesheet" href="/resources/template/manage/css/page.css"> | |
| 147 | -<link rel="stylesheet" href="/resources/template/manage/css/com.css"> | |
| 148 | -<link href="/template/common/js/jquery/themes/base/jquery.ui.all.css" rel="stylesheet"> | |
| 149 | -<script src="/template/common/js/jquery/jquery-1.9.1.min.js"></script> | |
| 150 | -<title>교원검색</title> | |
| 151 | -<script> | |
| 152 | -$(document).ready(function(){ | |
| 153 | - $(".btn_ok").click(function(){ | |
| 154 | - var id = [], | |
| 155 | - name = [], | |
| 156 | - mngdept = [], | |
| 157 | - mngdeptnm = []; | |
| 158 | - | |
| 159 | - | |
| 160 | - $(".chk").each(function(){ | |
| 161 | - if($(this).is(":checked")){ | |
| 162 | - id.push($(this).val()); | |
| 163 | - name.push($(this).data("name")); | |
| 164 | - mngdept.push($(this).data("mngdept")); | |
| 165 | - mngdeptnm.push($(this).data("mngdeptnm")); | |
| 166 | - } | |
| 167 | - }); | |
| 168 | - | |
| 169 | - window.opener.selUser(id, name, mngdept, mngdeptnm, "${searchVO.position}"); | |
| 170 | - window.close(); | |
| 171 | - | |
| 172 | - return false; | |
| 173 | - }); | |
| 174 | -}); | |
| 175 | -</script> | |
| 176 | -</head> | |
| 177 | -<body> | |
| 178 | -<br/> | |
| 179 | -<div id="cntnts"> | |
| 180 | -<form name="listForm" id="listForm" method="post" method="post" action="${_ACTION }"> | |
| 181 | - <input type="hidden" name="templateAt" value="${searchVO.templateAt}"/> | |
| 182 | - <input type="hidden" name="position" value="${searchVO.position}"/> | |
| 183 | - <input type="hidden" name="searchDept" value="${searchVO.searchDept}"/> | |
| 184 | - <div id="bbs_search"> | |
| 185 | - <label for="inp_text" class="hdn">검색어입력</label> | |
| 186 | - <input type="text" name="searchUserNm" value="${searchVO.searchUserNm}" class="inp_s" id="inp_text" placeholder="이름을 입력해 주세요."> | |
| 187 | - <input type="image" src="/resources/template/manage/images/btn/btn_search.gif" alt="검색"> | |
| 188 | - </div> | |
| 189 | - <table class="chart_board"> | |
| 190 | - <colgroup> | |
| 191 | - <col width="70"/> | |
| 192 | - <col width="120"/> | |
| 193 | - <col width="70"/> | |
| 194 | - </colgroup> | |
| 195 | - <thead> | |
| 196 | - <tr> | |
| 197 | - <th>선택</th> | |
| 198 | - <th>이름</th> | |
| 199 | - <th>이메일</th> | |
| 200 | - <th>주관기관/학과</th> | |
| 201 | - </tr> | |
| 202 | - </thead> | |
| 203 | - <tbody> | |
| 204 | - <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 205 | - <tr> | |
| 206 | - <td class="listtd"><input type="checkbox" class="chk" value="${result.userId}" data-name="${result.userNm}" data-mngdept="${result.mngDeptCode}" data-mngdeptnm="${result.mngDeptCodeNm}"/></td> | |
| 207 | - <td class="listtd"><c:out value="${result.userNm}" /></td> | |
| 208 | - <td class="listtd"><c:out value="${result.emailAdres}" /></td> | |
| 209 | - <td class="listtd"><c:out value="${result.mngDeptCodeNm}" /></td> | |
| 210 | - </tr> | |
| 211 | - </c:forEach> | |
| 212 | - <c:if test="${fn:length(resultList) == 0}"> | |
| 213 | - <tr> | |
| 214 | - <td class="listtd" colspan="4"> | |
| 215 | - <spring:message code="common.nodata.msg" /> | |
| 216 | - </td> | |
| 217 | - </tr> | |
| 218 | - </c:if> | |
| 219 | - </tbody> | |
| 220 | - </table> | |
| 221 | - | |
| 222 | - <div class="btn_c"> | |
| 223 | - <a href="#" class="btn_ok" data-target="${param.target}"><img src="/resources/template/manage/images/board/btn_confirm.gif"/></a> | |
| 224 | - </div> | |
| 225 | -</form> | |
| 226 | -</div> | |
| 227 | -</c:otherwise> | |
| 228 | -</c:choose> | |
| 229 | - |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovStaffIndt.jsp
... | ... | @@ -1,348 +0,0 @@ |
| 1 | -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 4 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 5 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 6 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 7 | -<c:set var="MNG_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 8 | - | |
| 9 | -<c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 10 | - <c:param name="menu" value="MBER_MANAGE"/> | |
| 11 | - <c:param name="depth1" value="MBER_MANAGE"/> | |
| 12 | - <c:param name="depth2" value="STAF_MANAGE"/> | |
| 13 | -</c:import> | |
| 14 | - | |
| 15 | -<style type="text/css"> | |
| 16 | - .btn_w{float:left;margin-left:5px;} | |
| 17 | - .out{overflow:hidden;width:100%;} | |
| 18 | -</style> | |
| 19 | - | |
| 20 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/prototype.js"></script> | |
| 21 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/scriptaculous/scriptaculous.js"></script> | |
| 22 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/overlibmws/overlibmws.js"></script> | |
| 23 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/ajaxtags.js"></script> | |
| 24 | - | |
| 25 | -<c:set var="registerFlag" value="${empty userManageVO.userId ? '등록' : '수정'}"/> | |
| 26 | - | |
| 27 | -<script type="text/javascript"> | |
| 28 | - | |
| 29 | -$(document).ready(function(){ | |
| 30 | - | |
| 31 | -}); | |
| 32 | - | |
| 33 | -<c:if test='${not empty message}'> | |
| 34 | -alert("${message}"); | |
| 35 | -</c:if> | |
| 36 | - function checkForm(form) { | |
| 37 | - | |
| 38 | - if($('#userNm').val() == "" || $('#userNm').val() == null){ | |
| 39 | - alert("이름을 입력하세요."); | |
| 40 | - $('#userNm').focus(); | |
| 41 | - return false; | |
| 42 | - }else if($('#email1').val() == "" || $('#email1').val() == null){ | |
| 43 | - alert("이메일을 입력하세요."); | |
| 44 | - $('#email1').focus(); | |
| 45 | - return false; | |
| 46 | - }else if($('#email_choice').val() == "" || $('#email_choice').val() == null){ | |
| 47 | - alert("이메일 주소를 선택하세요."); | |
| 48 | - $('#email_choice').focus(); | |
| 49 | - return false; | |
| 50 | - }else{ | |
| 51 | - <c:choose> | |
| 52 | - <c:when test="${registerFlag eq '수정'}"> | |
| 53 | - if(confirm('<spring:message code="common.update.msg" />')) { | |
| 54 | - </c:when> | |
| 55 | - <c:otherwise> | |
| 56 | - if(confirm('<spring:message code="common.regist.msg" />')) { | |
| 57 | - </c:otherwise> | |
| 58 | - </c:choose> | |
| 59 | - return true; | |
| 60 | - }else { | |
| 61 | - return false; | |
| 62 | - } | |
| 63 | - } | |
| 64 | - | |
| 65 | - | |
| 66 | - } | |
| 67 | - | |
| 68 | - function fnIdRcomd(){ | |
| 69 | - var frm = document.userManageVO; | |
| 70 | - var url = "<c:url value='/uss/umt/cmm/EgovIdRecomendCnfirmView.do'/>"; | |
| 71 | - window.open(url, 'RcomdIdCheck', 'menu=no, scrollbars=yes, width=420,height=300'); | |
| 72 | - } | |
| 73 | - function fnCheckNotKorean(koreanStr){ | |
| 74 | - for(var i=0;i<koreanStr.length;i++){ | |
| 75 | - var koreanChar = koreanStr.charCodeAt(i); | |
| 76 | - if( !( 0xAC00 <= koreanChar && koreanChar <= 0xD7A3 ) && !( 0x3131 <= koreanChar && koreanChar <= 0x318E ) ) { | |
| 77 | - }else{ | |
| 78 | - //hangul finding.... | |
| 79 | - return false; | |
| 80 | - } | |
| 81 | - } | |
| 82 | - return true; | |
| 83 | - } | |
| 84 | - | |
| 85 | - function fn_egov_return_IdCheck(userId) { | |
| 86 | - var frm = document.userManageVO; | |
| 87 | - frm.userId.value = userId; | |
| 88 | - } | |
| 89 | - | |
| 90 | - function fn_egov_return_RcomdCheck(rcomdId) { | |
| 91 | - var frm = document.userManageVO; | |
| 92 | - frm.recomendId.value = rcomdId; | |
| 93 | - } | |
| 94 | - | |
| 95 | - function inputDirectEmailDns(val){ | |
| 96 | - document.getElementById('email2').value = val; | |
| 97 | - } | |
| 98 | - | |
| 99 | - function sendPassword() { | |
| 100 | - if(confirm("비밀번호를 재발급하고 "+document.userManageVO.moblphonNo.value+"번호로 전송 하시겠습니까?")) { | |
| 101 | - document.userManageVO.action = "${pageContext.request.contextPath}/mng/usr/SendPassword.do"; | |
| 102 | - document.userManageVO.target = "passSand"; | |
| 103 | - return true; | |
| 104 | - }else{ | |
| 105 | - return false; | |
| 106 | - } | |
| 107 | - } | |
| 108 | - | |
| 109 | - function fnIdCheck(){ | |
| 110 | - var frm = document.userManageVO; | |
| 111 | - var userId = frm.userId.value; | |
| 112 | - if(!fnCheckUserIdLength(userId) || !fnCheckSpace(userId) || !fnCheckNotKorean(userId) || !(fnCheckEnglish(userId) && fnCheckDigit(userId) && !fnCheckTksu(userId))){ | |
| 113 | - alert("아이디는 띄어쓰기 없는 영문+숫자 조합 8~20자 내에서 입력해야 합니다."); | |
| 114 | - } else { | |
| 115 | - var url = "<c:url value='/uss/umt/cmm/EgovIdDplctCnfirm.do?checkId=" + encodeURIComponent(userId) + "'/>"; | |
| 116 | - window.open(url, 'IdCheck', 'menu=no, scrollbars=yes, width=500,height=350'); | |
| 117 | - } | |
| 118 | - } | |
| 119 | - | |
| 120 | - function fnCheckUserIdLength(str) { | |
| 121 | - if (str.length < 8 || str.length > 20 ){ | |
| 122 | - return false; | |
| 123 | - } | |
| 124 | - return true; | |
| 125 | - } | |
| 126 | - | |
| 127 | - function fnCheckSpace(str){ | |
| 128 | - for (var i=0; i < str .length; i++) { | |
| 129 | - ch_char = str .charAt(i); | |
| 130 | - ch = ch_char.charCodeAt(); | |
| 131 | - if(ch == 32) { | |
| 132 | - return false; | |
| 133 | - } | |
| 134 | - } | |
| 135 | - return true; | |
| 136 | - } | |
| 137 | - | |
| 138 | - function fnCheckNotKorean(koreanStr){ | |
| 139 | - for(var i=0;i<koreanStr.length;i++){ | |
| 140 | - var koreanChar = koreanStr.charCodeAt(i); | |
| 141 | - if( !( 0xAC00 <= koreanChar && koreanChar <= 0xD7A3 ) && !( 0x3131 <= koreanChar && koreanChar <= 0x318E ) ) { | |
| 142 | - }else{ | |
| 143 | - //hangul finding.... | |
| 144 | - return false; | |
| 145 | - } | |
| 146 | - } | |
| 147 | - return true; | |
| 148 | - } | |
| 149 | - | |
| 150 | - function fnCheckTksu(str) { | |
| 151 | - for (var i=0; i < str .length; i++) { | |
| 152 | - ch_char = str .charAt(i); | |
| 153 | - ch = ch_char.charCodeAt(); | |
| 154 | - if( !(ch >= 33 && ch <= 47) || (ch >= 58 && ch <= 64) || (ch >= 91 && ch <= 96) || (ch >= 123 && ch <= 126) ) { | |
| 155 | - | |
| 156 | - } else { | |
| 157 | - return true; | |
| 158 | - } | |
| 159 | - } | |
| 160 | - return false; | |
| 161 | - | |
| 162 | - } | |
| 163 | - | |
| 164 | - function fnCheckEnglish(str){ | |
| 165 | - for(var i=0;i<str.length;i++){ | |
| 166 | - var EnglishChar = str.charCodeAt(i); | |
| 167 | - if( !( 0x61 <= EnglishChar && EnglishChar <= 0x7A ) && !( 0x41 <= EnglishChar && EnglishChar <= 0x5A ) ) { | |
| 168 | - | |
| 169 | - } else { | |
| 170 | - return true; | |
| 171 | - } | |
| 172 | - } | |
| 173 | - return false; | |
| 174 | - } | |
| 175 | - | |
| 176 | - function fnCheckDigit(str) { | |
| 177 | - for (var i=0; i < str .length; i++) { | |
| 178 | - ch_char = str .charAt(i); | |
| 179 | - iValue = parseInt(ch_char); | |
| 180 | - if(isNaN(iValue)) { | |
| 181 | - | |
| 182 | - } else { | |
| 183 | - return true; | |
| 184 | - } | |
| 185 | - } | |
| 186 | - return false; | |
| 187 | - | |
| 188 | - } | |
| 189 | - | |
| 190 | - </script> | |
| 191 | -<div id="cntnts"> | |
| 192 | - <c:choose> | |
| 193 | - <c:when test="${registerFlag eq '등록' }"> | |
| 194 | - <c:set var="actionUrl" value="EgovStaffSelectIndt.do"/> | |
| 195 | - </c:when> | |
| 196 | - <c:when test="${registerFlag eq '수정' }"> | |
| 197 | - <c:set var="actionUrl" value="EgovStaffSelectUpdt.do?targetId=${userManageVO.userId}"/> | |
| 198 | - </c:when> | |
| 199 | - </c:choose> | |
| 200 | - | |
| 201 | - <form:form commandName="userManageVO" name="userManageVO" method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/mng/usr/${actionUrl }"> | |
| 202 | - | |
| 203 | - <form:hidden path="moblphonNo"/> | |
| 204 | - <form:hidden path="userSeCode" value="10"/> | |
| 205 | - | |
| 206 | - <table class="chart2"> | |
| 207 | - <caption>회원관리 폼</caption> | |
| 208 | - <colgroup> | |
| 209 | - <col width="150"/> | |
| 210 | - <col width=""/> | |
| 211 | - <col width="300"/> | |
| 212 | - </colgroup> | |
| 213 | - <tbody> | |
| 214 | - <tr> | |
| 215 | - <th><em>*</em><label for="userNm"> 이름 </label><span style="color:red;">(필수)</span></th> | |
| 216 | - <td> | |
| 217 | - <form:input path="userNm" id="userNm" cssClass="inp" /> | |
| 218 | - <div><form:errors path="userNm" /></div> | |
| 219 | - </td> | |
| 220 | - <td rowspan="11" align="center"> | |
| 221 | - <c:choose> | |
| 222 | - <c:when test="${empty userManageVO.photoStreFileNm}">사진없음</c:when> | |
| 223 | - <c:otherwise><img src="${MembersFileStoreWebPath}<c:out value="${userManageVO.photoStreFileNm}"/>" style="max-width:300px"/></c:otherwise> | |
| 224 | - </c:choose> | |
| 225 | - <br><input type="file" name="userPicFile" class="inp" style="width:300px"/> | |
| 226 | - </td> | |
| 227 | - </tr> | |
| 228 | - | |
| 229 | - <tr> | |
| 230 | - <th><label for="userSchNo"> 사번 </label>(선택)</th> | |
| 231 | - <td> | |
| 232 | - <form:input path="userSchNo" id="userSchNo" cssClass="inp" maxlength="20"/> | |
| 233 | - | |
| 234 | - <form:select path="workStatusCode"> | |
| 235 | - <c:forEach var="result" items="${workStatusList}" varStatus="status"> | |
| 236 | - <option value="${result.code}" <c:if test="${userManageVO.workStatusCode eq result.code}">selected="selected"</c:if>>${result.codeNm }</option> | |
| 237 | - </c:forEach> | |
| 238 | - </form:select> | |
| 239 | - </td> | |
| 240 | - </tr> | |
| 241 | - | |
| 242 | - <tr> | |
| 243 | - <th><label for="groupCode"> 소속 </label>(선택)</th> | |
| 244 | - <td> | |
| 245 | - <form:select path="groupCode"> | |
| 246 | - <option value="">선택</option> | |
| 247 | - <c:forEach var="result" items="${groupList}" varStatus="status"> | |
| 248 | - <option value="${result.codeNm}" <c:if test="${userManageVO.groupCode eq result.codeNm}">selected="selected"</c:if>>${result.codeNm }</option> | |
| 249 | - </c:forEach> | |
| 250 | - </form:select> | |
| 251 | - </td> | |
| 252 | - </tr> | |
| 253 | - | |
| 254 | - <tr> | |
| 255 | - <th><label for="moblphonNo">연락처</label> (선택)</th> | |
| 256 | - <td> | |
| 257 | - <c:set var="moblArr" value="${fn:split(userManageVO.moblphonNo, '-')}"/> | |
| 258 | - <c:forEach items="${moblArr}" var="arr" varStatus="status"> | |
| 259 | - <c:if test="${status.count eq 1}"><c:set var="phone1" value="${fn:trim(arr)}"/></c:if> | |
| 260 | - <c:if test="${status.count eq 2}"><c:set var="phone2" value="${fn:trim(arr)}"/></c:if> | |
| 261 | - <c:if test="${status.count eq 3}"><c:set var="phone3" value="${fn:trim(arr)}"/></c:if> | |
| 262 | - </c:forEach> | |
| 263 | - <select id="phone1" name="phone1" title="휴대전화번호 선택"> | |
| 264 | - <option value="010" <c:if test="${phone1 eq '010'}"> selected="selected"</c:if>>010</option> | |
| 265 | - <option value="011" <c:if test="${phone1 eq '011'}"> selected="selected"</c:if>>011</option> | |
| 266 | - <option value="016" <c:if test="${phone1 eq '016'}"> selected="selected"</c:if>>016</option> | |
| 267 | - <option value="017" <c:if test="${phone1 eq '017'}"> selected="selected"</c:if>>017</option> | |
| 268 | - <option value="018" <c:if test="${phone1 eq '018'}"> selected="selected"</c:if>>018</option> | |
| 269 | - <option value="019" <c:if test="${phone1 eq '019'}"> selected="selected"</c:if>>019</option> | |
| 270 | - </select> | |
| 271 | - <input type="text" id="phone2" name="phone2" value="${phone2}" maxlength="4" class="inp tel" title="휴대전화번호 가운데자리 입력" /> | |
| 272 | - <input type="text" id="phone3" name="phone3" value="${phone3}" maxlength="4" class="inp tel" title="휴대전화번호 뒷자리 입력" /> | |
| 273 | - </td> | |
| 274 | - </tr> | |
| 275 | - <tr> | |
| 276 | - <th><label for="emailHead"> E-mail </label><span style="color:red;">(필수)</span></th> | |
| 277 | - <td> | |
| 278 | - <c:set var="emailArr" value="${fn:split(userManageVO.emailAdres, '@')}"/> | |
| 279 | - <c:forEach items="${emailArr}" var="arr" varStatus="status"> | |
| 280 | - <c:if test="${status.count eq 1}"> | |
| 281 | - <c:set var="emailHead" value="${fn:trim(arr)}"/> | |
| 282 | - </c:if> | |
| 283 | - <c:if test="${status.count eq 2}"> | |
| 284 | - <c:set var="emailBody" value="${fn:trim(arr)}"/> | |
| 285 | - </c:if> | |
| 286 | - </c:forEach> | |
| 287 | - <input type="text" name="email1" id="email1" value="${emailHead}" class="inp" /> @ <input type="text" name="email2" value="${emailBody}" id="email2" class="inp"/> | |
| 288 | - <select id="email_choice" name="email_choice" onchange='inputDirectEmailDns(this.value);'> | |
| 289 | - <option value="">직접입력</option> | |
| 290 | - <option value="hanmail.net" <c:if test="${emailBody eq 'hanmail.net'}"> selected="selected"</c:if>>다음</option> | |
| 291 | - <option value="naver.com" <c:if test="${emailBody eq 'naver.com'}"> selected="selected"</c:if>>네이버(naver.com)</option> | |
| 292 | - <option value="nate.com" <c:if test="${emailBody eq 'nate.com'}"> selected="selected"</c:if>>네이트(nate.com)</option> | |
| 293 | - <option value="empal.com" <c:if test="${emailBody eq 'empal.com'}"> selected="selected"</c:if>>엠파스</option> | |
| 294 | - <option value="paran.com" <c:if test="${emailBody eq 'paran.com'}"> selected="selected"</c:if>>파란(paran.com)</option> | |
| 295 | - <option value="hanafos.com" <c:if test="${emailBody eq 'hanafos.com'}"> selected="selected"</c:if>>하나포스(hanafos.com)</option> | |
| 296 | - <option value="gmail.com" <c:if test="${emailBody eq 'gmail.com'}"> selected="selected"</c:if>>G메일(gmail.com)</option> | |
| 297 | - <option value="kornet.net" <c:if test="${emailBody eq 'kornet.net'}"> selected="selected"</c:if>>코넷</option> | |
| 298 | - <option value="korea.com" <c:if test="${emailBody eq 'korea.com'}"> selected="selected"</c:if>>코리아닷컴(korea.com)</option> | |
| 299 | - <option value="dreamwiz.com" <c:if test="${emailBody eq 'dreamwiz.com'}"> selected="selected"</c:if>>드림위즈(dreamwiz.com)</option> | |
| 300 | - <option value="lycos.co.kr" <c:if test="${emailBody eq 'lycos.co.kr'}"> selected="selected"</c:if>>라이코스(lycos.co.kr)</option> | |
| 301 | - <option value="chollian.net" <c:if test="${emailBody eq 'chollian.net'}"> selected="selected"</c:if>>천리안(chollian.net)</option> | |
| 302 | - <option value="yahoo.co.kr" <c:if test="${emailBody eq 'yahoo.co.kr'}"> selected="selected"</c:if>>야후(yahoo.co.kr)</option> | |
| 303 | - <option value="hotmail.com" <c:if test="${emailBody eq 'hotmail.com'}"> selected="selected"</c:if>>핫메일(hotmail.com)</option> | |
| 304 | - </select> | |
| 305 | - | |
| 306 | - </td> | |
| 307 | - </tr> | |
| 308 | - | |
| 309 | - <tr> | |
| 310 | - <th><label for="userId"> 아이디</label> (선택)</th> | |
| 311 | - <td> | |
| 312 | - <form:input path="userId" id="userId" cssClass="inp" maxlength="20"/> | |
| 313 | - <%-- <a href="<c:url value='/uss/umt/cmm/EgovIdDplctCnfirm.do?checkId='/>" onclick="fnIdCheck();return false;" class="btn_s"><span>중복확인</span></a> --%> | |
| 314 | - <p>등록하지 않을 시 E-mail 정보로 자동 등록됩니다.</p> | |
| 315 | - </td> | |
| 316 | - </tr> | |
| 317 | - | |
| 318 | - <tr> | |
| 319 | - <th><em>*</em><label for="password"> 패스워드</label> (자동)</th> | |
| 320 | - <td>등록 시 자동으로 1234로 지정됩니다.</td> | |
| 321 | - </tr> | |
| 322 | - </tbody> | |
| 323 | - </table> | |
| 324 | - | |
| 325 | - <div class="btn_r"> | |
| 326 | - <c:url var="listUrl" value="./EgovMberManage.do"> | |
| 327 | - <c:if test="${!empty searchVO.pageIndex}"><c:param name="pageIndex" value="${searchVO.pageIndex}" /></c:if> | |
| 328 | - <c:if test="${!empty searchVO.searchCondition}"><c:param name="searchCondition" value="${searchVO.searchCondition}" /></c:if> | |
| 329 | - <c:if test="${!empty searchVO.searchKeyword}"><c:param name="searchKeyword" value="${searchVO.searchKeyword}" /></c:if> | |
| 330 | - </c:url> | |
| 331 | - <%-- <a href="/mng/usr/EgovMberAddView.do"><img src="${_IMG}/btn/btn_regist.gif" alt="등록하기" /></a> --%> | |
| 332 | - <c:choose> | |
| 333 | - <c:when test="${registerFlag eq '등록' }"> | |
| 334 | - <input type="image" src="${MNG_IMG}/btn/btn_regist.gif" alt="등록하기" onclick="return checkForm(document.userManageVO);"/> | |
| 335 | - </c:when> | |
| 336 | - <c:when test="${registerFlag eq '수정' }"> | |
| 337 | - <input type="image" src="<c:url value='${MNG_IMG}/btn/btn_modify.gif'/>" alt="수정" onclick="return checkForm(document.userManageVO);"/> | |
| 338 | - </c:when> | |
| 339 | - </c:choose> | |
| 340 | - | |
| 341 | - <a href="<c:out value="${listUrl}"/>"><img src="${MNG_IMG}/btn/btn_cancel.gif" alt="취소"/></a> | |
| 342 | - | |
| 343 | - </div> | |
| 344 | -</form:form> | |
| 345 | -<iframe name="passSand" id="passSand" style='visibility: hidden; height: 0; width: 0; border: 0px'></iframe> | |
| 346 | - | |
| 347 | -</div> | |
| 348 | -<c:import url="/mng/template/bottom.do" charEncoding="utf-8"/> (파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovStaffList.jsp
... | ... | @@ -1,110 +0,0 @@ |
| 1 | -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 4 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 5 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 6 | -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 7 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 8 | -<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> | |
| 9 | -<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response) %>" /> | |
| 10 | - | |
| 11 | -<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 12 | - | |
| 13 | -<% /*URL 정의*/ %> | |
| 14 | - <c:url var="_BASE_PARAM" value=""> | |
| 15 | - <c:param name="siteId" value="${searchVO.siteId}" /> | |
| 16 | - <c:if test="${!empty searchVO.searchCondition}"><c:param name="searchCondition" value="${searchVO.searchCondition}" /></c:if> | |
| 17 | - <c:if test="${!empty searchVO.searchKeyword}"><c:param name="searchKeyword" value="${searchVO.searchKeyword}" /></c:if> | |
| 18 | - </c:url> | |
| 19 | -<% /*URL 정의*/ %> | |
| 20 | - | |
| 21 | -<c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 22 | - <c:param name="menu" value="MBER_MANAGE"/> | |
| 23 | - <c:param name="depth1" value="MBER_MANAGE"/> | |
| 24 | - <c:param name="depth2" value="STAF_MANAGE"/> | |
| 25 | - <c:param name="title" value="직원관리"/> | |
| 26 | -</c:import> | |
| 27 | -<c:set var="_ACTION" value="/mng/usr/EgovStaffManage.do" /> | |
| 28 | - | |
| 29 | -<div id="cntnts"> | |
| 30 | - <form:form name="listForm" action="${_ACTION }" method="post"> | |
| 31 | - <%-- <input type="hidden" name="siteId" value="${searchVO.siteId}"/> --%> | |
| 32 | - <div id="bbs_search"> | |
| 33 | - <label for="useYn" class="hdn">계정사용여부</label> | |
| 34 | - <select name="useYn" id="useYn"> | |
| 35 | - <option value="">전체</option> | |
| 36 | - <option value="Y" <c:if test="${searchVO.useYn eq 'Y'}">selected="selected"</c:if>>사용중</option> | |
| 37 | - <option value="N" <c:if test="${searchVO.useYn eq 'N'}">selected="selected"</c:if>>사용안함</option> | |
| 38 | - </select> | |
| 39 | - <select name="searchCondition"> | |
| 40 | - <option value="">전체</option> | |
| 41 | - <option value="1" <c:if test="${searchVO.searchCondition == '1'}">selected</c:if>>소속</option> | |
| 42 | - <option value="2" <c:if test="${searchVO.searchCondition == '2'}">selected</c:if>>사번</option> | |
| 43 | - <option value="3" <c:if test="${searchVO.searchCondition == '3'}">selected</c:if>>이름</option> | |
| 44 | - </select> | |
| 45 | - <label><input type="text" name="searchKeyword" value="${searchVO.searchKeyword}" id="searchKeyword" /></label> | |
| 46 | - <br/> | |
| 47 | - <input type=image src="${_IMG}/btn/btn_search.gif" alt="검색" /> | |
| 48 | - </div> | |
| 49 | - <p class="total">검색결과 : ${paginationInfo.totalRecordCount}명</p> | |
| 50 | - | |
| 51 | - <table class="chart_board"> | |
| 52 | - <colgroup> | |
| 53 | - <col width="70"/> | |
| 54 | - <col width="120"/> | |
| 55 | - <col width="70"/> | |
| 56 | - <col width="70"/> | |
| 57 | - <col width="70"/> | |
| 58 | - </colgroup> | |
| 59 | - <thead> | |
| 60 | - <tr> | |
| 61 | - <th>번호</th> | |
| 62 | - <th>소속</th> | |
| 63 | - <th>사번</th> | |
| 64 | - <th>이름</th> | |
| 65 | - <th>계정사용여부</th> | |
| 66 | - </tr> | |
| 67 | - </thead> | |
| 68 | - <tbody> | |
| 69 | - <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 70 | - <tr> | |
| 71 | - <td class="listtd"><fmt:formatNumber value="${paginationInfo.totalRecordCount - ((searchVO.pageIndex-1) * searchVO.pageSize) - (status.count - 1)}" type="number"/></td> | |
| 72 | - <td class="listtd"><c:out value="${result.groupCode}" /></td> | |
| 73 | - <td class="listtd"><c:out value="${result.userSchNo}" /></td> | |
| 74 | - <td class="listtd"> | |
| 75 | - <a href="/mng/usr/EgovStaffAddView.do?userSeCode=10&userId=${result.userId}"> | |
| 76 | - <c:out value="${result.userNm}" /> | |
| 77 | - </a> | |
| 78 | - </td> | |
| 79 | - <td class="listtd"><c:out value="${result.useYn}" /></td> | |
| 80 | - | |
| 81 | - </tr> | |
| 82 | - </c:forEach> | |
| 83 | - <c:if test="${fn:length(resultList) == 0}"> | |
| 84 | - <tr> | |
| 85 | - <td class="listtd" colspan="10"> | |
| 86 | - <spring:message code="common.nodata.msg" /> | |
| 87 | - </td> | |
| 88 | - </tr> | |
| 89 | - </c:if> | |
| 90 | - | |
| 91 | - </tbody> | |
| 92 | - </table> | |
| 93 | - | |
| 94 | - <div class="btn_r"> | |
| 95 | - <a href="<c:url value='/mng/usr/EgovStaffAddView.do'/>"><img src="${_IMG}/btn/btn_regist.gif" /></a> | |
| 96 | - </div> | |
| 97 | - | |
| 98 | - <div id="paging"> | |
| 99 | - <c:url var="pageUrl" value="/mng/usr/EgovStaffManage.do${_BASE_PARAM}"> | |
| 100 | - </c:url> | |
| 101 | - | |
| 102 | - <c:if test="${not empty paginationInfo}"> | |
| 103 | - <ul> | |
| 104 | - <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="${pageUrl}" /> | |
| 105 | - </ul> | |
| 106 | - </c:if> | |
| 107 | - </div> | |
| 108 | - </form:form> | |
| 109 | -</div> | |
| 110 | -<c:import url="/mng/template/bottom.do" charEncoding="utf-8"/> (파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovStuMemberList.jsp
... | ... | @@ -1,272 +0,0 @@ |
| 1 | -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 4 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 5 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 6 | -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 7 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 8 | -<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> | |
| 9 | -<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response) %>" /> | |
| 10 | - | |
| 11 | -<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 12 | - | |
| 13 | -<% /*URL 정의*/ %> | |
| 14 | - <c:url var="_BASE_PARAM" value=""> | |
| 15 | - <c:param name="siteId" value="${searchVO.siteId}" /> | |
| 16 | - <c:if test="${!empty searchVO.searchPositionCode}"><c:param name="searchPositionCode" value="${searchVO.searchPositionCode}" /></c:if> | |
| 17 | - <c:if test="${!empty searchVO.searchDept}"><c:param name="searchDept" value="${searchVO.searchDept}" /></c:if> | |
| 18 | - <c:if test="${!empty searchVO.searchGender}"><c:param name="searchGender" value="${searchVO.searchGender}" /></c:if> | |
| 19 | - <c:if test="${!empty searchVO.searchGroup}"><c:param name="searchGroup" value="${searchVO.searchGroup}" /></c:if> | |
| 20 | - <c:if test="${!empty searchVO.searchWork}"><c:param name="searchWork" value="${searchVO.searchWork}" /></c:if> | |
| 21 | - <c:if test="${!empty searchVO.searchUserNm}"><c:param name="searchUserNm" value="${searchVO.searchUserNm}" /></c:if> | |
| 22 | - <c:if test="${!empty searchVO.templateAt}"><c:param name="templateAt" value="${searchVO.templateAt}" /></c:if> | |
| 23 | - </c:url> | |
| 24 | -<% /*URL 정의*/ %> | |
| 25 | -<c:set var="_ACTION" value="/mng/usr/EgovStuMberManage.do" /> | |
| 26 | - | |
| 27 | -<!doctype html> | |
| 28 | -<html lang="ko"> | |
| 29 | -<head> | |
| 30 | -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| 31 | -<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| 32 | -<link rel="stylesheet" href="/resources/template/manage/css/default.css"> | |
| 33 | -<link rel="stylesheet" href="/resources/template/manage/css/page.css"> | |
| 34 | -<link rel="stylesheet" href="/resources/template/manage/css/com.css"> | |
| 35 | -<link href="/template/common/js/jquery/themes/base/jquery.ui.all.css" rel="stylesheet"> | |
| 36 | -<script src="/template/common/js/jquery/jquery-1.9.1.min.js"></script> | |
| 37 | -<title>학생검색</title> | |
| 38 | - | |
| 39 | -<script> | |
| 40 | -<c:if test="${not empty requestMessage}"> | |
| 41 | -alert("${requestMessage}"); | |
| 42 | -if("수강 신청이 완료되었습니다." == "${requestMessage}"){ | |
| 43 | - opener.parent.location.reload(); | |
| 44 | - window.close(); | |
| 45 | -} | |
| 46 | -</c:if> | |
| 47 | - | |
| 48 | -$(document).ready(function(){ | |
| 49 | - | |
| 50 | - //학생 선택 | |
| 51 | - $("#btn-ok").click(function(){ | |
| 52 | - var leng = $(".chk:checked").length, | |
| 53 | - id = "", | |
| 54 | - name = "", | |
| 55 | - mngdeptnm = "", | |
| 56 | - brthdy = "", | |
| 57 | - stNumber = "", | |
| 58 | - stGrade = ""; | |
| 59 | - | |
| 60 | - if(leng == 0){ | |
| 61 | - alert("학생을 선택해주세요."); | |
| 62 | - }else{ | |
| 63 | - $(".chk").each(function(){ | |
| 64 | - id = $(this).val(), | |
| 65 | - name = $(this).data("name"), | |
| 66 | - mngdeptnm = $(this).data("mngdeptnm"), | |
| 67 | - brthdy = $(this).data("brthdy"), | |
| 68 | - stNumber = $(this).data("stnumber"), | |
| 69 | - stGrade = $(this).data("stgrade"); | |
| 70 | - | |
| 71 | - $("#userId").val(id); | |
| 72 | - $(".userId").text(id); | |
| 73 | - $(".mngDeptNm").text(mngdeptnm); | |
| 74 | - $(".userNm").text(name); | |
| 75 | - $(".brthdy").text(brthdy); | |
| 76 | - $(".stNumber").text(stNumber); | |
| 77 | - $(".stGrade").text(stGrade); | |
| 78 | - | |
| 79 | - $(".findStu").hide(); | |
| 80 | - $(".box_add").show(); | |
| 81 | - }); | |
| 82 | - } | |
| 83 | - | |
| 84 | - return false; | |
| 85 | - }); | |
| 86 | - | |
| 87 | - //팝업닫기 | |
| 88 | - $(".btn-close").click(function(){ | |
| 89 | - window.close(); | |
| 90 | - return false; | |
| 91 | - }); | |
| 92 | - | |
| 93 | - //조 | |
| 94 | - $(".groupCnt").keyup(function(){ | |
| 95 | - if(!$(this).val()){ | |
| 96 | - $(".btn-add").text("조배정 없이 수강대상자 등록"); | |
| 97 | - }else{ | |
| 98 | - $(".btn-add").text($(this).val() + "조로 배정하여 수강대상자 등록"); | |
| 99 | - } | |
| 100 | - }); | |
| 101 | - | |
| 102 | - //등록 | |
| 103 | - $(".btn-add").click(function(){ | |
| 104 | - if(confirm($(".userId").text() + "(" + $(".userNm").text() + ") 학생을 최종 등록하시겠습니까?")){ | |
| 105 | - $("#frm").submit(); | |
| 106 | - } | |
| 107 | - }); | |
| 108 | -}); | |
| 109 | -</script> | |
| 110 | -</head> | |
| 111 | -<body> | |
| 112 | -<br/> | |
| 113 | -<div id="cntnts"> | |
| 114 | - <div class="findStu"> | |
| 115 | - <form name="listForm" id="listForm" method="post" method="post" action="${_ACTION }"> | |
| 116 | - <div id="bbs_search"> | |
| 117 | - <input type="hidden" name="crclId" value="${searchVO.crclId}"/> | |
| 118 | - <label for="inp_text" class="hdn">검색어입력</label> | |
| 119 | - <input type="text" name="searchUserId" value="${searchVO.searchUserId}" class="inp_s" id="inp_text" placeholder="아이디를 입력해 주세요."> | |
| 120 | - <input type="image" src="/resources/template/manage/images/btn/btn_search.gif" alt="검색"> | |
| 121 | - </div> | |
| 122 | - <table class="chart_board"> | |
| 123 | - <colgroup> | |
| 124 | - <col width="70"/> | |
| 125 | - <col width="120"/> | |
| 126 | - <col width="70"/> | |
| 127 | - </colgroup> | |
| 128 | - <thead> | |
| 129 | - <tr> | |
| 130 | - <th>선택</th> | |
| 131 | - <th>ID</th> | |
| 132 | - <th>소속</th> | |
| 133 | - <th>이름</th> | |
| 134 | - <th>생년월일</th> | |
| 135 | - <th>학번</th> | |
| 136 | - <th>학년</th> | |
| 137 | - </tr> | |
| 138 | - </thead> | |
| 139 | - <tbody> | |
| 140 | - <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 141 | - <tr> | |
| 142 | - <td class="listtd"><input type="radio" class="chk" value="${result.userId}" data-name="${result.userNm}" data-mngdeptnm="${result.mngDeptNm}" data-brthdy="${result.brthdy}" data-stnumber="${result.stNumber}" data-stgrade="${result.stGrade}"/></td> | |
| 143 | - <td class="listtd"><c:out value="${result.userId}" /></td> | |
| 144 | - <td class="listtd"><c:out value="${result.mngDeptNm}" /></td> | |
| 145 | - <td class="listtd"><c:out value="${result.userNm}" /></td> | |
| 146 | - <td class="listtd"><c:out value="${result.brthdy}" /></td> | |
| 147 | - <td class="listtd"><c:out value="${result.stNumber}" /></td> | |
| 148 | - <td class="listtd"><c:out value="${result.stGrade}" /></td> | |
| 149 | - </tr> | |
| 150 | - </c:forEach> | |
| 151 | - <c:if test="${fn:length(resultList) == 0}"> | |
| 152 | - <tr> | |
| 153 | - <td class="listtd" colspan="10"> | |
| 154 | - <spring:message code="common.nodata.msg" /> | |
| 155 | - </td> | |
| 156 | - </tr> | |
| 157 | - </c:if> | |
| 158 | - </tbody> | |
| 159 | - </table> | |
| 160 | - | |
| 161 | - <div class="btn_c"> | |
| 162 | - <a href="#" class="btn_mngTxt btn-close">닫기</a> | |
| 163 | - | |
| 164 | - <a href="#" id="btn-ok" class="btn_mngTxt">선택</a> | |
| 165 | - </div> | |
| 166 | - </form> | |
| 167 | - </div> | |
| 168 | - | |
| 169 | - <div class="box_add" style="display:none;"> | |
| 170 | - <form name="frm" id="frm" method="post" action="/mng/lms/crm/insertCurriculumMember.do" enctype="multipart/form-data"> | |
| 171 | - <input type="hidden" id="userId" name="userId"/> | |
| 172 | - <input type="hidden" id="crclId" name="crclId" value="${searchVO.crclId}"/> | |
| 173 | - <input type="hidden" name="stdntAplyAt" value="Y"/> | |
| 174 | - | |
| 175 | - <table class="chart_board"> | |
| 176 | - <thead> | |
| 177 | - <tr> | |
| 178 | - <th>ID</th> | |
| 179 | - <th>소속</th> | |
| 180 | - <th>이름</th> | |
| 181 | - <th>생년월일</th> | |
| 182 | - <th>학번</th> | |
| 183 | - <th>학년</th> | |
| 184 | - <th>조배정</th> | |
| 185 | - </tr> | |
| 186 | - </thead> | |
| 187 | - <tbody> | |
| 188 | - <tr> | |
| 189 | - <td class="userId"></td> | |
| 190 | - <td class="mngDeptNm"></td> | |
| 191 | - <td class="userNm"></td> | |
| 192 | - <td class="brthdy"></td> | |
| 193 | - <td class="stNumber"></td> | |
| 194 | - <td class="stGrade"></td> | |
| 195 | - <td><input type="text" class="groupCnt" name="groupCnt"/>조</td> | |
| 196 | - </tr> | |
| 197 | - </tbody> | |
| 198 | - </table> | |
| 199 | - | |
| 200 | - <table class="chart_board" style="margin-top:50px;"> | |
| 201 | - <colgroup> | |
| 202 | - <col width="70"/> | |
| 203 | - <col width="*"/> | |
| 204 | - <col width="100"/> | |
| 205 | - </colgroup> | |
| 206 | - <thead> | |
| 207 | - <tr> | |
| 208 | - <th>구분</th> | |
| 209 | - <th>파일명</th> | |
| 210 | - <th>파일선택</th> | |
| 211 | - </tr> | |
| 212 | - </thead> | |
| 213 | - <tbody> | |
| 214 | - <tr> | |
| 215 | - <td>신청서</td> | |
| 216 | - <td><input type="text" title="첨부파일등록" id="file_route_1" readonly="readonly" style="width:90%;"></td> | |
| 217 | - <td><input id="fileupload_1" class="fileupload" type="file" name="aplyFileInput" onchange="javascript:document.getElementById('file_route_1').value=this.value"></td> | |
| 218 | - </tr> | |
| 219 | - <tr> | |
| 220 | - <td>계획서</td> | |
| 221 | - <td><input type="text" title="첨부파일등록" id="file_route_2" readonly="readonly" style="width:90%;"></td> | |
| 222 | - <td><input id="fileupload_2" class="fileupload" type="file" name="planFileInput" onchange="javascript:document.getElementById('file_route_2').value=this.value"></td> | |
| 223 | - </tr> | |
| 224 | - <tr> | |
| 225 | - <td>기타</td> | |
| 226 | - <td><input type="text" title="첨부파일등록" id="file_route_3" readonly="readonly" style="width:90%;"></td> | |
| 227 | - <td><input id="fileupload_3" class="fileupload" type="file" name="etfFileInput" onchange="javascript:document.getElementById('file_route_3').value=this.value"></td> | |
| 228 | - </tr> | |
| 229 | - </tbody> | |
| 230 | - </table> | |
| 231 | - <%-- | |
| 232 | - <table class="modal-table-wrap size-sm file-table"> | |
| 233 | - <colgroup> | |
| 234 | - <col width="20%" class="bg-light-blue"> | |
| 235 | - <col width="*"> | |
| 236 | - </colgroup> | |
| 237 | - <tbody> | |
| 238 | - <tr> | |
| 239 | - <td scope="row" class="table-title font-700">신청서</td> | |
| 240 | - <td class="ell"> | |
| 241 | - <input type="text" class="tit_wid_330" title="첨부파일등록" id="file_route_1" readonly="readonly"> | |
| 242 | - <a href="#" class="btn_gray file_btn"><input id="fileupload_1" class="fileupload" type="file" name="aplyFileInput" onchange="javascript:document.getElementById('file_route_1').value=this.value">파일선택</a> | |
| 243 | - </td> | |
| 244 | - </tr> | |
| 245 | - <tr> | |
| 246 | - <td scope="row" class="table-title font-700">계획서</td> | |
| 247 | - <td class="ell"> | |
| 248 | - <input type="text" class="tit_wid_330" title="첨부파일등록" id="file_route_2" readonly="readonly"> | |
| 249 | - <a href="#" class="btn_gray file_btn"><input id="fileupload_2" class="fileupload" type="file" name="planFileInput" onchange="javascript:document.getElementById('file_route_2').value=this.value">파일선택</a> | |
| 250 | - </td> | |
| 251 | - </tr> | |
| 252 | - <tr> | |
| 253 | - <td scope="row" class="table-title font-700">기타</td> | |
| 254 | - <td class="ell"> | |
| 255 | - <input type="text" class="tit_wid_330" title="첨부파일등록" id="file_route_3" readonly="readonly"> | |
| 256 | - <a href="#" class="btn_gray file_btn"><input id="fileupload_3" class="fileupload" type="file" name="etfFileInput" onchange="javascript:document.getElementById('file_route_3').value=this.value">파일선택</a> | |
| 257 | - </td> | |
| 258 | - </tr> | |
| 259 | - </tbody> | |
| 260 | - </table> | |
| 261 | - --%> | |
| 262 | - | |
| 263 | - <div class="btn_c"> | |
| 264 | - <a href="#" class="btn_mngTxt btn-close">닫기</a> | |
| 265 | - | |
| 266 | - <a href="#" class="btn_mngTxt btn-add">조배정 없이 수강대상자 등록</a> | |
| 267 | - </div> | |
| 268 | - </form> | |
| 269 | - </div> | |
| 270 | - | |
| 271 | -</div> | |
| 272 | - |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovStudentIndt.jsp
... | ... | @@ -1,500 +0,0 @@ |
| 1 | -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 4 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 5 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 6 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 7 | -<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> | |
| 8 | -<c:set var="MNG_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 9 | - | |
| 10 | -<c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 11 | - <c:param name="menu" value="MBER_MANAGE"/> | |
| 12 | - <c:param name="depth1" value="MBER_MANAGE"/> | |
| 13 | - <c:param name="depth2" value="STDT_MANAGE"/> | |
| 14 | - <c:param name="validator" value="userManageVO"/> | |
| 15 | -</c:import> | |
| 16 | - | |
| 17 | -<style type="text/css"> | |
| 18 | - .btn_w{float:left;margin-left:5px;} | |
| 19 | - .out{overflow:hidden;width:100%;} | |
| 20 | -</style> | |
| 21 | - | |
| 22 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/prototype.js"></script> | |
| 23 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/scriptaculous/scriptaculous.js"></script> | |
| 24 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/overlibmws/overlibmws.js"></script> | |
| 25 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/ajaxtags.js"></script> | |
| 26 | - | |
| 27 | -<c:set var="registerFlag" value="${empty userManageVO.userId ? '등록' : '수정'}"/> | |
| 28 | - | |
| 29 | -<script type="text/javascript"> | |
| 30 | - | |
| 31 | -$(document).ready(function(){ | |
| 32 | - var userSeCode = "${userManageVO.userSeCode}"; | |
| 33 | - if(userSeCode == 02){ | |
| 34 | - $('#td_groupCode').hide(); | |
| 35 | - $('#tr_major').hide(); | |
| 36 | - $('#tr_stnumber').hide(); | |
| 37 | - }if(userSeCode == 04){ | |
| 38 | - $('#td_txt_groupCode').hide(); | |
| 39 | - $('#tr_stnumber').hide(); | |
| 40 | - }else if(userSeCode == 06){ | |
| 41 | - $('#tr_groupcode').hide(); | |
| 42 | - $('#tr_major').hide(); | |
| 43 | - $('#tr_stnumber').show(); | |
| 44 | - } | |
| 45 | - | |
| 46 | - var brmonth = "${fn:substring(userManageVO.brthdy, 4, 6)}", | |
| 47 | - brday = "${fn:substring(userManageVO.brthdy, 6, 8)}"; | |
| 48 | - | |
| 49 | - $("select[name=brthdy02]").val(brmonth).prop("selected", true); | |
| 50 | - $("select[name=brthdy03]").val(brday).prop("selected", true); | |
| 51 | -}); | |
| 52 | - | |
| 53 | -<c:if test='${not empty message}'> | |
| 54 | -alert("${message}"); | |
| 55 | -</c:if> | |
| 56 | - function fnChangeCode(obj){ | |
| 57 | - if(obj.value == 02){ | |
| 58 | - $('#tr_groupcode').show(); | |
| 59 | - $('#td_groupCode').hide(); | |
| 60 | - $('#td_txt_groupCode').show(); | |
| 61 | - $('#tr_major').hide(); | |
| 62 | - $('#tr_stnumber').hide(); | |
| 63 | - //$('#td_txt_groupCode').val(${userManageVO.groupCode}); | |
| 64 | - } | |
| 65 | - if(obj.value == 06){ | |
| 66 | - $('#tr_groupcode').hide(); | |
| 67 | - $('#tr_major').hide(); | |
| 68 | - $('#tr_stnumber').show(); | |
| 69 | - } | |
| 70 | - if(obj.value == 04){ | |
| 71 | - $('#tr_groupcode').show(); | |
| 72 | - $('#td_groupCode').show(); | |
| 73 | - $('#td_txt_groupCode').hide(); | |
| 74 | - $('#tr_major').show(); | |
| 75 | - $('#tr_stnumber').hide(); | |
| 76 | - } | |
| 77 | - } | |
| 78 | - function checkForm(form) { | |
| 79 | - | |
| 80 | - /* if(!validateUserManageVO(form)) { | |
| 81 | - return false; | |
| 82 | - } */ | |
| 83 | - if($('#email1').val() == "" || $('#email1').val() == null){ | |
| 84 | - alert("이메일을 입력하세요."); | |
| 85 | - $('#email1').focus(); | |
| 86 | - return false; | |
| 87 | - }else if($('#email2').val() == "" || $('#email2').val() == null){ | |
| 88 | - alert("이메일 주소를 선택하세요."); | |
| 89 | - $('#email2').focus(); | |
| 90 | - return false; | |
| 91 | - }else{ | |
| 92 | - var stNumber = $("input[name=stNumber]").val(); | |
| 93 | - if(stNumber){ | |
| 94 | - hufsStu(stNumber); | |
| 95 | - } | |
| 96 | - | |
| 97 | - /* | |
| 98 | - <c:choose> | |
| 99 | - <c:when test="${registerFlag eq '수정'}"> | |
| 100 | - if(confirm('<spring:message code="common.update.msg" />')) { | |
| 101 | - </c:when> | |
| 102 | - <c:otherwise> | |
| 103 | - if(confirm('<spring:message code="common.regist.msg" />')) { | |
| 104 | - </c:otherwise> | |
| 105 | - </c:choose> | |
| 106 | - return true; | |
| 107 | - }else { | |
| 108 | - return false; | |
| 109 | - } | |
| 110 | - */ | |
| 111 | - | |
| 112 | - return false; | |
| 113 | - } | |
| 114 | - | |
| 115 | - | |
| 116 | - } | |
| 117 | - | |
| 118 | - function fnIdRcomd(){ | |
| 119 | - var frm = document.userManageVO; | |
| 120 | - var url = "<c:url value='/uss/umt/cmm/EgovIdRecomendCnfirmView.do'/>"; | |
| 121 | - window.open(url, 'RcomdIdCheck', 'menu=no, scrollbars=yes, width=420,height=300'); | |
| 122 | - } | |
| 123 | - function fnCheckNotKorean(koreanStr){ | |
| 124 | - for(var i=0;i<koreanStr.length;i++){ | |
| 125 | - var koreanChar = koreanStr.charCodeAt(i); | |
| 126 | - if( !( 0xAC00 <= koreanChar && koreanChar <= 0xD7A3 ) && !( 0x3131 <= koreanChar && koreanChar <= 0x318E ) ) { | |
| 127 | - }else{ | |
| 128 | - //hangul finding.... | |
| 129 | - return false; | |
| 130 | - } | |
| 131 | - } | |
| 132 | - return true; | |
| 133 | - } | |
| 134 | - | |
| 135 | - function fn_egov_return_IdCheck(userId) { | |
| 136 | - var frm = document.userManageVO; | |
| 137 | - frm.userId.value = userId; | |
| 138 | - } | |
| 139 | - | |
| 140 | - function fn_egov_return_RcomdCheck(rcomdId) { | |
| 141 | - var frm = document.userManageVO; | |
| 142 | - frm.recomendId.value = rcomdId; | |
| 143 | - } | |
| 144 | - | |
| 145 | - function inputDirectEmailDns(val){ | |
| 146 | - document.getElementById('email2').value = val; | |
| 147 | - } | |
| 148 | - | |
| 149 | - function sendPassword() { | |
| 150 | - if(confirm("비밀번호를 재발급하고 "+document.userManageVO.moblphonNo.value+"번호로 전송 하시겠습니까?")) { | |
| 151 | - document.userManageVO.action = "${pageContext.request.contextPath}/mng/usr/SendPassword.do"; | |
| 152 | - document.userManageVO.target = "passSand"; | |
| 153 | - return true; | |
| 154 | - }else{ | |
| 155 | - return false; | |
| 156 | - } | |
| 157 | - } | |
| 158 | - | |
| 159 | - function fnIdCheck(){ | |
| 160 | - var frm = document.userManageVO; | |
| 161 | - var userId = frm.userId.value; | |
| 162 | - if(!fnCheckUserIdLength(userId) || !fnCheckSpace(userId) || !fnCheckNotKorean(userId) || !(fnCheckEnglish(userId) && fnCheckDigit(userId) && !fnCheckTksu(userId))){ | |
| 163 | - alert("아이디는 띄어쓰기 없는 영문+숫자 조합 8~20자 내에서 입력해야 합니다."); | |
| 164 | - } else { | |
| 165 | - var url = "<c:url value='/uss/umt/cmm/EgovIdDplctCnfirm.do?checkId=" + encodeURIComponent(userId) + "'/>"; | |
| 166 | - window.open(url, 'IdCheck', 'menu=no, scrollbars=yes, width=500,height=350'); | |
| 167 | - } | |
| 168 | - } | |
| 169 | - | |
| 170 | - function fnCheckUserIdLength(str) { | |
| 171 | - if (str.length < 8 || str.length > 20 ){ | |
| 172 | - return false; | |
| 173 | - } | |
| 174 | - return true; | |
| 175 | - } | |
| 176 | - | |
| 177 | - function fnCheckSpace(str){ | |
| 178 | - for (var i=0; i < str .length; i++) { | |
| 179 | - ch_char = str .charAt(i); | |
| 180 | - ch = ch_char.charCodeAt(); | |
| 181 | - if(ch == 32) { | |
| 182 | - return false; | |
| 183 | - } | |
| 184 | - } | |
| 185 | - return true; | |
| 186 | - } | |
| 187 | - | |
| 188 | - function fnCheckNotKorean(koreanStr){ | |
| 189 | - for(var i=0;i<koreanStr.length;i++){ | |
| 190 | - var koreanChar = koreanStr.charCodeAt(i); | |
| 191 | - if( !( 0xAC00 <= koreanChar && koreanChar <= 0xD7A3 ) && !( 0x3131 <= koreanChar && koreanChar <= 0x318E ) ) { | |
| 192 | - }else{ | |
| 193 | - //hangul finding.... | |
| 194 | - return false; | |
| 195 | - } | |
| 196 | - } | |
| 197 | - return true; | |
| 198 | - } | |
| 199 | - | |
| 200 | - function fnCheckTksu(str) { | |
| 201 | - for (var i=0; i < str .length; i++) { | |
| 202 | - ch_char = str .charAt(i); | |
| 203 | - ch = ch_char.charCodeAt(); | |
| 204 | - if( !(ch >= 33 && ch <= 47) || (ch >= 58 && ch <= 64) || (ch >= 91 && ch <= 96) || (ch >= 123 && ch <= 126) ) { | |
| 205 | - | |
| 206 | - } else { | |
| 207 | - return true; | |
| 208 | - } | |
| 209 | - } | |
| 210 | - return false; | |
| 211 | - | |
| 212 | - } | |
| 213 | - | |
| 214 | - function fnCheckEnglish(str){ | |
| 215 | - for(var i=0;i<str.length;i++){ | |
| 216 | - var EnglishChar = str.charCodeAt(i); | |
| 217 | - if( !( 0x61 <= EnglishChar && EnglishChar <= 0x7A ) && !( 0x41 <= EnglishChar && EnglishChar <= 0x5A ) ) { | |
| 218 | - | |
| 219 | - } else { | |
| 220 | - return true; | |
| 221 | - } | |
| 222 | - } | |
| 223 | - return false; | |
| 224 | - } | |
| 225 | - | |
| 226 | - function fnCheckDigit(str) { | |
| 227 | - for (var i=0; i < str .length; i++) { | |
| 228 | - ch_char = str .charAt(i); | |
| 229 | - iValue = parseInt(ch_char); | |
| 230 | - if(isNaN(iValue)) { | |
| 231 | - | |
| 232 | - } else { | |
| 233 | - return true; | |
| 234 | - } | |
| 235 | - } | |
| 236 | - return false; | |
| 237 | - | |
| 238 | - } | |
| 239 | - | |
| 240 | - //외대학생 인증 | |
| 241 | - function hufsStu(stNumber){ | |
| 242 | - var brthdy01 = $("input[name=brthdy01]").val(), | |
| 243 | - brthdy02 = $("#sel_month").val(), | |
| 244 | - brthdy03 = $("#sel_date").val(), | |
| 245 | - birthday = brthdy01.substring(2,4) + brthdy02 + brthdy03 | |
| 246 | - name = "${userManageVO.userNm}"; | |
| 247 | - | |
| 248 | - $.ajax({ | |
| 249 | - url : "/crypto/ariaEn.do", | |
| 250 | - dataType : "json", | |
| 251 | - type : "POST", | |
| 252 | - data : {data : stNumber}, | |
| 253 | - success : function(data){ | |
| 254 | - $.ajax({ | |
| 255 | - url:encodeURI("${authUri}?service_id=${serviceId}&sfl_colreg_no_enc="+data.data), | |
| 256 | - contentType: "application/javascript", | |
| 257 | - dataType: 'jsonp', | |
| 258 | - type: "POST", | |
| 259 | - jsonp: "callback", | |
| 260 | - async: false, | |
| 261 | - success: function(data){ | |
| 262 | - console.log(data); | |
| 263 | - if( data[0].SuccessFg == 'N' ){ | |
| 264 | - alert("인증과정오류 : "+data[0].rtnToken); | |
| 265 | - }else if(data[0].birthday.substring(0,6) != birthday || data[0].name != name || data[0].student_yn != "Y"){ | |
| 266 | - alert("사용자 정보가 존재하지 않거나 한국외국어대학교 학번 정보와 일치하지 않습니다 . 본인의 성명, 생년월일, 성별 및 학번이 정확하게 입력되었는지 다시 한 번 확인해 주시기 바랍니다. 본교생 인증의 경우 가입일자 기준 재학생에 한하여 가능합니다."); | |
| 267 | - }else{ | |
| 268 | - $("input[name=stGrade]").val(data[0].grade); | |
| 269 | - $("input[name=stClass]").val(data[0].major); | |
| 270 | - $("input[name=major]").val(data[0].major); | |
| 271 | - $("#member").submit(); | |
| 272 | - } | |
| 273 | - }, error:function(jqxhr, status, error){ | |
| 274 | - //alert("구성원 인증 중 오류 발생!\n[code:"+jqxhr.status+"\n"+"message:"+jqxhr.responseText+"\n]"); | |
| 275 | - console.log("error : " + encodeURI("${authUri}?service_id=${serviceId}&sfl_colreg_no_enc="+data.data)); | |
| 276 | - alert("사용자 정보가 존재하지 않거나 한국외국어대학교 학번 정보와 일치하지 않습니다 . 본인의 성명, 생년월일, 성별 및 학번이 정확하게 입력되었는지 다시 한 번 확인해 주시기 바랍니다. 본교생 인증의 경우 가입일자 기준 재학생에 한하여 가능합니다."); | |
| 277 | - } | |
| 278 | - }); | |
| 279 | - | |
| 280 | - }, error : function(){ | |
| 281 | - alert("error"); | |
| 282 | - } | |
| 283 | - }); | |
| 284 | - } | |
| 285 | - </script> | |
| 286 | -<div id="cntnts"> | |
| 287 | - <c:choose> | |
| 288 | - <c:when test="${registerFlag eq '등록' }"> | |
| 289 | - <c:set var="actionUrl" value="EgovUserSelectIndt.do"/> | |
| 290 | - </c:when> | |
| 291 | - <c:when test="${registerFlag eq '수정' }"> | |
| 292 | - <c:set var="actionUrl" value="EgovUserSelectUpdt.do?targetId=${userManageVO.userId}"/> | |
| 293 | - </c:when> | |
| 294 | - </c:choose> | |
| 295 | - | |
| 296 | - <form:form id="member" commandName="userManageVO" name="userManageVO" method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/mng/usr/${actionUrl }"> | |
| 297 | - <input type="hidden" name="stGrade"> | |
| 298 | - <input type="hidden" name="stClass"> | |
| 299 | - | |
| 300 | - <table class="chart2"> | |
| 301 | - <caption>회원관리 폼</caption> | |
| 302 | - <colgroup> | |
| 303 | - <col width="150"/> | |
| 304 | - <col width=""/> | |
| 305 | - <col width="300"/> | |
| 306 | - </colgroup> | |
| 307 | - <tbody> | |
| 308 | - <tr> | |
| 309 | - <th><span style="color:red;"><label for="userSeCode"> 구분</label></span></th> | |
| 310 | - <td> | |
| 311 | - <form:select path="userSeCode" onchange="javascript:fnChangeCode(this);"> | |
| 312 | - <option value="06" <c:if test="${userManageVO.userSeCode eq '06'}">selected="selected"</c:if>>한국외국어대학교</option> | |
| 313 | - <option value="04" <c:if test="${userManageVO.userSeCode eq '04'}">selected="selected"</c:if>>기타대학</option> | |
| 314 | - <option value="02" <c:if test="${userManageVO.userSeCode eq '02'}">selected="selected"</c:if>>일반</option> | |
| 315 | - </form:select> | |
| 316 | - </td> | |
| 317 | - </tr> | |
| 318 | - | |
| 319 | - <tr id="tr_groupcode"> | |
| 320 | - <th><label for="groupNm01"> 소속 </label></th> | |
| 321 | - <td id="td_groupCode"> | |
| 322 | - <form:select path="groupNm01"> | |
| 323 | - <option value="">소속선택</option> | |
| 324 | - <c:forEach var="result" items="${groupList}" varStatus="status"> | |
| 325 | - <option value="${result.codeNm}" <c:if test="${userManageVO.groupCode eq result.codeNm}">selected="selected"</c:if>>${result.codeNm }</option> | |
| 326 | - </c:forEach> | |
| 327 | - </form:select> | |
| 328 | - </td> | |
| 329 | - <td id="td_txt_groupCode"> | |
| 330 | - <form:input path="groupNm02" value="${userManageVO.groupCode}"/> | |
| 331 | - </td> | |
| 332 | - </tr> | |
| 333 | - | |
| 334 | - <tr id="tr_major"> | |
| 335 | - <th><label for="major"> 세부전공 </label> </th> | |
| 336 | - <td> | |
| 337 | - <form:input path="major" id="major" cssClass="inp" maxlength="20"/> | |
| 338 | - </td> | |
| 339 | - </tr> | |
| 340 | - | |
| 341 | - <tr id="tr_stnumber"> | |
| 342 | - <th> 학번 </th> | |
| 343 | - <td> | |
| 344 | - <c:choose> | |
| 345 | - <c:when test="${not empty userManageVO.stNumber}"><c:out value="${userManageVO.stNumber }"/></c:when> | |
| 346 | - <c:otherwise><form:input path="stNumber" cssClass="inp" maxlength="20"/></c:otherwise> | |
| 347 | - </c:choose> | |
| 348 | - </td> | |
| 349 | - </tr> | |
| 350 | - | |
| 351 | - <tr> | |
| 352 | - <th><em>*</em><label for="userNm"> 이름 </label></th> | |
| 353 | - <td> | |
| 354 | - <c:out value="${userManageVO.userNm }"/> | |
| 355 | - <%-- <form:input path="userNm" id="userNm" cssClass="inp" /> --%> | |
| 356 | - </td> | |
| 357 | - <td rowspan="11" align="center"> | |
| 358 | - <c:choose> | |
| 359 | - <c:when test="${empty userManageVO.photoStreFileNm}">사진없음</c:when> | |
| 360 | - <c:otherwise><img src="${MembersFileStoreWebPath}<c:out value="${userManageVO.photoStreFileNm}"/>" width="300"/></c:otherwise> | |
| 361 | - </c:choose> | |
| 362 | - <br><input type="file" name="userPicFile" class="inp" style="width:300px"/> | |
| 363 | - </td> | |
| 364 | - </tr> | |
| 365 | - | |
| 366 | - <tr> | |
| 367 | - <th> 생년월일 </th> | |
| 368 | - <td> | |
| 369 | - <input type="text" class="onlyNum required" name="brthdy01" placeholder="년(4자)" required="required" title="생년월일" value="<c:out value="${fn:substring(userManageVO.brthdy, 0, 4)}"/>"> | |
| 370 | - <select id="sel_month" class="select2 required" name="brthdy02" data-select="style1" required="required" title="생년월일"> | |
| 371 | - <option value="">월</option> | |
| 372 | - <option value="01">1월</option> | |
| 373 | - <option value="02">2월</option> | |
| 374 | - <option value="03">3월</option> | |
| 375 | - <option value="04">4월</option> | |
| 376 | - <option value="05">5월</option> | |
| 377 | - <option value="06">6월</option> | |
| 378 | - <option value="07">7월</option> | |
| 379 | - <option value="08">8월</option> | |
| 380 | - <option value="09">9월</option> | |
| 381 | - <option value="10">10월</option> | |
| 382 | - <option value="11">11월</option> | |
| 383 | - <option value="12">12월</option> | |
| 384 | - </select> | |
| 385 | - <select id="sel_date" class="select2 required" name="brthdy03" data-select="style1" required="required" title="생년월일"> | |
| 386 | - <option value="">일</option> | |
| 387 | - <option value="01">1일</option> | |
| 388 | - <option value="02">2일</option> | |
| 389 | - <option value="03">3일</option> | |
| 390 | - <option value="04">4일</option> | |
| 391 | - <option value="05">5일</option> | |
| 392 | - <option value="06">6일</option> | |
| 393 | - <option value="07">7일</option> | |
| 394 | - <option value="08">8일</option> | |
| 395 | - <option value="09">9일</option> | |
| 396 | - <option value="10">10일</option> | |
| 397 | - <option value="11">11일</option> | |
| 398 | - <option value="12">12일</option> | |
| 399 | - <option value="13">13일</option> | |
| 400 | - <option value="14">14일</option> | |
| 401 | - <option value="15">15일</option> | |
| 402 | - <option value="16">16일</option> | |
| 403 | - <option value="17">17일</option> | |
| 404 | - <option value="18">18일</option> | |
| 405 | - <option value="19">19일</option> | |
| 406 | - <option value="20">20일</option> | |
| 407 | - <option value="21">21일</option> | |
| 408 | - <option value="22">22일</option> | |
| 409 | - <option value="23">23일</option> | |
| 410 | - <option value="24">24일</option> | |
| 411 | - <option value="25">25일</option> | |
| 412 | - <option value="26">26일</option> | |
| 413 | - <option value="27">27일</option> | |
| 414 | - <option value="28">28일</option> | |
| 415 | - <option value="29">29일</option> | |
| 416 | - <option value="30">30일</option> | |
| 417 | - <option value="31">31일</option> | |
| 418 | - </select> | |
| 419 | - </td> | |
| 420 | - </tr> | |
| 421 | - | |
| 422 | - <tr> | |
| 423 | - <th> 성별 <span style="color:red;">*</span></th> | |
| 424 | - <td> | |
| 425 | - <c:out value="${userManageVO.sexdstn eq 'M' ? '남자' : '여자'}"/> | |
| 426 | - </td> | |
| 427 | - </tr> | |
| 428 | - | |
| 429 | - <tr> | |
| 430 | - <th><label for="moblphonNo">휴대전화</label> <span style="color:red;">*</span></th> | |
| 431 | - <td> | |
| 432 | - <select class="select2" name="geocode" data-select="style1"> | |
| 433 | - <option value="82">대한민국 +82</option> | |
| 434 | - <c:forEach var="result" items="${telNumList}" varStatus="status"> | |
| 435 | - <c:if test="${result.code ne '82'}"> | |
| 436 | - <option value="${result.code}">${result.codeNm} +${result.code}</option> | |
| 437 | - </c:if> | |
| 438 | - </c:forEach> | |
| 439 | - </select> | |
| 440 | - <input type="text" class="onlyNum required" name="moblphonNo" placeholder="전화번호 입력" required="required" title="휴대전화번호" value="${userManageVO.moblphonNo}" style="text-align:left;"> | |
| 441 | - </td> | |
| 442 | - </tr> | |
| 443 | - | |
| 444 | - <tr> | |
| 445 | - <th> 아이디 <span style="color:red;">*</span></th> | |
| 446 | - <td> | |
| 447 | - <c:out value="${userManageVO.userId}"/> | |
| 448 | - </td> | |
| 449 | - </tr> | |
| 450 | - | |
| 451 | - <tr> | |
| 452 | - <th><label for="emailHead"> 본인확인 이메일 </label><span style="color:red;">*</span></th> | |
| 453 | - <td> | |
| 454 | - <c:set var="emailArr" value="${fn:split(userManageVO.emailAdres, '@')}"/> | |
| 455 | - <c:forEach items="${emailArr}" var="arr" varStatus="status"> | |
| 456 | - <c:if test="${status.count eq 1}"> | |
| 457 | - <c:set var="emailHead" value="${fn:trim(arr)}"/> | |
| 458 | - </c:if> | |
| 459 | - <c:if test="${status.count eq 2}"> | |
| 460 | - <c:set var="emailBody" value="${fn:trim(arr)}"/> | |
| 461 | - </c:if> | |
| 462 | - </c:forEach> | |
| 463 | - <input type="text" name="email1" id="email1" value="${emailHead}" class="inp" /> @ <input type="text" name="email2" value="${emailBody}" id="email2" class="inp"/> | |
| 464 | - <select id="email_choice" name="email_choice" onchange='inputDirectEmailDns(this.value);'> | |
| 465 | - <option value="">기타(직접입력)</option> | |
| 466 | - <option value="naver.com" <c:if test="${emailBody eq 'naver.com'}"> selected="selected"</c:if>>네이버(naver.com)</option> | |
| 467 | - <option value="daum.net" <c:if test="${emailBody eq 'daum.net'}"> selected="selected"</c:if>>다음(daum.net)</option> | |
| 468 | - <option value="gmail.com" <c:if test="${emailBody eq 'gmail.com'}"> selected="selected"</c:if>>G메일(gmail.com)</option> | |
| 469 | - <option value="nate.com" <c:if test="${emailBody eq 'nate.com'}"> selected="selected"</c:if>>네이트(nate.com)</option> | |
| 470 | - </select> | |
| 471 | - <%-- <p style="color:blue;">* 수정할 이메일 정보를 입력하신 뒤 [이메일 인증 수정]버튼을 누르세요.</p> --%> | |
| 472 | - </td> | |
| 473 | - </tr> | |
| 474 | - </tbody> | |
| 475 | - </table> | |
| 476 | - | |
| 477 | - <div class="btn_r"> | |
| 478 | - <c:url var="listUrl" value="./EgovStudentManage.do"> | |
| 479 | - <c:if test="${!empty searchVO.pageIndex}"><c:param name="pageIndex" value="${searchVO.pageIndex}" /></c:if> | |
| 480 | - <c:if test="${!empty searchVO.searchCondition}"><c:param name="searchCondition" value="${searchVO.searchCondition}" /></c:if> | |
| 481 | - <c:if test="${!empty searchVO.searchKeyword}"><c:param name="searchKeyword" value="${searchVO.searchKeyword}" /></c:if> | |
| 482 | - </c:url> | |
| 483 | - <%-- <a href="/mng/usr/EgovMberAddView.do"><img src="${_IMG}/btn/btn_regist.gif" alt="등록하기" /></a> --%> | |
| 484 | - <c:choose> | |
| 485 | - <c:when test="${registerFlag eq '등록' }"> | |
| 486 | - <input type="image" src="${MNG_IMG}/btn/btn_regist.gif" alt="등록하기" onclick="return checkForm(document.userManageVO);"/> | |
| 487 | - </c:when> | |
| 488 | - <c:when test="${registerFlag eq '수정' }"> | |
| 489 | - <input type="image" src="<c:url value='${MNG_IMG}/btn/btn_modify.gif'/>" alt="수정" onclick="return checkForm(document.userManageVO);"/> | |
| 490 | - </c:when> | |
| 491 | - </c:choose> | |
| 492 | - | |
| 493 | - <a href="<c:out value="${listUrl}"/>"><img src="${MNG_IMG}/btn/btn_cancel.gif" alt="취소"/></a> | |
| 494 | - | |
| 495 | - </div> | |
| 496 | -</form:form> | |
| 497 | -<iframe name="passSand" id="passSand" style='visibility: hidden; height: 0; width: 0; border: 0px'></iframe> | |
| 498 | - | |
| 499 | -</div> | |
| 500 | -<c:import url="/mng/template/bottom.do" charEncoding="utf-8"/> (파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovStudentList.jsp
... | ... | @@ -1,155 +0,0 @@ |
| 1 | -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 4 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 5 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 6 | -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 7 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 8 | -<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> | |
| 9 | -<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response) %>" /> | |
| 10 | - | |
| 11 | -<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 12 | - | |
| 13 | -<% /*URL 정의*/ %> | |
| 14 | - <c:url var="_BASE_PARAM" value="?"> | |
| 15 | - <c:if test="${!empty searchVO.searchGroup}"><c:param name="searchGroup" value="${searchVO.searchGroup}" /></c:if> | |
| 16 | - <c:if test="${!empty searchVO.searchUserNm}"><c:param name="searchUserNm" value="${searchVO.searchUserNm}" /></c:if> | |
| 17 | - </c:url> | |
| 18 | -<% /*URL 정의*/ %> | |
| 19 | -<c:set var="_ACTION" value="/mng/usr/EgovStudentManage.do" /> | |
| 20 | - <c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 21 | - <c:param name="menu" value="MBER_MANAGE"/> | |
| 22 | - <c:param name="depth1" value="MBER_MANAGE"/> | |
| 23 | - <c:param name="depth2" value="STDT_MANAGE"/> | |
| 24 | - <c:param name="title" value="학생조회"/> | |
| 25 | - </c:import> | |
| 26 | - | |
| 27 | -<style> | |
| 28 | -tr td{cursor:pointer;} | |
| 29 | -</style> | |
| 30 | - | |
| 31 | - <div id="cntnts"> | |
| 32 | - <form:form name="listForm" action="${_ACTION }" method="post"> | |
| 33 | - <div id="bbs_search"> | |
| 34 | - | |
| 35 | - <%-- <label for="selectGroupCode" class="hdn">소속</label> | |
| 36 | - <select name="searchGroup" id="selectGroupCode"> | |
| 37 | - <option value="">전체</option> | |
| 38 | - <c:forEach var="result" items="${groupList}" varStatus="status"> | |
| 39 | - <option value="${result.code}" <c:if test="${searchVO.searchGroup eq result.code}">selected="selected"</c:if>>${result.codeNm }</option> | |
| 40 | - </c:forEach> | |
| 41 | - </select> --%> | |
| 42 | - <label for="selectGroupCode" class="hdn">소속</label> | |
| 43 | - <select name="searchGroup" id="selectGroupCode"> | |
| 44 | - <option value="">전체</option> | |
| 45 | - <option value="06" <c:if test="${searchVO.searchGroup eq '06'}">selected="selected"</c:if>>한국외국어대학교</option> | |
| 46 | - <option value="04" <c:if test="${searchVO.searchGroup eq '04'}">selected="selected"</c:if>>기타대학</option> | |
| 47 | - <option value="02" <c:if test="${searchVO.searchGroup eq '02'}">selected="selected"</c:if>>일반</option> | |
| 48 | - </select> | |
| 49 | - <label><strong>이름: </strong> <input type="text" name="searchUserNm" value="${searchVO.searchUserNm}" id="searchUserNm" /></label> | |
| 50 | - <br/> | |
| 51 | - <label><strong>생년월일: </strong> <input type="text" name="searchBrthdy" value="${searchVO.searchBrthdy}" id="searchBrthdy" placeholder="숫자만 입력해주세요."/></label> | |
| 52 | - <label><strong>연락처: </strong> <input type="text" name="searchMoblphonNo" value="${searchVO.searchMoblphonNo}" id="searchMoblphonNo" placeholder="-를 제외하고 입력해주세요.예)01012345678)" style="width:280px;"/></label> | |
| 53 | - <br/> | |
| 54 | - <label><strong>아이디: </strong> <input type="text" name="searchUserId" value="${searchVO.searchUserId}" id="searchUserId" style="width:200px;"/></label> | |
| 55 | - <label><strong>이메일: </strong> <input type="text" name="searchEmailAdres" value="${searchVO.searchEmailAdres}" id="searchEmailAdres" style="width:280px;"/></label> | |
| 56 | - <br/> | |
| 57 | - <input type=image src="${_IMG}/btn/btn_search.gif" alt="검색" /> | |
| 58 | - </div> | |
| 59 | - <p class="total">검색결과 : ${paginationInfo.totalRecordCount}명</p> | |
| 60 | - | |
| 61 | - <table class="chart_board"> | |
| 62 | - <colgroup> | |
| 63 | - <col width="70"/> | |
| 64 | - <col width="120"/> | |
| 65 | - <col width="120"/> | |
| 66 | - <col width="70"/> | |
| 67 | - <col width="120"/> | |
| 68 | - <col width="70"/> | |
| 69 | - <col width="70"/> | |
| 70 | - <col width="70"/> | |
| 71 | - <col width="70"/> | |
| 72 | - <col width="180"/> | |
| 73 | - </colgroup> | |
| 74 | - <thead> | |
| 75 | - <tr> | |
| 76 | - <th>번호</th> | |
| 77 | - <th>소속</th> | |
| 78 | - <th>아이디</th> | |
| 79 | - <th>이름</th> | |
| 80 | - <th>이메일</th> | |
| 81 | - <th>생년월일</th> | |
| 82 | - <th>학번</th> | |
| 83 | - <th>연락처</th> | |
| 84 | - <th>가입일</th> | |
| 85 | - <th>수강이력</th> | |
| 86 | - </tr> | |
| 87 | - </thead> | |
| 88 | - <tbody> | |
| 89 | - <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 90 | - <tr onclick="location.href='/mng/usr/EgovStudentView.do?userId=${result.userId }'"> | |
| 91 | - <td class="listtd"><fmt:formatNumber value="${paginationInfo.totalRecordCount - ((searchVO.pageIndex-1) * searchVO.pageSize) - (status.count - 1)}" type="number"/></td> | |
| 92 | - <td class="listtd"> | |
| 93 | - <c:choose> | |
| 94 | - <c:when test="${result.userSeCode eq '02'}"> | |
| 95 | - <c:out value="${result.groupCode }"/> | |
| 96 | - </c:when> | |
| 97 | - <c:when test="${result.userSeCode eq '04'}"> | |
| 98 | - <c:out value="${result.groupCode }"/> | |
| 99 | - </c:when> | |
| 100 | - <c:when test="${result.userSeCode eq '06'}"> | |
| 101 | - <c:out value="한국외국어대학교"/> | |
| 102 | - </c:when> | |
| 103 | - </c:choose> | |
| 104 | - </td> | |
| 105 | - <td class="listtd"><c:out value="${result.userId}" /></td> | |
| 106 | - <td class="listtd"><c:out value="${result.userNm}" /></td> | |
| 107 | - <td class="listtd"><c:out value="${result.emailAdres}" /></td> | |
| 108 | - <td class="listtd"><c:out value="${fn:substring(result.brthdy, 0, 4)}-${fn:substring(result.brthdy, 4, 6)}-${fn:substring(result.brthdy, 6, 8)}"/></td> | |
| 109 | - <td class="listtd"><c:out value="${result.stNumber}" /></td> | |
| 110 | - <td class="listtd">(+<c:out value="${result.geocode}"/>)<c:out value="${result.moblphonNo}" /></td> | |
| 111 | - <td class="listtd"><fmt:formatDate value="${result.frstRegistPnttm}" pattern="yyyy-MM-dd"/></td> | |
| 112 | - <td class="listtd"> | |
| 113 | - <c:choose> | |
| 114 | - <c:when test="${result.currCnt eq 0 }"> | |
| 115 | - 없음 | |
| 116 | - </c:when> | |
| 117 | - <c:when test="${result.currCnt eq 1 }"> | |
| 118 | - <c:out value="${result.currNm }"/> | |
| 119 | - </c:when> | |
| 120 | - <c:when test="${result.currCnt > 1 }"> | |
| 121 | - <c:out value="${result.currNm } 외 ${result.currCnt - 1}건 "/> | |
| 122 | - </c:when> | |
| 123 | - </c:choose> | |
| 124 | - </td> | |
| 125 | - </tr> | |
| 126 | - </c:forEach> | |
| 127 | - <c:if test="${fn:length(resultList) == 0}"> | |
| 128 | - <tr> | |
| 129 | - <td class="listtd" colspan="10"> | |
| 130 | - <spring:message code="common.nodata.msg" /> | |
| 131 | - </td> | |
| 132 | - </tr> | |
| 133 | - </c:if> | |
| 134 | - | |
| 135 | - </tbody> | |
| 136 | - </table> | |
| 137 | - | |
| 138 | - <%-- <div class="btn_r"> | |
| 139 | - <a href="<c:url value='/mng/usr/EgovMberAddView.do'/>"><img src="${_IMG}/btn/btn_regist.gif" /></a> | |
| 140 | - </div> --%> | |
| 141 | - | |
| 142 | - <div id="paging"> | |
| 143 | - <c:url var="pageUrl" value="/mng/usr/EgovStudentManage.do${_BASE_PARAM}"> | |
| 144 | - </c:url> | |
| 145 | - | |
| 146 | - <c:if test="${not empty paginationInfo}"> | |
| 147 | - <ul> | |
| 148 | - <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="${pageUrl}" /> | |
| 149 | - </ul> | |
| 150 | - </c:if> | |
| 151 | - </div> | |
| 152 | - </form:form> | |
| 153 | - </div> | |
| 154 | - <c:import url="/mng/template/bottom.do" charEncoding="utf-8"/> | |
| 155 | - |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovStudentView.jsp
... | ... | @@ -1,295 +0,0 @@ |
| 1 | -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 4 | -<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 5 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 6 | -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 7 | -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> | |
| 8 | -<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %> | |
| 9 | -<c:set var="MNG_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 10 | - | |
| 11 | -<c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 12 | - <c:param name="menu" value="MBER_MANAGE"/> | |
| 13 | - <c:param name="depth1" value="MBER_MANAGE"/> | |
| 14 | - <c:param name="depth2" value="STDT_MANAGE"/> | |
| 15 | - <c:param name="validator" value="userManageVO"/> | |
| 16 | -</c:import> | |
| 17 | - | |
| 18 | -<style type="text/css"> | |
| 19 | - .btn_w{float:left;margin-left:5px;} | |
| 20 | - .out{overflow:hidden;width:100%;} | |
| 21 | -</style> | |
| 22 | - | |
| 23 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/prototype.js"></script> | |
| 24 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/scriptaculous/scriptaculous.js"></script> | |
| 25 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/overlibmws/overlibmws.js"></script> | |
| 26 | -<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/ajaxtags.js"></script> | |
| 27 | - | |
| 28 | -<script type="text/javascript"> | |
| 29 | -$(document).ready(function(){ | |
| 30 | - $("#btn_resent").click(function(){ | |
| 31 | - var userId = $(this).data("id"), | |
| 32 | - userNm = $(this).data("nm"), | |
| 33 | - emailAdres = $(this).data("email"); | |
| 34 | - | |
| 35 | - $.ajax({ | |
| 36 | - url: '/uss/umt/user/authMail.json', | |
| 37 | - async: true, | |
| 38 | - type: 'POST', | |
| 39 | - data: { | |
| 40 | - userId: userId | |
| 41 | - , userNm: userNm | |
| 42 | - , emailAdres: emailAdres | |
| 43 | - }, | |
| 44 | - dataType: 'json', | |
| 45 | - success: function(data){ | |
| 46 | - alert(userNm + "\n" + emailAdres + "\n로 인증메일이 발송되었습니다."); | |
| 47 | - }, error : function(){ | |
| 48 | - alert("error"); | |
| 49 | - } | |
| 50 | - }); | |
| 51 | - }); | |
| 52 | - | |
| 53 | - $("#btn_auth").click(function(){ | |
| 54 | - var userId = $(this).data("id"), | |
| 55 | - userNm = $(this).data("nm"), | |
| 56 | - emailAdres = $(this).data("email"); | |
| 57 | - | |
| 58 | - if(confirm(userNm + "\n" + emailAdres + "\n메일인증을 수동으로 완료 처리하시겠습니까?")){ | |
| 59 | - $.ajax({ | |
| 60 | - url: '/mng/usr/mailAuth.do', | |
| 61 | - async: true, | |
| 62 | - type: 'POST', | |
| 63 | - data: { | |
| 64 | - userId: userId | |
| 65 | - }, | |
| 66 | - dataType: 'json', | |
| 67 | - success: function(data){ | |
| 68 | - alert("인증처리 되었습니다."); | |
| 69 | - location.reload(); | |
| 70 | - }, error : function(){ | |
| 71 | - alert("error"); | |
| 72 | - } | |
| 73 | - }); | |
| 74 | - } | |
| 75 | - | |
| 76 | - }); | |
| 77 | -}); | |
| 78 | - | |
| 79 | -function fnResetPwd(){ | |
| 80 | - if(confirm("${userManageVO.userNm} 님의 패스워드를 초기화 하시겠습니까?\n(초기 비밀번호 : 1234)로 변경됨")){ | |
| 81 | - $(document).ready(function(){ | |
| 82 | - $.ajax({ | |
| 83 | - url: '/mng/usr/EgovResetPwd.do', | |
| 84 | - async: true, | |
| 85 | - type: 'POST', | |
| 86 | - data: { | |
| 87 | - userId: '${userManageVO.userId}' | |
| 88 | - }, | |
| 89 | - dataType: 'text', | |
| 90 | - success: function(){ | |
| 91 | - alert("패스워드 초기화가 완료되었습니다.\n1234로 초기화되었습니다."); | |
| 92 | - } | |
| 93 | - }); | |
| 94 | - }); | |
| 95 | - } | |
| 96 | -} | |
| 97 | - | |
| 98 | -</script> | |
| 99 | - | |
| 100 | -<div id="cntnts"> | |
| 101 | - <table class="chart2"> | |
| 102 | - <caption>회원관리 폼</caption> | |
| 103 | - <colgroup> | |
| 104 | - <col width="150"/> | |
| 105 | - <col width=""/> | |
| 106 | - <col width="300"/> | |
| 107 | - </colgroup> | |
| 108 | - <tbody> | |
| 109 | - <p>회원가입일 : <fmt:formatDate value="${userManageVO.frstRegistPnttm}" pattern="yyyy-MM-dd hh:mm:ss"/></p> | |
| 110 | - <tr> | |
| 111 | - <th><span style="color:red;">구분</span></th> | |
| 112 | - <td> | |
| 113 | - <c:choose> | |
| 114 | - <c:when test="${userManageVO.userSeCode eq '02'}"> | |
| 115 | - <c:out value="일반"/> | |
| 116 | - </c:when> | |
| 117 | - <c:when test="${userManageVO.userSeCode eq '04'}"> | |
| 118 | - <c:out value="기타 대학"/> | |
| 119 | - </c:when> | |
| 120 | - <c:when test="${userManageVO.userSeCode eq '06'}"> | |
| 121 | - <c:out value="한국외국어대학교"/> | |
| 122 | - </c:when> | |
| 123 | - </c:choose> | |
| 124 | - </td> | |
| 125 | - </tr> | |
| 126 | - | |
| 127 | - <tr> | |
| 128 | - <th>소속</th> | |
| 129 | - <td> | |
| 130 | - <c:choose> | |
| 131 | - <c:when test="${userManageVO.userSeCode eq '02'}"> | |
| 132 | - <c:out value="${userManageVO.groupCode }"/> | |
| 133 | - </c:when> | |
| 134 | - <c:when test="${userManageVO.userSeCode eq '04'}"> | |
| 135 | - <c:out value="${userManageVO.groupCode }"/> | |
| 136 | - </c:when> | |
| 137 | - <c:when test="${userManageVO.userSeCode eq '06'}"> | |
| 138 | - <c:out value="한국외국어대학교"/> | |
| 139 | - </c:when> | |
| 140 | - </c:choose> | |
| 141 | - </td> | |
| 142 | - </tr> | |
| 143 | - <c:if test="${userManageVO.userSeCode eq '06' or userManageVO.userSeCode eq '04'}"> | |
| 144 | - <tr> | |
| 145 | - <th>세부전공</th> | |
| 146 | - <td> | |
| 147 | - <c:out value="${userManageVO.major}"/> | |
| 148 | - </td> | |
| 149 | - </tr> | |
| 150 | - </c:if> | |
| 151 | - | |
| 152 | - <tr> | |
| 153 | - <th>이름 <span style="color:red;">*</span></th> | |
| 154 | - <td> | |
| 155 | - <c:out value="${userManageVO.userNm}"/> | |
| 156 | - </td> | |
| 157 | - <td rowspan="11" align="center"> | |
| 158 | - <c:choose> | |
| 159 | - <c:when test="${empty userManageVO.photoStreFileNm}">사진없음</c:when> | |
| 160 | - <c:otherwise><img src="${MembersFileStoreWebPath}<c:out value="${userManageVO.photoStreFileNm}"/>" width="300"/></c:otherwise> | |
| 161 | - </c:choose> | |
| 162 | - </td> | |
| 163 | - </tr> | |
| 164 | - | |
| 165 | - <tr> | |
| 166 | - <th> 생년월일 <span style="color:red;">*</span></th> | |
| 167 | - <td> | |
| 168 | - <c:out value="${fn:substring(userManageVO.brthdy, 0, 4)}-${fn:substring(userManageVO.brthdy, 4, 6)}-${fn:substring(userManageVO.brthdy, 6, 8)}"/> | |
| 169 | - </td> | |
| 170 | - </tr> | |
| 171 | - | |
| 172 | - <tr> | |
| 173 | - <th> 성별 <span style="color:red;">*</span></th> | |
| 174 | - <td> | |
| 175 | - <c:out value="${userManageVO.sexdstn eq 'M' ? '남자' : '여자'}"/> | |
| 176 | - </td> | |
| 177 | - </tr> | |
| 178 | - | |
| 179 | - <c:if test="${userManageVO.userSeCode eq '06'}"> | |
| 180 | - <tr> | |
| 181 | - <th> 학번 <br/>(한국외국어대학교)</th> | |
| 182 | - <td> | |
| 183 | - <c:out value="${userManageVO.stNumber}"/> | |
| 184 | - </td> | |
| 185 | - </tr> | |
| 186 | - </c:if> | |
| 187 | - | |
| 188 | - <tr> | |
| 189 | - <th><label for="moblphonNo">휴대전화</label> <span style="color:red;">*</span></th> | |
| 190 | - <td> | |
| 191 | - (+<c:out value="${userManageVO.geocode}"/>) | |
| 192 | - <c:out value="${userManageVO.moblphonNo}"/> | |
| 193 | - </td> | |
| 194 | - </tr> | |
| 195 | - | |
| 196 | - <tr> | |
| 197 | - <th> 아이디 <span style="color:red;">*</span></th> | |
| 198 | - <td> | |
| 199 | - <c:out value="${userManageVO.userId}"/> | |
| 200 | - </td> | |
| 201 | - </tr> | |
| 202 | - | |
| 203 | - <tr> | |
| 204 | - <th> 본인확인 이메일 <span style="color:red;">*</span></th> | |
| 205 | - <td> | |
| 206 | - <c:out value="${userManageVO.emailAdres}"/> | |
| 207 | - </td> | |
| 208 | - </tr> | |
| 209 | - | |
| 210 | - <tr> | |
| 211 | - <th> 메일 인증여부</th> | |
| 212 | - <td> | |
| 213 | - <c:choose> | |
| 214 | - <c:when test="${userManageVO.confmAt eq 'Y'}"> | |
| 215 | - 인증완료 | |
| 216 | - <c:if test="${not empty userManageVO.confmPnttm }"> | |
| 217 | - (<fmt:formatDate value="${userManageVO.confmPnttm}" pattern="yyyy-MM-dd hh:mm"/>) | |
| 218 | - </c:if> | |
| 219 | - </c:when> | |
| 220 | - <c:otherwise> | |
| 221 | - 인증 대기중 | |
| 222 | - <button type="button" id="btn_resent" data-id="${userManageVO.userId}" data-nm="${userManageVO.userNm}" data-email="${userManageVO.emailAdres}"> 인증메일 재발송 </button> | |
| 223 | - <button type="button" id="btn_auth" data-id="${userManageVO.userId}" data-nm="${userManageVO.userNm}" data-email="${userManageVO.emailAdres}"> 관리자 수동 인증하기 </button> | |
| 224 | - </c:otherwise> | |
| 225 | - </c:choose> | |
| 226 | - </td> | |
| 227 | - </tr> | |
| 228 | - | |
| 229 | - <tr> | |
| 230 | - <th><em>*</em> 패스워드 <span style="color:red;">*</span></th> | |
| 231 | - <td>***** | |
| 232 | - <button onclick="fnResetPwd();return false;" > 패스워드 초기화 </button> | |
| 233 | - </td> | |
| 234 | - </tr> | |
| 235 | - </tbody> | |
| 236 | - </table> | |
| 237 | - | |
| 238 | - <div class="btn_r"> | |
| 239 | - <c:url var="listUrl" value="./EgovStudentManage.do"> | |
| 240 | - <c:if test="${!empty searchVO.pageIndex}"><c:param name="pageIndex" value="${searchVO.pageIndex}" /></c:if> | |
| 241 | - <c:if test="${!empty searchVO.searchCondition}"><c:param name="searchCondition" value="${searchVO.searchCondition}" /></c:if> | |
| 242 | - <c:if test="${!empty searchVO.searchKeyword}"><c:param name="searchKeyword" value="${searchVO.searchKeyword}" /></c:if> | |
| 243 | - </c:url> | |
| 244 | - <%-- <a href="/mng/usr/EgovMberAddView.do"><img src="${_IMG}/btn/btn_regist.gif" alt="등록하기" /></a> --%> | |
| 245 | - <input type="image" src="${MNG_IMG}/btn/btn_modify.gif" alt="수정하기" onclick="location.href='/mng/usr/EgovStudentAddView.do?userId=${userManageVO.userId}'"/> | |
| 246 | - <%-- <input type="image" src="<c:url value='${MNG_IMG}/btn/btn_modify.gif'/>" alt="수정" onclick="return checkForm(document.userManageVO);"/> --%> | |
| 247 | - <a href="<c:out value="${listUrl}"/>"><img src="${MNG_IMG}/btn/btn_list.gif" alt="목록"/></a> | |
| 248 | - </div> | |
| 249 | - | |
| 250 | - <h2>교육과정 이력</h2> | |
| 251 | - <table class="chart2"> | |
| 252 | - <colgroup> | |
| 253 | - <col style='width:5%'> | |
| 254 | - <col style='width:5%'> | |
| 255 | - <col style='width:150px'> | |
| 256 | - <col style='width:130px'> | |
| 257 | - <col style='width:5%'> | |
| 258 | - <col style='width:5%'> | |
| 259 | - </colgroup> | |
| 260 | - <thead> | |
| 261 | - <tr class='bg-light-gray font-700' style='text-align:center;'> | |
| 262 | - <th scope='col'>년도</th> | |
| 263 | - <th scope='col'>학기</th> | |
| 264 | - <th scope='col'>기본과정분류</th> | |
| 265 | - <th scope='col'>교육과정명</th> | |
| 266 | - <th scope='col'>성적표</th> | |
| 267 | - <th scope='col'>수료증</th> | |
| 268 | - </tr> | |
| 269 | - </thead> | |
| 270 | - <tbody> | |
| 271 | - <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 272 | - <c:url var="viewUrl" value="/lms/crm/CurriculumAllView.do${_BASE_PARAM}"> | |
| 273 | - <c:param name="crclId" value="${result.crclId}"/> | |
| 274 | - <c:param name="crclbId" value="${result.crclbId}"/> | |
| 275 | - <c:if test="${not empty param.pageIndex}"><c:param name="pageIndex" value="${param.pageIndex}" /></c:if> | |
| 276 | - </c:url> | |
| 277 | - <td><c:out value="${result.crclYear}"/></td> | |
| 278 | - <td><c:out value="${result.crclTermNm}"/></td> | |
| 279 | - <td><c:out value="${result.sysCodeNmPath}"/></td> | |
| 280 | - <td><c:out value="${result.crclNm}"/></td> | |
| 281 | - <td></td> | |
| 282 | - <td></td> | |
| 283 | - </tr> | |
| 284 | - </c:forEach> | |
| 285 | - <c:if test="${fn:length(resultList) == 0}"> | |
| 286 | - <tr> | |
| 287 | - <td class="listCenter" colspan="7"><spring:message code="common.nodata.msg" /></td> | |
| 288 | - </tr> | |
| 289 | - </c:if> | |
| 290 | - </tbody> | |
| 291 | - </table> | |
| 292 | -<iframe name="passSand" id="passSand" style='visibility: hidden; height: 0; width: 0; border: 0px'></iframe> | |
| 293 | - | |
| 294 | -</div> | |
| 295 | -<c:import url="/mng/template/bottom.do" charEncoding="utf-8"/> (파일 끝에 줄바꿈 문자 없음) |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovMberExcelUpload.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/MberExcelUpload.jsp
| No changes |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovMemberIndt.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/MemberIndt.jsp
| No changes |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/MemberList.jsp
... | ... | @@ -0,0 +1,153 @@ |
| 1 | +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| 3 | +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| 4 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 5 | +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |
| 6 | +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
| 7 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> | |
| 8 | +<%@ page import="egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper"%> | |
| 9 | +<c:set var="USER_INFO" value="<%=EgovUserDetailsHelper.getAuthenticatedUser(request, response) %>" /> | |
| 10 | + | |
| 11 | +<c:set var="_IMG" value="${pageContext.request.contextPath}/resources/template/manage/images"/> | |
| 12 | + | |
| 13 | +<% /*URL 정의*/ %> | |
| 14 | + <c:url var="_BASE_PARAM" value=""> | |
| 15 | + <c:param name="siteId" value="${searchVO.siteId}" /> | |
| 16 | + <c:if test="${!empty searchVO.searchCondition}"><c:param name="searchCondition" value="${searchVO.searchCondition}" /></c:if> | |
| 17 | + <c:if test="${!empty searchVO.searchKeyword}"><c:param name="searchKeyword" value="${searchVO.searchKeyword}" /></c:if> | |
| 18 | + <c:if test="${!empty searchVO.templateAt}"><c:param name="templateAt" value="${searchVO.templateAt}" /></c:if> | |
| 19 | + </c:url> | |
| 20 | +<% /*URL 정의*/ %> | |
| 21 | +<c:set var="_ACTION" value="/mng/usr/mberManage.do" /> | |
| 22 | +<c:choose> | |
| 23 | +<c:when test="${searchVO.templateAt ne 'N'}"> | |
| 24 | + <c:import url="/mng/template/top.do" charEncoding="utf-8"> | |
| 25 | + <c:param name="menu" value="MBER_MANAGE"/> | |
| 26 | + <c:param name="depth1" value="MBER_MANAGE"/> | |
| 27 | + <c:param name="depth2" value="PROF_MANAGE"/> | |
| 28 | + <c:param name="title" value="회원관리"/> | |
| 29 | + </c:import> | |
| 30 | + | |
| 31 | +<script> | |
| 32 | +$(document).ready(function(){ | |
| 33 | + | |
| 34 | +}); | |
| 35 | +</script> | |
| 36 | + <div id="cntnts"> | |
| 37 | + | |
| 38 | + <%-- 사이트 선택 주석처리 --%> | |
| 39 | + <c:if test="${USER_INFO.userSe > 10}"> | |
| 40 | + <form id="SiteListForm" name="SiteListForm" action="${_ACTION }" method="post"> | |
| 41 | + <div id="bbs_search"> | |
| 42 | + <c:import url="/mng/sym/sit/selectCommonSiteList.do"/> | |
| 43 | + </div> | |
| 44 | + </form> | |
| 45 | + </c:if> | |
| 46 | + | |
| 47 | + <form:form name="listForm" action="${_ACTION }" method="post"> | |
| 48 | + <input type="hidden" name="siteId" value="${searchVO.siteId}"/> | |
| 49 | + | |
| 50 | + <div id="bbs_search"> | |
| 51 | + <select name="searchCondition" id="searchCondition"> | |
| 52 | + <option value="1" <c:if test="${searchVO.searchCondition eq '1'}">selected="selected"</c:if>>아이디</option> | |
| 53 | + <option value="2" <c:if test="${searchVO.searchCondition eq '2'}">selected="selected"</c:if>>이름</option> | |
| 54 | + </select> | |
| 55 | + | |
| 56 | + <label><input type="text" name="searchKeyword" value="${searchVO.searchKeyword}" id="inp_text" placeholder="검색어를 입력해주세요."/></label> | |
| 57 | + <input type=image src="${_IMG}/btn/btn_search.gif" alt="검색" /> | |
| 58 | + </div> | |
| 59 | + <p class="total">총 회원 ${paginationInfo.totalRecordCount}명ㅣ 현재페이지 <strong class="green">${paginationInfo.currentPageNo}</strong>/${paginationInfo.totalPageCount}</p> | |
| 60 | + | |
| 61 | + <table class="chart_board"> | |
| 62 | + <colgroup> | |
| 63 | + <col width="70"/> | |
| 64 | + <col width="70"/> | |
| 65 | + <col width="%"/> | |
| 66 | + <col width="%"/> | |
| 67 | + <col width="%"/> | |
| 68 | + <col width="70"/> | |
| 69 | + <col width="70"/> | |
| 70 | + <col width="180"/> | |
| 71 | + <col width="180"/> | |
| 72 | + </colgroup> | |
| 73 | + <thead> | |
| 74 | + <tr> | |
| 75 | + <th>번호</th> | |
| 76 | + <th>권한</th> | |
| 77 | + <th>아이디</th> | |
| 78 | + <th>이름</th> | |
| 79 | + <th>이메일</th> | |
| 80 | + <th>잠금</th> | |
| 81 | + <th>승인여부</th> | |
| 82 | + <th>등록일</th> | |
| 83 | + <th>관리</th> | |
| 84 | + </tr> | |
| 85 | + </thead> | |
| 86 | + <tbody> | |
| 87 | + <c:forEach var="result" items="${resultList}" varStatus="status"> | |
| 88 | + <tr class="data-row"> | |
| 89 | + <td class="listtd"><fmt:formatNumber value="${paginationInfo.totalRecordCount - ((searchVO.pageIndex-1) * searchVO.pageSize) - (status.count - 1)}" type="number"/></td> | |
| 90 | + <td class="listtd"> | |
| 91 | + <c:forEach var="userSeCode" items="${userSeCodeList}"> | |
| 92 | + <c:if test="${userSeCode.code eq result.userSeCode}"><c:out value="${userSeCode.codeNm}"/></c:if> | |
| 93 | + </c:forEach> | |
| 94 | + </td> | |
| 95 | + <td class="listtd"><c:out value="${result.userId}" /></td> | |
| 96 | + <td class="listtd"><c:out value="${result.userNm}" /></td> | |
| 97 | + <td class="listtd"><c:out value="${result.emailAdres}" /></td> | |
| 98 | + <td class="listtd"></td> | |
| 99 | + <td class="listtd"><fmt:formatDate value="${result.frstRegisterPnttm}" pattern="yyyy-MM-dd"/></td> | |
| 100 | + <td class="listtd"> | |
| 101 | + <c:choose> | |
| 102 | + <c:when test="${result.confmAt eq 'Y'}">승인</c:when> | |
| 103 | + <c:otherwise>미승인</c:otherwise> | |
| 104 | + </c:choose> | |
| 105 | + </td> | |
| 106 | + <td class="listtd"> | |
| 107 | + <c:url var="viewUrl" value="/mng/usr/userSelectUpdtView.do${_BASE_PARAM}"> | |
| 108 | + <c:param name="userId" value="${result.userId}"/> | |
| 109 | + <c:if test="${not empty param.pageIndex}"><c:param name="pageIndex" value="${param.pageIndex}"/></c:if> | |
| 110 | + </c:url> | |
| 111 | + <a href="${viewUrl}"><img src="${_IMG}/btn/edit.gif"/></a> | |
| 112 | + <c:url var="delUrl" value="/mng/usr/userDelete.do${_BASE_PARAM}"> | |
| 113 | + <c:param name="userId" value="${result.userId}"/> | |
| 114 | + <c:if test="${not empty param.pageIndex}"><c:param name="pageIndex" value="${param.pageIndex}" /></c:if> | |
| 115 | + </c:url> | |
| 116 | + <a href="${delUrl}" onclick="fn_egov_delete_brdMstr(this.href);return false;"><img src="${_IMG}/btn/del.gif"/></a> | |
| 117 | + </td> | |
| 118 | + </tr> | |
| 119 | + </c:forEach> | |
| 120 | + <c:if test="${fn:length(resultList) == 0}"> | |
| 121 | + <tr> | |
| 122 | + <td class="listtd" colspan="10"> | |
| 123 | + <spring:message code="common.nodata.msg" /> | |
| 124 | + </td> | |
| 125 | + </tr> | |
| 126 | + </c:if> | |
| 127 | + | |
| 128 | + </tbody> | |
| 129 | + </table> | |
| 130 | + | |
| 131 | + <div class="btn_r"> | |
| 132 | + <a href="<c:url value='/mng/usr/mberAddView.do'/>"><img src="${_IMG}/btn/btn_regist.gif" /></a> | |
| 133 | + </div> | |
| 134 | + | |
| 135 | + <div id="paging"> | |
| 136 | + <c:url var="pageUrl" value="/mng/usr/mberManage.do${_BASE_PARAM}"> | |
| 137 | + </c:url> | |
| 138 | + | |
| 139 | + <c:if test="${not empty paginationInfo}"> | |
| 140 | + <ul> | |
| 141 | + <ui:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="${pageUrl}" /> | |
| 142 | + </ul> | |
| 143 | + </c:if> | |
| 144 | + </div> | |
| 145 | + </form:form> | |
| 146 | + </div> | |
| 147 | + <c:import url="/mng/template/bottom.do" charEncoding="utf-8"/> | |
| 148 | +</c:when> | |
| 149 | +<c:otherwise> | |
| 150 | + | |
| 151 | +</c:otherwise> | |
| 152 | +</c:choose> | |
| 153 | + |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovMemberListExcel.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/MemberListExcel.jsp
| No changes |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovMemberUpdt.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/MemberUpdt.jsp
... | ... | @@ -10,14 +10,9 @@ |
| 10 | 10 |
<c:import url="/mng/template/top.do" charEncoding="utf-8"> |
| 11 | 11 |
<c:param name="menu" value="MBER_MANAGE"/> |
| 12 | 12 |
<c:param name="depth1" value="MBER_MANAGE"/> |
| 13 |
- <c:param name="depth2" value="MBER_MANAGE"/> |
|
| 14 |
- <c:param name="validator" value="userManageVO"/> |
|
| 13 |
+ <c:param name="depth2" value="PROF_MANAGE"/> |
|
| 14 |
+ <c:param name="title" value="회원관리"/> |
|
| 15 | 15 |
</c:import> |
| 16 |
- |
|
| 17 |
-<style type="text/css"> |
|
| 18 |
- .btn_w{float:left;margin-left:5px;}
|
|
| 19 |
- .out{overflow:hidden;width:100%;}
|
|
| 20 |
-</style> |
|
| 21 | 16 |
|
| 22 | 17 |
<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/prototype.js"></script> |
| 23 | 18 |
<script type="text/javascript" src="<%=request.getContextPath()%>/ajaxtags/js/scriptaculous/scriptaculous.js"></script> |
... | ... | @@ -31,15 +26,13 @@ |
| 31 | 26 |
<c:if test='${not empty message}'>
|
| 32 | 27 |
alert("${message}");
|
| 33 | 28 |
</c:if> |
| 34 |
- |
|
| 35 |
- |
|
| 36 |
- |
|
| 29 |
+ /* |
|
| 37 | 30 |
function fnIdRcomd(){
|
| 38 | 31 |
var frm = document.userManageVO; |
| 39 |
- var url = "<c:url value='/uss/umt/cmm/EgovIdRecomendCnfirmView.do'/>"; |
|
| 32 |
+ var url = "/uss/umt/cmm/idRecomendCnfirmView.do"; |
|
| 40 | 33 |
window.open(url, 'RcomdIdCheck', 'menu=no, scrollbars=yes, width=420,height=300'); |
| 41 | 34 |
} |
| 42 |
- |
|
| 35 |
+ */ |
|
| 43 | 36 |
|
| 44 | 37 |
function fnCheckNotKorean(koreanStr){
|
| 45 | 38 |
for(var i=0;i<koreanStr.length;i++){
|
... | ... | @@ -67,29 +60,6 @@ |
| 67 | 60 |
document.board.action = "<c:url value='/cop/bbs${prefix}/selectBoardList.do'/>";
|
| 68 | 61 |
document.board.submit(); |
| 69 | 62 |
} |
| 70 |
- |
|
| 71 |
- function fn_egov_ZipSearch() {
|
|
| 72 |
- |
|
| 73 |
- var url = "<c:url value='/sym/cmm/EgovCcmZipSearchList.do'/>"; |
|
| 74 |
- window.open(url, 'zip', 'height=600,width=500,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=yes,resizable=no'); |
|
| 75 |
- } |
|
| 76 |
- |
|
| 77 |
- /* |
|
| 78 |
- function fn_egov_return_ZipCode(sZip, sAddr, vAddr1, vAddr2) {
|
|
| 79 |
- var frm = document.userManageVO; |
|
| 80 |
- frm.zip.value = sZip; |
|
| 81 |
- frm.adres.value = sAddr; |
|
| 82 |
- |
|
| 83 |
- frm.zip1.value = vAddr1; |
|
| 84 |
- frm.zip2.value = vAddr2; |
|
| 85 |
- } |
|
| 86 |
- */ |
|
| 87 |
- function fn_egov_return_ZipCode(sZip, sAddr1, sAddr2, vAddr1, vAddr2) {
|
|
| 88 |
- var frm = document.userManageVO; |
|
| 89 |
- frm.zip.value = sZip; |
|
| 90 |
- frm.adres.value = sAddr1; |
|
| 91 |
- frm.adresDetail.value = sAddr2; |
|
| 92 |
- } |
|
| 93 | 63 |
|
| 94 | 64 |
function inputDirectEmailDns(val){
|
| 95 | 65 |
document.getElementById('email2').value = val;
|
... | ... | @@ -131,18 +101,13 @@ |
| 131 | 101 |
</script> |
| 132 | 102 |
<div id="cntnts"> |
| 133 | 103 |
|
| 134 |
- <form:form commandName="userManageVO" name="userManageVO" method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/mng/usr/EgovUserSelectUpdt.do">
|
|
| 104 |
+ <form name="userManageVO" method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/mng/usr/userSelectUpdt.do">
|
|
| 135 | 105 |
<input type='hidden' name='targetId' value="<c:out value="${userManageVO.userId}"/>"/>
|
| 136 | 106 |
<input type='hidden' name='credtId' value="<c:out value="${userManageVO.credtId}"/>"/>
|
| 137 |
- <input type="hidden" name="searchSe" value="<c:out value='${searchVO.searchSe}'/>"/>
|
|
| 138 |
- <input type="hidden" name="searchCnd" value="<c:out value='${searchVO.searchCnd}'/>"/>
|
|
| 139 | 107 |
<input type="hidden" name="searchCondition" value="<c:out value='${searchVO.searchCondition}'/>"/>
|
| 140 | 108 |
<input type="hidden" name="searchKeyword" value="<c:out value='${searchVO.searchKeyword}'/>"/>
|
| 141 | 109 |
<input type="hidden" name="pageIndex" value="<c:out value='${searchVO.pageIndex}'/>"/>
|
| 142 |
- |
|
| 143 |
- |
|
| 144 |
- <form:hidden path="moblphonNo"/> |
|
| 145 |
- |
|
| 110 |
+ |
|
| 146 | 111 |
<table class="chart2"> |
| 147 | 112 |
<caption>회원관리 폼</caption> |
| 148 | 113 |
<colgroup> |
... | ... | @@ -152,10 +117,7 @@ |
| 152 | 117 |
<tbody> |
| 153 | 118 |
<tr> |
| 154 | 119 |
<th><em>*</em><label for="userNm"> 이름</label></th> |
| 155 |
- <td> |
|
| 156 |
- <form:input path="userNm" id="userNm" cssClass="inp" /> |
|
| 157 |
- <div><form:errors path="userNm" /></div> |
|
| 158 |
- </td> |
|
| 120 |
+ <td><input type="text" id="userNm" name="userNm" class="inp" value="${userManageVO.userNm}"></td>
|
|
| 159 | 121 |
<%-- <td rowspan="5" align="center"> |
| 160 | 122 |
<c:choose> |
| 161 | 123 |
<c:when test="${empty userManageVO.photoStreFileNm}">사진없음</c:when>
|
... | ... | @@ -167,19 +129,22 @@ |
| 167 | 129 |
|
| 168 | 130 |
<tr> |
| 169 | 131 |
<th><em>*</em><label for="userId"> 아이디</label></th> |
| 170 |
- <td><form:input path="userId" id="userId" readonly="true" cssClass="inp" /> <form:errors path="userId" /> |
|
| 171 |
- <!-- <a href="<c:url value='/uss/umt/cmm/EgovIdDplctCnfirm.do?checkId='/>" onclick="window.open(this.href+userManageVO.userId.value,'','height=350,width=500,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=yes,resizable=no');return false;" target="_blank"><img src="${MNG_IMG}/duplicate.gif" /></a> <strong class="org">* 아이디 변경시 반드시 중복 확인을 하여 주십시오.</strong> -->
|
|
| 132 |
+ <td> |
|
| 133 |
+ <input type="text" id="userId" name="userId" class="inp" value="${userManageVO.userId}" readonly="readonly">
|
|
| 134 |
+ <!-- <a href="/uss/umt/cmm/idDplctCnfirm.do?checkId=" onclick="window.open(this.href+userManageVO.userId.value,'','height=350,width=500,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=yes,resizable=no');return false;" target="_blank"><img src="${MNG_IMG}/duplicate.gif" /></a> <strong class="org">* 아이디 변경시 반드시 중복 확인을 하여 주십시오.</strong> -->
|
|
| 172 | 135 |
</td> |
| 173 | 136 |
</tr> |
| 174 | 137 |
|
| 175 |
- <%-- <tr> |
|
| 138 |
+ <tr> |
|
| 176 | 139 |
<th><em>*</em><label for="password"> 비밀번호</label></th> |
| 177 |
- <td><form:errors path="password" /> |
|
| 140 |
+ <td> |
|
| 141 |
+ <input type="text" id="userNm" name="userNm" class="inp" value="${userManageVO.userNm}">
|
|
| 178 | 142 |
<input type="image" src="<c:url value='${MNG_IMG}/btn/btn_pass_reissue.gif'/>" alt="비밀번호재발급" onclick="return sendPassword(document.userManageVO);"/> <strong class="org">* 자동으로 비밀번호를 생성하여 이용자에게 전송합니다.</strong>
|
| 179 | 143 |
</td> |
| 180 |
- </tr> --%> |
|
| 144 |
+ </tr> |
|
| 145 |
+ <%-- |
|
| 181 | 146 |
<tr> |
| 182 |
- <th><label for="tlphonNo">전화번호</label></th> |
|
| 147 |
+ <th><label for="tel1">전화번호</label></th> |
|
| 183 | 148 |
<td colspan="2"> |
| 184 | 149 |
<c:set var="tlphonArr" value="${fn:split(userManageVO.tlphonNo, '-')}"/>
|
| 185 | 150 |
<c:forEach items="${tlphonArr}" var="arr" varStatus="status">
|
... | ... | @@ -212,8 +177,9 @@ |
| 212 | 177 |
<input type="text" id="tel3" name="tel3" value="${tel3}" maxlength="4" class="inp tel" title="전화번호 뒷자리" />
|
| 213 | 178 |
</td> |
| 214 | 179 |
</tr> |
| 180 |
+ --%> |
|
| 215 | 181 |
<tr> |
| 216 |
- <th><label for="moblphonNo">핸드폰번호</label></th> |
|
| 182 |
+ <th><label for="phone1">핸드폰번호</label></th> |
|
| 217 | 183 |
<td colspan="2"> |
| 218 | 184 |
<c:set var="moblArr" value="${fn:split(userManageVO.moblphonNo, '-')}"/>
|
| 219 | 185 |
<c:forEach items="${moblArr}" var="arr" varStatus="status">
|
... | ... | @@ -224,18 +190,13 @@ |
| 224 | 190 |
<select id="phone1" name="phone1" title="휴대전화번호 선택"> |
| 225 | 191 |
<option value="">국번</option> |
| 226 | 192 |
<option value="010" <c:if test="${phone1 eq '010'}"> selected="selected"</c:if>>010</option>
|
| 227 |
- <option value="011" <c:if test="${phone1 eq '011'}"> selected="selected"</c:if>>011</option>
|
|
| 228 |
- <option value="016" <c:if test="${phone1 eq '016'}"> selected="selected"</c:if>>016</option>
|
|
| 229 |
- <option value="017" <c:if test="${phone1 eq '017'}"> selected="selected"</c:if>>017</option>
|
|
| 230 |
- <option value="018" <c:if test="${phone1 eq '018'}"> selected="selected"</c:if>>018</option>
|
|
| 231 |
- <option value="019" <c:if test="${phone1 eq '019'}"> selected="selected"</c:if>>019</option>
|
|
| 232 | 193 |
</select> |
| 233 | 194 |
<input type="text" id="phone2" name="phone2" value="${phone2}" maxlength="4" class="inp tel" title="휴대전화번호 가운데자리 입력" />
|
| 234 | 195 |
<input type="text" id="phone3" name="phone3" value="${phone3}" maxlength="4" class="inp tel" title="휴대전화번호 뒷자리 입력" />
|
| 235 | 196 |
</td> |
| 236 | 197 |
</tr> |
| 237 | 198 |
<tr> |
| 238 |
- <th><label for="emailHead"> 이메일</label></th> |
|
| 199 |
+ <th><label for="email1"> 이메일</label></th> |
|
| 239 | 200 |
<td colspan="2"> |
| 240 | 201 |
<c:set var="emailArr" value="${fn:split(userManageVO.emailAdres, '@')}"/>
|
| 241 | 202 |
<c:forEach items="${emailArr}" var="arr" varStatus="status">
|
... | ... | @@ -267,13 +228,7 @@ |
| 267 | 228 |
|
| 268 | 229 |
</td> |
| 269 | 230 |
</tr> |
| 270 |
- <tr> |
|
| 271 |
- <th rowspan="2"><label for="zip">주소</label></th> |
|
| 272 |
- <td colspan="2"> |
|
| 273 |
- <form:input path="zip" size="6" maxlength="6" cssClass="inp"/> |
|
| 274 |
- <a href="<c:url value='/sym/cmm/EgovCcmRdnmZipSearchList.do'/>" target="_blank" onclick="window.open(this.href,'','height=600,width=500,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=yes,resizable=no');return false;"><img src="${MNG_IMG}/btn/btn_zipcode.gif" alt=""/></a>
|
|
| 275 |
- </td> |
|
| 276 |
- </tr> |
|
| 231 |
+ <%-- |
|
| 277 | 232 |
<tr> |
| 278 | 233 |
<td> |
| 279 | 234 |
<form:input path="adres" id="adres" maxlength="100" cssClass="inp addr"/> |
... | ... | @@ -300,6 +255,8 @@ |
| 300 | 255 |
<form:radiobutton path="sexdstn" id="woman" value="2" cssClass="cho"/> <label for="woman">여</label> |
| 301 | 256 |
</td> |
| 302 | 257 |
</tr> |
| 258 |
+ --%> |
|
| 259 |
+ <%-- |
|
| 303 | 260 |
<tr> |
| 304 | 261 |
<th><label for="sms_receive">SMS수신여부</label></th> |
| 305 | 262 |
<td colspan="2"> |
... | ... | @@ -314,25 +271,22 @@ |
| 314 | 271 |
<form:radiobutton id="email_noreceive" path="emailRecptnAt" value="N" cssClass="cho"/> <label for="email_noreceive">수신거부</label> |
| 315 | 272 |
</td> |
| 316 | 273 |
</tr> |
| 274 |
+ --%> |
|
| 317 | 275 |
<tr> |
| 318 | 276 |
<th><label for="userSeCode">회원권한</label></th> |
| 319 | 277 |
<td colspan="2"> |
| 320 |
- <form:select path="userSeCode"> |
|
| 321 |
- <option value="02" <c:if test="${userManageVO.userSeCode == '02'}">selected="selected"</c:if>>일반</option>
|
|
| 322 |
- <option value="04" <c:if test="${userManageVO.userSeCode == '04'}">selected="selected"</c:if>>학부모</option>
|
|
| 323 |
- <option value="06" <c:if test="${userManageVO.userSeCode == '06'}">selected="selected"</c:if>>학생</option>
|
|
| 324 |
- <option value="07" <c:if test="${userManageVO.userSeCode == '07'}">selected="selected"</c:if>>강사</option>
|
|
| 325 |
- <option value="08" <c:if test="${userManageVO.userSeCode == '08'}">selected="selected"</c:if>>교사</option>
|
|
| 326 |
- <option value="10" <c:if test="${userManageVO.userSeCode == '10'}">selected="selected"</c:if>>사이트관리자</option>
|
|
| 327 |
- <option value="99" <c:if test="${userManageVO.userSeCode == '99'}">selected="selected"</c:if>>통합관리자</option>
|
|
| 328 |
- </form:select> |
|
| 278 |
+ <select id="userSeCode" name="userSeCode"> |
|
| 279 |
+ <c:forEach var="userSeCode" items="${userSeCodeList}">
|
|
| 280 |
+ <option value="${userSeCode.code}" <c:if test="${userSeCode.code eq userManageVO.userSeCode}">selected="selected"</c:if>><c:out value="${userSeCode.codeNm}"/></option>
|
|
| 281 |
+ </c:forEach> |
|
| 282 |
+ </select> |
|
| 329 | 283 |
</td> |
| 330 | 284 |
</tr> |
| 331 | 285 |
</tbody> |
| 332 | 286 |
</table> |
| 333 | 287 |
|
| 334 | 288 |
<div class="btn_r"> |
| 335 |
- <c:url var="listUrl" value="./EgovMberManage.do"> |
|
| 289 |
+ <c:url var="listUrl" value="./mberManage.do"> |
|
| 336 | 290 |
<c:if test="${!empty searchVO.pageIndex}"><c:param name="pageIndex" value="${searchVO.pageIndex}" /></c:if>
|
| 337 | 291 |
<c:if test="${!empty searchVO.searchCondition}"><c:param name="searchCondition" value="${searchVO.searchCondition}" /></c:if>
|
| 338 | 292 |
<c:if test="${!empty searchVO.searchKeyword}"><c:param name="searchKeyword" value="${searchVO.searchKeyword}" /></c:if>
|
... | ... | @@ -341,7 +295,7 @@ |
| 341 | 295 |
<a href="<c:out value="${listUrl}"/>"><img src="${MNG_IMG}/btn/btn_cancel.gif" alt="취소"/></a>
|
| 342 | 296 |
|
| 343 | 297 |
</div> |
| 344 |
-</form:form> |
|
| 298 |
+</form> |
|
| 345 | 299 |
<iframe name="passSand" id="passSand" style='visibility: hidden; height: 0; width: 0; border: 0px'></iframe> |
| 346 | 300 |
|
| 347 | 301 |
</div> |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/EgovMemberView.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/usr/MemberView.jsp
| No changes |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?