diff --git a/FO/Controllers/MyController.cs b/FO/Controllers/MyController.cs index 7c048ae..151f398 100644 --- a/FO/Controllers/MyController.cs +++ b/FO/Controllers/MyController.cs @@ -154,6 +154,7 @@ namespace NP.FO.Controllers } public ActionResult Lecture(VMMy vm) { + ViewBag.reporturl = GetConfig("reporturl"); vm.Lects = Dao.Get("lect.mylectures", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "cgcode", vm.intval > 0 ? TestCode3 : null }, { "cshape", vm.stringval } }); return View(vm); } diff --git a/FO/Views/My/Lecture.cshtml b/FO/Views/My/Lecture.cshtml index d363e3b..6d6d673 100644 --- a/FO/Views/My/Lecture.cshtml +++ b/FO/Views/My/Lecture.cshtml @@ -91,7 +91,8 @@ { if (d.iscomplete == 1) { -
수료
+ @*
수료
*@ +
수료
} else { @@ -124,7 +125,7 @@ if (u.iscomplete == 1) { @*
수료
*@ -
수료
+
수료
} else { @@ -170,7 +171,7 @@ } @section scripts{ - + function certification(lectno) { + if (lectno < 1) { + msg('본인의 수료증만 확인할 수 있습니다.'); + } + var pop = window.open('@ViewBag.reporturl/certification.aspx?lectno='+lectno, "certprint", "width=" + (screen.availWidth) + ", height=" + (screen.availHeight) + ", scrollbars=yes, resizable=yes, status=no, location=no, left=0, top=0"); + if (pop == null) { + msg("팝업이 차단되어 있습니다. 차단을 해제해 주세요."); + } + } + } \ No newline at end of file diff --git a/FO/Web.config b/FO/Web.config index 675f104..f8891c3 100644 --- a/FO/Web.config +++ b/FO/Web.config @@ -36,7 +36,7 @@ - +