37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
@model NP.Model.VMMy
|
|
@{
|
|
|
|
}
|
|
<ul class="notifi">
|
|
@foreach (var d in Model.Datas.Where(w => w.dtype == 4))
|
|
{
|
|
<li>
|
|
<h5 style="cursor: pointer" onclick="location.href='/CRoom/Index?croomlectno=@d.longval'" data-href="/CRoom/Index?croomlectno=@d.longval">
|
|
@d.strval (@(d.intval3)반) @string.Format((d.intval < 3 ? "출석마감일이" : d.intval == 3 ? "진행평가마감일이" : d.intval == 4 ? "최종평가마감일이" : d.intval == 5 ? "과제마감일이" : d.intval == 6 ? "토론마감일이" : d.intval == 7 ? "강의평가마감일이" : d.intval == 8 ? "교육일이" : d.intval == 9 ? "시험일이" : "") + " {0}일 남았습니다.", d.intval2)
|
|
</h5>
|
|
<span>@d.time.ToString("MM/dd HH:mm")</span>
|
|
<a href="#" onclick="delalaram(@d.longval2, this)">삭제</a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
<div style="padding: 20px; text-align: center; @(Model.Datas.Count() < 1?"":"display:none")">-아직 학습알림이 없습니다.</div>
|
|
@section scripts{
|
|
<script>
|
|
$(document).ready(function () {
|
|
|
|
});
|
|
function delalaram(alno, a) {
|
|
_a = a;
|
|
capp("/fcommon/alarmdel", { alno: alno }, "cbdelalarm");
|
|
}
|
|
function cbdelalarm() {
|
|
if (capResult.code == 1000) {
|
|
$(_a).closest("li").fadeOut(500);
|
|
setTimeout(function () {
|
|
$(_a).closest("li").remove();
|
|
}, 500);
|
|
}
|
|
}
|
|
</script>
|
|
}
|