YNICTE/FO/Views/CRoom/EstimationDiscuss.cshtml

94 lines
2.9 KiB
Plaintext
Raw Permalink Normal View History

2020-10-12 14:39:23 +09:00
@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>*@
2020-10-12 14:39:23 +09:00
<tr>
<th>토론제목</th>
<td>@Model.LectSD.sdname</td>
</tr>
<tr>
<th>토론시간</th>
<td>수강 종료일 (@Model.LectSD.edate.Value.ToString("yyyy-MM-dd")) 이내</td>
2020-10-12 14:39:23 +09:00
</tr>
<tr>
<td colspan="2">
@Html.Raw((Model.LectSD.sddesc ?? "").Replace(System.Environment.NewLine, "<br />"))
2020-10-12 14:39:23 +09:00
</td>
</tr>
@if (Model.LectSD.sdfgno != null && Model.FileList.Where(w => w.fgno == Model.LectSD.sdfgno).Count() > 0)
{
<tr>
<td colspan="2" class="msgFile">
@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>
}
2020-10-12 14:39:23 +09:00
</tbody>
</table>
</dd>
</dl>
<dl class="teskCont">
<dt>
토론참여
<a href="#" onclick="reg()">글쓰기</a>
</dt>
<dd>
<table class="dbtList">
<tbody>
@foreach (var d in Model.LectSDBoards)
{
<tr>
<th>
<a href="#" onclick="view(@d.bno)">
<h5>@d.subject</h5>
<dl>
<dd>@d.username</dd>
<dd>@d.cdtymd</dd>
<dd>조회 : @d.rcount</dd>
</dl>
</a>
</th>
<td>@d.ccount</td>
</tr>
}
</tbody>
</table>
</dd>
</dl>
<form id="mform" action="/CRoom/EstimationDiscuss" method="get">
@Html.HiddenFor(m => m.croomlectno)
@Html.HiddenFor(m => m.croomcmno)
@Html.HiddenFor(m => m.tabidx)
@Html.HiddenFor(m => m.estno)
<input type="hidden" name="BNo" id="BNo" value="0" />
</form>
@section scriptsHeader{
}
@section scripts{
<script>
$(document).ready(function () {
});
function reg() {
$("#mform").attr("action", "/CRoom/DiscussReg").submit();
}
function view(bno) {
setv("BNo", bno);
$("#mform").attr("action", "/CRoom/DiscussView").submit();
}
</script>
}