114 lines
4.5 KiB
Plaintext
114 lines
4.5 KiB
Plaintext
@model NP.Model.VMCRoom
|
|
@{
|
|
|
|
}
|
|
<h3 class="lctTitle3">과제 안내</h3>
|
|
<dl class="teskCont">
|
|
<dt>과제내용</dt>
|
|
<dd>
|
|
<table class="evaDetail">
|
|
<tbody>
|
|
@*<tr>
|
|
<th>과제회차</th>
|
|
<td>1회</td>
|
|
</tr>*@
|
|
<tr>
|
|
<th>과제제목</th>
|
|
<td>@Model.LectSD.sdname</td>
|
|
</tr>
|
|
<tr>
|
|
<th>제출시간</th>
|
|
<td>@Model.LectSD.sstime.ToString("yy-MM-dd") 00:00 ~ @Model.LectSD.setime.ToString("yy-MM-dd") 23:59</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
@Html.Raw((Model.LectSD.sddesc ?? "").Replace(System.Environment.NewLine, "<br/>"))
|
|
</td>
|
|
</tr>
|
|
@if (Model.LectSD.sdfgno != null && Model.FileList.Where(w => w.fgno == Model.LectSD.sdfgno).Count() > 0)
|
|
{
|
|
<tr>
|
|
<td colspan="2" class="teskFile">
|
|
@foreach (var f in Model.FileList.Where(w => w.fgno == Model.LectSD.sdfgno))
|
|
{
|
|
<a href="/focommon/downfile?fno=@f.fileno" class="tskfBtn">@f.orgname</a><br />
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<form id="sform" method="post" enctype="multipart/form-data">
|
|
<dl class="teskCont">
|
|
<dt>제출내용</dt>
|
|
<dd>
|
|
<table class="evaDetail">
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="2" class="teskTxt">
|
|
<textarea name="atext" id="atext" cols="30" rows="10" class="teskTxt">@(Model.LectSD.atext??"")</textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div class="teskFilex">
|
|
@Html.Partial("./Partial/file", Model.FileList.Where(w => w.fgno == Model.LectSD.fgno).ToList(), new ViewDataDictionary { { "fgn", "fgno" }, { "fgv", Model.LectSD.fgno ?? 0 }, { "filename", "file1" }, { "filecount", 1 }, { "read", Model.LectSD.checktime == null && Model.LectSD.sstime < DateTime.Now && Model.LectSD.setime > DateTime.Now ? 0 : 1 },{"issubject",1 } })
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<ul class="lctBtn col1">
|
|
@if (Model.LectSD.sstime < DateTime.Now && Model.LectSD.setime > DateTime.Now && Model.LectSD.checktime == null)
|
|
{
|
|
<li><a href="#" class="bk sm" onclick="save()">제출</a></li>
|
|
}
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
<input type="hidden" name="sdno" value="@Model.LectSD.sdno" />
|
|
<input type="hidden" name="lectno" value="@Model.LectSD.lectno" />
|
|
<input type="hidden" name="cmno" value="@Model.LectSD.cmno" />
|
|
</form>
|
|
@if (Model.LectSD.checktime != null)
|
|
{
|
|
<dl class="teskCont">
|
|
<dt>평가결과 : <span>@(Model.LectSD.cpoint)점</span></dt>
|
|
<dd><table class="evaDetail"><tbody><tr><td>@Html.Raw((Model.LectSD.feedb ?? "").Replace(System.Environment.NewLine, "<br/>").Replace("\n","<br/>"))</td></tr></tbody></table></dd>
|
|
</dl>
|
|
}
|
|
<form id="mform" action="/CRoom/EstimationSubject" method="get">
|
|
@Html.HiddenFor(m => m.croomlectno)
|
|
@Html.HiddenFor(m => m.croomcmno)
|
|
@Html.HiddenFor(m => m.tabidx)
|
|
@Html.HiddenFor(m => m.estno)
|
|
</form>
|
|
@section scriptsHeader{
|
|
@Html.Partial("./Partial/filescript")
|
|
}
|
|
@section scripts{
|
|
<script>
|
|
$(document).ready(function () {
|
|
|
|
});
|
|
function save() {
|
|
if (getBytes(val("atext")) < 1) {
|
|
msg("제출내용을 입력해주세요.");
|
|
} else {
|
|
confirmtoggle(true, "제출하시겠습니까?", "savego()");
|
|
}
|
|
}
|
|
function savego() {
|
|
capfileform("/fcommon/subjectsave", "sform", "cbsave");
|
|
}
|
|
function cbsave() {
|
|
if (capResult.code == 1000) {
|
|
msg("저장되었습니다.", null, null, null, "submit()");
|
|
} else {
|
|
msg("운영자에게 문의해주세요.");
|
|
}
|
|
}
|
|
</script>
|
|
} |