"); } /********************************************************************************************************** 글쓰기 */ //데이터등록체크 function WriteCheck() { var f = document.WriteForm; if (f.isRoot.value == "0" && f.mbid.value == "" && f.BB_NAME.value == "") { alert('\n이름을 입력해 주세요. \n'); f.BB_NAME.focus(); return false; } if (f.BB_EMAIL.value) { if ( f.BB_EMAIL.value.length <= 6 || f.BB_EMAIL.value.indexOf ('@', 0) == -1 || f.BB_EMAIL.value.indexOf ('.', 0) == -1) { alert('이메일주소가 올바르지 않습니다. \n'); f.BB_EMAIL.value = ""; f.BB_EMAIL.focus(); return false; } } if (f.BB_SUBJECT.value == "") { alert('\n제목을 입력해 주세요. \n'); f.BB_SUBJECT.focus(); return false; } if (f.is_category.value) { if (!f.BB_CATEGORY.value) { alert('\n' + f.BB_CATEGORY.options[0].text + '을(를) 선택해 주세요. \n'); f.BB_CATEGORY.focus(); //일반셀렉트사용시 return false; } } if (CheckWords(f.BB_SUBJECT.value) != '' || CheckWords(f.BB_CONTENT.value) != '') { alert('\n관리자에 의해 제한된 단어가 사용되었습니다. \n'); return false; } if (f.BB_SECRET.checked == true) { if (f.BB_PASS.value == "") { alert('\n비공개글로 등록할 경우에는 반드시 비밀번호를 입력해 주셔야 합니다. \n'); f.BB_PASS.focus(); return false; } } var uptmp = 0; if (f.useup.value != '0') { f.BB_FILE.value = getUploadFiles(); //업로드체크 uptmp = 1; } if (f.uselk.value != '0') { f.BB_LINK.value = getLinkFiles(); //링크체크 uptmp = 1; } if (uptmp == 0) { alert('이미지파일이 첨부되지 않았습니다. '); return false; } f.Nparam.value = NparamSetting(); } //옵션출력체크 function OptionCheck() { var home = document.getElementById('Option_Url'); var prev = document.getElementById('Option_Preview'); var img = document.getElementById('Option_Img'); var f = document.WriteForm; if(!f.mbid.value) { if (home.style.display == 'none') { home.style.display = 'block'; } else { home.style.display = 'none'; } } if (prev.style.display == 'none') { prev.style.display = 'block'; } else { prev.style.display = 'none'; } if (img.src.indexOf('dot_option.gif') != -1) { img.src = img.src.replace('dot_option.gif','dot_option1.gif'); } else { img.src = img.src.replace('dot_option1.gif','dot_option.gif'); } } //이동경로체크 function NparamSetting() { var pam = getThisUrl(); pam += '&query=' + getUriString('query'); pam += '&write_type=' + getUriString('write_type'); pam += '&uid=' + getUriString('uid'); pam += '&p=' + getUriString('p'); return pam; } /********************************************************************************************************** 멀티체크 */ var Multi_Check_Uid = ''; function Multi_Check(obj,e,skindir,isRoot,isAdmin) { var ml = document.getElementById('MultiCheckLayer'); var tg = ''; var x = (e.pageX) ? e.pageX-300 : document.body.scrollLeft+event.x; var y = (e.pageY) ? e.pageY-340 : document.body.scrollTop+event.y; x += 10; y -= 20; if (obj.checked == true) Multi_Check_Uid += obj.value + ';'; else Multi_Check_Uid = Multi_Check_Uid.replace(obj.value + ';' , ''); if (Multi_Check_Uid) { var multiarr = Multi_Check_Uid.split(';'); tg += "
");
document.write("");
document.write("[에디터]");
}
}
/********************************************************************************************************** 첨부,링크 파일 */
//파일첨부체크
function getUpfileNumIcon(enable , files , num , down , table, uid, skin , link , where , cols)
{
if (num > 0)
{
var string = "";
string += "";
string += "
첨부이미지 " + num + "개";
string += "(조회 "+commaSplit(down)+"건)";
string += "";
document.write(string);
}
}
//파일레이어 show
function showLayerUpfile(enable , files , table , uid , where , cols , num , link , skin , down , e)
{
if (!enable)
{
alert('죄송합니다. 다운로드 권한이 없습니다. ');
return false;
}
var x = (e.pageX) ? e.pageX-300 : document.body.scrollLeft+event.x;
var y = (e.pageY) ? e.pageY-340 : document.body.scrollTop+event.y;
var to = "";
var tl = document.getElementById('tmp_Upfile_Show_Layer');
var ly = LayerUpfile(enable , files + link , table, uid , where , cols , 'return');
var wt = parseInt(num/cols) > 0 ? cols * 220 : (num%cols) * 220;
wt = num == 1 ? 270 : wt;
tl.style.position = 'absolute';
tl.style.left = x+"px";
tl.style.top = y+"px";
to += "";
to += " 첨부파일 " + num + "개";
to += "(다운로드 "+commaSplit(down)+"건)";
to += " | 닫기 ";
to += " |
| " + ly + " | |


|
|
총 목록수 : 9 건 정렬 : 제목 | 조회 | 등록일
| 번호 | 선택 | 사진 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|---|
| 9 | MBC 뉴스 '사랑의 점심 나누기'(시원식품) | 관리자 | 652 | |||
| 8 | 시원식품 영상 | 관리자 | 651 | |||
| 7 | 한벌클럽창립4주년(회장 채수창) "MBC,CJB 봉사뉴스" | 관리자 | 508 | |||
| 6 | 한벌라이온스클럽 봉사 (회장 채수창) | 관리자 | 414 | |||
| 5 | CJB 뉴스 '자랑스런 기업인'( 대표이사 채수창) | 관리자 | 710 | |||
| 4 | SBS '고향이보인다'(청풍명월) | 관리자 | 548 | |||
| 3 | CJB '행복한아침'(청풍명월) | 관리자 | 555 | |||
| 2 | MBC 뉴스'충북경제희망리포트'(시원식품) | 관리자 | 561 | |||
| 1 | MBC 뉴스 '중소기업박람회'(시원식품) | 관리자 | 459 |
");
document.write("");
document.write("[에디터]");
}
}
/********************************************************************************************************** 첨부,링크 파일 */
//파일첨부체크
function getUpfileNumIcon(enable , files , num , down , table, uid, skin , link , where , cols)
{
if (num > 0)
{
var string = "";
string += "";
string += "
첨부이미지 " + num + "개";
string += "(조회 "+commaSplit(down)+"건)";
string += "";
document.write(string);
}
}
//파일레이어 show
function showLayerUpfile(enable , files , table , uid , where , cols , num , link , skin , down , e)
{
if (!enable)
{
alert('죄송합니다. 다운로드 권한이 없습니다. ');
return false;
}
var x = (e.pageX) ? e.pageX-300 : document.body.scrollLeft+event.x;
var y = (e.pageY) ? e.pageY-340 : document.body.scrollTop+event.y;
var to = "";
var tl = document.getElementById('tmp_Upfile_Show_Layer');
var ly = LayerUpfile(enable , files + link , table, uid , where , cols , 'return');
var wt = parseInt(num/cols) > 0 ? cols * 220 : (num%cols) * 220;
wt = num == 1 ? 270 : wt;
tl.style.position = 'absolute';
tl.style.left = x+"px";
tl.style.top = y+"px";
to += "