This commit is contained in:
parent
71d1b0bb4b
commit
7d2bd897ae
|
|
@ -64,7 +64,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>@item.iseq @(item.istaste == 1 ? "(S)" : "")</td>
|
<td>@item.iseq @(item.istaste == 1 ? "(S)" : "")</td>
|
||||||
<td>@item.isonlinename</td>
|
<td>@item.isonlinename</td>
|
||||||
<td class="link"><a href="#" onclick="reg(@item.cmino,@item.cshape)">@item.ititle</a></td>
|
<td class="link"><a href="#" onclick="reg(@item.cmino,@item.cshape,@item.isonline)">@item.ititle</a></td>
|
||||||
<td>@item.username</td>
|
<td>@item.username</td>
|
||||||
<td>@item.udtymd</td>
|
<td>@item.udtymd</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -89,11 +89,11 @@
|
||||||
<th class="req">강의주제</th>
|
<th class="req">강의주제</th>
|
||||||
<td>@Html.TextBox("ititle", "", new { @class = "form-control", @style = "", @maxlength = "100" })</td>
|
<td>@Html.TextBox("ititle", "", new { @class = "form-control", @style = "", @maxlength = "100" })</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="troffline">
|
<tr class="troffline" id="scdLocation">
|
||||||
<th class="req">강의장소</th>
|
<th class="req">강의장소</th>
|
||||||
<td>@Html.TextBox("icontent", "", new { @class = "form-control", @style = "", @maxlength = "250" })</td>
|
<td>@Html.TextBox("icontent", "", new { @class = "form-control", @style = "", @maxlength = "250" })</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="troffline">
|
<tr class="troffline" id="scdTime">
|
||||||
<th class="req">학습시점/시간</th>
|
<th class="req">학습시점/시간</th>
|
||||||
<td>
|
<td>
|
||||||
@Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "idate" } })
|
@Html.Partial("./Partial/Date", (DateTime?)null, new ViewDataDictionary { { "name", "idate" } })
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
<td>@Html.TextBox("iseq", "", new { @class = "form-control disp-init int nocomma text-center", @style = "width: 80px;", @maxlength = "3" })</td>
|
<td>@Html.TextBox("iseq", "", new { @class = "form-control disp-init int nocomma text-center", @style = "width: 80px;", @maxlength = "3" })</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div class="findboxbtnbox">
|
<div class="findboxbtnbox" id="scdSave">
|
||||||
<a href="#" class="btn btn-primary" onclick="save();">저장</a>
|
<a href="#" class="btn btn-primary" onclick="save();">저장</a>
|
||||||
<a href="#" class="btn btn-danger" id="btndel" onclick="del();">삭제</a>
|
<a href="#" class="btn btn-danger" id="btndel" onclick="del();">삭제</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -176,7 +176,10 @@
|
||||||
$(".troffline,.tronline").hide();
|
$(".troffline,.tronline").hide();
|
||||||
if ($(this).val() == "1") {
|
if ($(this).val() == "1") {
|
||||||
$(".tronline").show();
|
$(".tronline").show();
|
||||||
} else {
|
$("#scdSave").show();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$(".troffline").show();
|
$(".troffline").show();
|
||||||
if ($("#files").html() == "") {
|
if ($("#files").html() == "") {
|
||||||
$("#filetf").show();
|
$("#filetf").show();
|
||||||
|
|
@ -189,6 +192,16 @@
|
||||||
$("#idate").show();
|
$("#idate").show();
|
||||||
$("#idate").next("i").show();
|
$("#idate").next("i").show();
|
||||||
}
|
}
|
||||||
|
if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2) {
|
||||||
|
$("#scdLocation").hide();
|
||||||
|
$("#scdTime").hide();
|
||||||
|
$("#scdSave").hide();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("#scdLocation").show();
|
||||||
|
$("#scdTime").show();
|
||||||
|
$("#scdSave").show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -259,7 +272,19 @@
|
||||||
msg2("이미 등록된 회차입니다. 다른 회차를 입력해주세요.");
|
msg2("이미 등록된 회차입니다. 다른 회차를 입력해주세요.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function reg(no, cshape) {
|
function reg(no, cshape, isonline) {
|
||||||
|
if (@Model.CM.ismaster == 0 && @Model.CM.cshape == 2 && isonline == 0) {
|
||||||
|
setTimeout(function () {
|
||||||
|
$("#scdLocation").hide();
|
||||||
|
$("#scdTime").hide();
|
||||||
|
$("#scdSave").hide(); }, 200);
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("#scdLocation").show();
|
||||||
|
$("#scdTime").show();
|
||||||
|
$("#scdSave").show();
|
||||||
|
}
|
||||||
_cmino = no;
|
_cmino = no;
|
||||||
$("#btndel,#btnpreview").hide();
|
$("#btndel,#btnpreview").hide();
|
||||||
$(".troffline,.tronline").hide();
|
$(".troffline,.tronline").hide();
|
||||||
|
|
@ -273,14 +298,15 @@
|
||||||
setrv("isonline", 0);
|
setrv("isonline", 0);
|
||||||
$(".troffline").show();
|
$(".troffline").show();
|
||||||
if ($("#files").html() == "") {
|
if ($("#files").html() == "") {
|
||||||
$("#filetf").show();
|
$("#filetf").show();
|
||||||
}
|
}
|
||||||
if (@Model.CM.ismaster == 1) {
|
if (@Model.CM.ismaster == 1) {
|
||||||
$("#iday").show();
|
$("#iday").show();
|
||||||
} else {
|
} else {
|
||||||
$("#idate").show();
|
$("#idate").show();
|
||||||
$("#idate").next("i").show();
|
$("#idate").next("i").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
setrv("istaste", 0);
|
setrv("istaste", 0);
|
||||||
$("#ititle,#icontent,#idate,#iday,#isth,#istm,#ieth,#ietm,#userno,#iseq,#fgnotf,#filetf").val("");
|
$("#ititle,#icontent,#idate,#iday,#isth,#istm,#ieth,#ietm,#userno,#iseq,#fgnotf,#filetf").val("");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue