This commit is contained in:
parent
71d1b0bb4b
commit
7d2bd897ae
|
|
@ -64,7 +64,7 @@
|
|||
<tr>
|
||||
<td>@item.iseq @(item.istaste == 1 ? "(S)" : "")</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.udtymd</td>
|
||||
</tr>
|
||||
|
|
@ -89,11 +89,11 @@
|
|||
<th class="req">강의주제</th>
|
||||
<td>@Html.TextBox("ititle", "", new { @class = "form-control", @style = "", @maxlength = "100" })</td>
|
||||
</tr>
|
||||
<tr class="troffline">
|
||||
<tr class="troffline" id="scdLocation">
|
||||
<th class="req">강의장소</th>
|
||||
<td>@Html.TextBox("icontent", "", new { @class = "form-control", @style = "", @maxlength = "250" })</td>
|
||||
</tr>
|
||||
<tr class="troffline">
|
||||
<tr class="troffline" id="scdTime">
|
||||
<th class="req">학습시점/시간</th>
|
||||
<td>
|
||||
@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>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="findboxbtnbox">
|
||||
<div class="findboxbtnbox" id="scdSave">
|
||||
<a href="#" class="btn btn-primary" onclick="save();">저장</a>
|
||||
<a href="#" class="btn btn-danger" id="btndel" onclick="del();">삭제</a>
|
||||
</div>
|
||||
|
|
@ -176,7 +176,10 @@
|
|||
$(".troffline,.tronline").hide();
|
||||
if ($(this).val() == "1") {
|
||||
$(".tronline").show();
|
||||
} else {
|
||||
$("#scdSave").show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$(".troffline").show();
|
||||
if ($("#files").html() == "") {
|
||||
$("#filetf").show();
|
||||
|
|
@ -189,6 +192,16 @@
|
|||
$("#idate").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("이미 등록된 회차입니다. 다른 회차를 입력해주세요.");
|
||||
}
|
||||
}
|
||||
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;
|
||||
$("#btndel,#btnpreview").hide();
|
||||
$(".troffline,.tronline").hide();
|
||||
|
|
@ -281,6 +306,7 @@
|
|||
$("#idate").show();
|
||||
$("#idate").next("i").show();
|
||||
}
|
||||
|
||||
}
|
||||
setrv("istaste", 0);
|
||||
$("#ititle,#icontent,#idate,#iday,#isth,#istm,#ieth,#ietm,#userno,#iseq,#fgnotf,#filetf").val("");
|
||||
|
|
|
|||
Loading…
Reference in New Issue