92 lines
3.1 KiB
Plaintext
92 lines
3.1 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/include/include.jsp"%>
|
|
<%@include file="/include/head.jsp"%>
|
|
<%@include file="/cms_for_bcb/show_top.jsp"%>
|
|
<%
|
|
if(session.getAttribute("member_type").equals("1") || session.getAttribute("member_type").equals("2") || session.getAttribute("member_type").equals("3") ){
|
|
%>
|
|
<script>
|
|
function go(){
|
|
if(document.bcb.c_title.value == ""){
|
|
alert("제목을 입력해 주세요.")
|
|
document.bcb.c_title.focus()
|
|
}else if(document.bcb.c_content.value == ""){
|
|
alert("내용을 입력해 주세요.")
|
|
document.bcb.c_content.focus()
|
|
|
|
|
|
}else{
|
|
document.bcb.method = "post"
|
|
document.bcb.target = "exec"
|
|
document.bcb.action = "insert_ok.jsp?<%=para_t%>"
|
|
document.bcb.submit()
|
|
}
|
|
}
|
|
function check_check(){
|
|
if(document.bcb.c_type_0.checked == true){
|
|
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
|
document.bcb.c_team[i].checked = true;
|
|
}
|
|
}else{
|
|
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
|
document.bcb.c_team[i].checked = false;
|
|
}
|
|
}
|
|
}
|
|
function check_check2(){
|
|
check_no = 0
|
|
for(i = 0; i < document.bcb.c_team.length; i = i +1){
|
|
if(document.bcb.c_team[i].checked == false){
|
|
check_no = 1
|
|
}
|
|
}
|
|
if(check_no == 0){
|
|
document.bcb.c_type_0.checked = true
|
|
}else{
|
|
document.bcb.c_type_0.checked = false
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
<form name="bcb" encType="multipart/form-data">
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12" style=" padding:0px 15px;">
|
|
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
|
<input name="c_title" style="width:100%;height:30px" placeholder="제목을 입력해 주세요.">
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
|
Name <%=session.getAttribute("member_name")%>
|
|
<input name="c_name" value="<%=session.getAttribute("member_name")%>" type="hidden">
|
|
</div>
|
|
|
|
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
|
<textarea name="c_content" style="width:100%;height:200px"></textarea>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="border-bottom: 1px solid #ccc; padding:10px ">
|
|
<input name="c_file" type="file" style="width:100%;height:30px" placeholder="파일을 선택해 주세요.">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-12 col-md-12" style="text-align:center;padding-top:20px">
|
|
<a href="#none" onclick="go()" style="width: 80px; line-height: 40px; text-align: center;display: inline-block; background: #5E9ECA; border: 1px solid #ffffff;border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;">등록</a>
|
|
<a href="list.jsp?<%=para_t%>" style="width: 80px; line-height: 40px; text-align: center;display: inline-block; background: #787878; border: 1px solid #ffffff; border-radius: 20px; color: #ffffff;font-weight:400;font-size: 13px;">취소</a>
|
|
</div>
|
|
</form>
|
|
<%
|
|
|
|
}else{
|
|
|
|
%>
|
|
<script>
|
|
alert("권한이 없습니다.")
|
|
location.href="/"
|
|
</script>
|
|
|
|
|
|
<%}%>
|
|
<%@include file="/cms_for_bcb/show_bottom.jsp"%>
|
|
<%@include file="/include/bottom.jsp"%>
|
|
<%@include file="/include/include_b.jsp"%>
|