130 lines
6.0 KiB
Plaintext
130 lines
6.0 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<%
|
|
b_type = request("b_type")
|
|
tmp_menuname = ""
|
|
Select case b_type
|
|
case "not"
|
|
tmp_menuname = "공지사항"
|
|
case "con"
|
|
tmp_menuname = "제안용 서류함"
|
|
case "rule"
|
|
tmp_menuname = "사내규정"
|
|
case "sug"
|
|
tmp_menuname = "업무 매뉴얼"
|
|
case "klg"
|
|
tmp_menuname = "교육창고"
|
|
case "fre"
|
|
tmp_menuname = "통계지식"
|
|
End Select
|
|
%>
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<div class="content-header">
|
|
<h1><%=tmp_menuname%></h1>
|
|
</div>
|
|
<!-- /.content-header -->
|
|
<!-- Main content -->
|
|
<div class="content-body">
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<form name="b_board" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="b_type" value="<%=b_type%>">
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<td width="10%" align="center" height="26" class='bg-dark'>제목</td>
|
|
<td height="26" style="padding:0 10 0 10">
|
|
<input type="text" name="b_subject" class='form-control'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" height="26" class='bg-dark'>첨부파일</td>
|
|
<td height="26">
|
|
<input type="file" name="txtFileName1" id="txtFileName1" style="width:calc(100% - 110px);display:inline-block;" class='form-control'>
|
|
<input type="checkbox" id="2FileCall" value="1" style="display:inline-block;" onclick="attachPM(this.id)"/>
|
|
<input type="file" name="txtFileName2" id="txtFileName2" style="width:calc(100% - 110px);display:inline-block;" class='form-control d-none'>
|
|
<input type="checkbox" id="3FileCall" value="1" style="display:inline-block;" onclick="attachPM(this.id)" class='d-none'/>
|
|
<input type="file" name="txtFileName3" id="txtFileName3" style="width:calc(100% - 110px);display:inline-block;" class='form-control d-none'>
|
|
<input type="checkbox" id="4FileCall" value="1" style="display:inline-block;" onclick="attachPM(this.id)" class='d-none'/>
|
|
<input type="file" name="txtFileName4" id="txtFileName4" style="width:calc(100% - 110px);display:inline-block;" class='form-control d-none'>
|
|
<input type="checkbox" id="5FileCall" value="1" style="display:inline-block;" onclick="attachPM(this.id)" class='d-none'/>
|
|
<input type="file" name="txtFileName5" id="txtFileName5" style="width:calc(100% - 110px);display:inline-block;" class='form-control d-none'>
|
|
<input type="checkbox" id="6FileCall" value="1" style="display:inline-block;" onclick="attachPM(this.id)" class='d-none'/>
|
|
<input type="file" name="txtFileName6" id="txtFileName6" style="width:calc(100% - 110px);display:inline-block;" class='form-control d-none'>
|
|
<input type="checkbox" id="7FileCall" value="1" style="display:inline-block;" onclick="attachPM(this.id)" class='d-none'/>
|
|
<input type="file" name="txtFileName7" id="txtFileName7" style="width:calc(100% - 110px);display:inline-block;" class='form-control d-none'>
|
|
<input type="checkbox" id="8FileCall" value="1" style="display:inline-block;" onclick="attachPM(this.id)" class='d-none'/>
|
|
<input type="file" name="txtFileName8" id="txtFileName8" style="width:calc(100% - 110px);display:inline-block;" class='form-control d-none'><font color="red">첨부파일추가</font><br />
|
|
<font class="brown">최대 20Mb 까지 첨부 가능</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" height="26" class='bg-dark'>내용</td>
|
|
<td height="26" style="padding:5">
|
|
<textarea name="b_content" rows="20" class='form-control'></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="center" style="padding:10 0 10 0;">
|
|
<img src="/images/common/btn_write.jpg" align="absmiddle" onClick="goit('1')" style="CURSOR:pointer;">
|
|
<img src="/images/common/btn_list.jpg" align="absmiddle" onClick="history.back()" style="CURSOR:pointer;">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
$(function(){
|
|
currentMenu("/knowledge/b_list.asp", "?b_type=<%=b_type%>");
|
|
});
|
|
|
|
function goit(a){
|
|
if (a == 1){
|
|
if (document.b_board.b_subject.value.trim() == ""){
|
|
alert("제목을 입력해 주세요");
|
|
document.b_board.b_subject.value = "";
|
|
document.b_board.b_subject.focus();
|
|
return;
|
|
}
|
|
if (document.b_board.b_content.value.trim() == ""){
|
|
alert("내용을 입력해 주세요");
|
|
document.b_board.b_content.value = "";
|
|
document.b_board.b_content.focus();
|
|
return;
|
|
}
|
|
document.b_board.b_subject.value = document.b_board.b_subject.value.trim().replace(/'/g, "");
|
|
document.b_board.b_content.value = document.b_board.b_content.value.trim().replace(/'/g, "");
|
|
|
|
document.b_board.action = "b_writeok.asp";
|
|
document.b_board.submit();
|
|
}
|
|
}
|
|
|
|
function attachPM(checkid){
|
|
var numb = checkid.substring(0,1);
|
|
var checkYN = $("#"+checkid).is(":checked");
|
|
|
|
if(checkYN){
|
|
$("#txtFileName"+numb).removeClass("d-none");
|
|
$("#"+(numb*1+1)+"FileCall").removeClass("d-none");
|
|
$("#"+(numb*1-1)+"FileCall").addClass("d-none");
|
|
}else{
|
|
$("#txtFileName"+numb).addClass("d-none");
|
|
$("#"+(numb*1+1)+"FileCall").addClass("d-none");
|
|
$("#"+(numb*1-1)+"FileCall").removeClass("d-none");
|
|
$("#"+(numb*1+1)+"FileCall").removeAttr("checked");
|
|
}
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |