123 lines
4.9 KiB
Plaintext
123 lines
4.9 KiB
Plaintext
@model NP.Model.VMCRoom
|
|
@{
|
|
|
|
}
|
|
<h3 class="lctTitle3">토론 안내</h3>
|
|
<dl class="teskCont" style="padding-bottom: 0;">
|
|
<dt>토론 주제 <a class="discusshide" style="position: relative; display: inline; color: #fff" href="#" onclick="hidediscuss(this)"><img id="discussimg" src="~/img/mypage/title_arrow.png" alt="보이기/닫기" /></a></dt>
|
|
<dd class="discusshide" id="dd1">
|
|
<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>
|
|
</tbody>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="teskCont">
|
|
<dt>토론 참여</dt>
|
|
</dl>
|
|
<form id="sform" enctype="multipart/form-data" method="post">
|
|
<table class="qnaWrite">
|
|
<tr>
|
|
<th>제목</th>
|
|
<td><div class="qnawTitle"><input type="text" name="subject" id="subject" value="@Model.LectSDBoard.subject" maxlength="150" /></div></td>
|
|
</tr>
|
|
<tr>
|
|
<th>내용</th>
|
|
<td><textarea name="contents" id="contents" cols="30" rows="10" style="padding: 15px;">@Model.LectSDBoard.contents</textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<th>첨부파일</th>
|
|
<td>
|
|
<label>※ 파일크기는 5MB를 초과해서는 안됩니다</label><br />
|
|
@Html.Partial("./Partial/file", Model.FileList.Where(w => w.fgno == Model.LectSDBoard.fgno).ToList(), new ViewDataDictionary { { "fgn", "fgno" }, { "fgv", Model.LectSDBoard.fgno ?? 0 }, { "filename", "file1" }, { "filecount", 10 }, { "read", Model.LectSD.checktime == null && Model.LectSD.sstime < DateTime.Now && Model.LectSD.setime > DateTime.Now ? 0 : 1 }, { "maxsize", 5242880 }, { "maxname", "5 Mega " } })
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<input type="hidden" name="lectno" value="@Model.LectSD.lectno" />
|
|
<input type="hidden" name="sdno" value="@Model.LectSD.sdno" />
|
|
<input type="hidden" name="bno" value="@Model.LectSDBoard.bno" />
|
|
</form>
|
|
<ul class="lctBtn col2">
|
|
@if (Model.LectSD.sstime < DateTime.Now && Model.LectSD.setime > DateTime.Now && Model.LectSD.checktime == null)
|
|
{
|
|
<li><a href="#" class="sm bk" onclick="save()">저장</a></li>
|
|
}
|
|
<li><a href="#" onclick="setv('BNo', 0);$('#mform').submit()" class="sm">목록</a></li>
|
|
</ul>
|
|
<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)
|
|
@Html.HiddenFor(m => m.BNo)
|
|
</form>
|
|
@section styles{
|
|
<style type="text/css">
|
|
.discusshide {
|
|
display: none;
|
|
}
|
|
.teskCont > dt a {
|
|
background-color:transparent;
|
|
}
|
|
</style>
|
|
}
|
|
@section scriptsHeader{
|
|
@Html.Partial("./Partial/filescript")
|
|
}
|
|
@section scripts{
|
|
<script>
|
|
function hidediscuss(a) {
|
|
if ($(a).hasClass('discusshide')) {
|
|
$("#dd1").removeClass('discusshide');
|
|
$(a).removeClass('discusshide');
|
|
$("#discussimg").attr("src", "/img/mypage/title_arrow_on.png");
|
|
|
|
} else {
|
|
$(a).addClass('discusshide');
|
|
$("#dd1").addClass('discusshide');
|
|
$("#discussimg").attr("src", "/img/mypage/title_arrow.png");
|
|
}
|
|
}
|
|
$(document).ready(function () {
|
|
|
|
});
|
|
function save() {
|
|
if (check("subject", null, "제목을 입력해주세요.")) { }
|
|
else if (getBytes(val("contents")) < 1) { focus("contents"); msg("내용을 입력해주세요."); }
|
|
else {
|
|
confirmtoggle(true, "등록하시겠습니까?", "savego()");
|
|
}
|
|
}
|
|
function savego() {
|
|
capfileform("/fcommon/lectsdboardsave", "sform", "cbsave");
|
|
}
|
|
function cbsave() {
|
|
if (capResult.code == 1000) {
|
|
if (@Model.LectSDBoard.bno == 0) {
|
|
setv("BNo", capResult.obj);
|
|
}
|
|
$("#mform").attr("action", "/CRoom/DiscussReg");
|
|
msg("등록되었습니다.", null, null, null, "submit()");
|
|
} else {
|
|
msg("운영자에게 문의해주세요.");
|
|
}
|
|
}
|
|
</script>
|
|
} |