This commit is contained in:
kdh0120 2020-11-20 08:48:47 +00:00
parent 91cec89731
commit b0f9576bac
3 changed files with 17 additions and 6 deletions

View File

@ -154,6 +154,7 @@ namespace NP.FO.Controllers
} }
public ActionResult Lecture(VMMy vm) public ActionResult Lecture(VMMy vm)
{ {
ViewBag.reporturl = GetConfig("reporturl");
vm.Lects = Dao.Get<Lect>("lect.mylectures", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "cgcode", vm.intval > 0 ? TestCode3 : null }, { "cshape", vm.stringval } }); vm.Lects = Dao.Get<Lect>("lect.mylectures", new System.Collections.Hashtable() { { "userno", SUserInfo.UserNo }, { "cgcode", vm.intval > 0 ? TestCode3 : null }, { "cshape", vm.stringval } });
return View(vm); return View(vm);
} }

View File

@ -91,7 +91,8 @@
{ {
if (d.iscomplete == 1) if (d.iscomplete == 1)
{ {
<dl><dd class="blu"><a href="#" onclick="pc(@d.lectno,@d.userno)">수료</a></dd></dl> @*<dl><dd class="blu"><a href="#" onclick="pc(@d.lectno,@d.userno)">수료</a></dd></dl>*@
<dl><dd class="blu"><a href="#" onclick="javascript: certification(@(d.lectno));">수료</a></dd></dl>
} }
else else
{ {
@ -124,7 +125,7 @@
if (u.iscomplete == 1) if (u.iscomplete == 1)
{ {
@*<dd class="blu"><a href="#" onclick="pc(@(u.userno == ViewBag.SSUserNo? u.lectno : 0))">수료</a></dd>*@ @*<dd class="blu"><a href="#" onclick="pc(@(u.userno == ViewBag.SSUserNo? u.lectno : 0))">수료</a></dd>*@
<dd class="blu"><a href="#" onclick="pc(@(u.lectno),@(u.userno))">수료</a></dd> <dd class="blu"><a href="#" onclick="javascript: certification(@(d.lectno))">수료</a></dd>
} }
else else
{ {
@ -170,7 +171,7 @@
} }
@section scripts{ @section scripts{
<script> <script>
var vLectno; var vLectno;
$(document).ready(function () { $(document).ready(function () {
$(".lctQr > span").click(function () { $(".lctQr > span").click(function () {
@ -268,5 +269,14 @@
return; return;
} }
} }
</script> 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("팝업이 차단되어 있습니다. 차단을 해제해 주세요.");
}
}
</script>
} }

View File

@ -36,7 +36,7 @@
<add key="reporturl" value="http://ynicter.nptc.kr" /> <add key="reporturl" value="http://ynicter.nptc.kr" />
<!--<add key="masteremail" value="edu@ynicte.or.kr;mail.ynicte.or.kr;25;ynicte@ynicte.or.kr;k7758870!%" />--> <!--<add key="masteremail" value="edu@ynicte.or.kr;mail.ynicte.or.kr;25;ynicte@ynicte.or.kr;k7758870!%" />-->
<add key="masteremail" value="yicte@cte.or.kr;smtp.daum.net;465;yicte2020;yicte04003" /> <add key="masteremail" value="yicte@cte.or.kr;smtp.daum.net;465;yicte2020;yicte04003" />
<add key="usessl" value="N" /> <add key="usessl" value="Y" />
<add key="ssonoauth" value="Y" /> <add key="ssonoauth" value="Y" />
<add key="daokey" value="ynictelms2020" /> <add key="daokey" value="ynictelms2020" />
<!--<add key="configpath" value="Product" />--> <!--<add key="configpath" value="Product" />-->