<%=fnGetBoardImgText(BOARD_TYPE, Mid(MENU_DISPLAY_TYPE, 6, 1))%>
<%
If Not fnIsEmpty(BOARD_TYPE) Then
Dim strTopContent, objTopContent
Set objTopContent = fnGetDBValue("dbo.nx_BOARD_SETUP", "content, board_type", " and board_seq = '"& BOARD_TYPE &"' and del_dt is null", "", "", "")
If Not(objTopContent.BOF and objTopContent.EOF) THEN
strTopContent = objTopContent("content")
If objTopContent("board_type") <> "GENERAL" And objTopContent("board_type") <> "SUBMAIN" And objTopContent("board_type") <> "CUSTOM" Then
Response.write fnHtmlToChar(strTopContent)
End If
End If
End If
%>
3. °øÅë ÇÔ¼ö ¼öÁ¤
ÆÄÀϸí: /common/func/funcContent.nx
¿øº»: Function fnGetRootBoardSeq(board_seq)
¿øº» ÄÚµå À§¿¡ ¾Æ·¡ ÄÚµå »ðÀÔ
' °Ô½ÃÆǸí À̹ÌÁö ÃßÃâ
Function fnGetBoardImgText(board_seq, display_type)
Dim objView, strReturn
Set objView = fnGetDBValue("dbo.nx_BOARD_SETUP", "board_type, board_nm, attach_nm2, attach_nm3", " and board_seq ='"& board_seq &"' and del_dt is null", "", "", "")
If Not (objView.BOF and objView.EOF) Then
If display_type = "I" Then
strReturn = ""
Else
strReturn = objView("board_nm")
End If
End If
fnGetBoardImgText = strReturn
End Function
¾Æ·¡ ÇÔ¼ö º¯°æ - ÇÔ¼ö¸í °Ë»ö ÈÄ ÇØ´ç ÇÔ¼ö¸¦ ¾Æ·¡ ³»¿ëÀ¸·Î º¯°æÇÔ.
' ·çÆ® °Ô½ÃÆÇ ÅؽºÆ® ÃßÃâ
Function fnGetRootBoardImgText(board_seq, display_type)
Dim objView, strReturn
Set objView = fnGetDBValue("dbo.nx_BOARD_SETUP", "board_type, board_nm, attach_nm2, attach_nm3", " and board_seq ='"& board_seq &"' and del_dt is null", "", "", "")
If Not (objView.BOF and objView.EOF) Then
If display_type = "I" Then
If objView("board_type") = "SITEMAP" Then
strReturn = ""
Else
strReturn = ""
End If
Else
strReturn = objView("board_nm")
End If
End If
fnGetRootBoardImgText = strReturn
End Function
ÁÂÃø ¸Þ´º ¾È³ª¿À´Â ¹®Á¦
ÇÔ¼ö¸í: Function fnLeftMenu(current_board_code)
´ë»óÄÚµå: menu_wheres = " and lng = '"& Session("LNG") &"' and del_dt is null"
º¯°æÄÚµå: menu_wheres = " and lng = '"& Session("LNG") &"' and del_dt is null and board_code is not null"
4. ´Ù¿î·Îµå ÇÁ·Î±×·¥ °³¼±
/common/js/common.js ÆÄÀÏÀÇ ÇÔ¼ö º¯°æ
ÇÔ¼ö¸í: function jsDownload(i_fullname)
º¯°æÄÚµå:
function jsDownload(i_fullname) {
location.href = "/contents/common/download/download.nx?FullName=" + i_fullname;
}
5. ¸Þ´º¾ó ´Ù¿î·Îµå
/common/js/common.js ¾Æ·¡ ÄÚµå Ãß°¡
//------------------------------------------------------------------------------
// ¸Þ´º¾ó
//------------------------------------------------------------------------------
function jsDownloadMenual() {
location.href = "/contents/common/download/downloadManual.nx";
}
¤¤ ¸Þ´º¾ó ¸µÅ© ÄÚµå
°ü¸®ÀÚ ¸Þ´º¾ó
6. ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö º¯°æ
/common/js/common.js
¾Æ·¡ ÇÔ¼ö¸íÀ¸·Î °Ë»ö ÈÄ ÇÔ¼ö ÀÚü º¯°æ
function jsContentMappingModify(bbs_seq, page_str_menu ,board_title, m_url) {
var winName = "winControlContent";
var winWidth, winHeight;
winWidth = 1100;
if(m_url.indexOf("general.nx") >=1)
winHeight = 750;
else
winHeight = 500;
jsCenterPopup(winWidth, winHeight);
jsPopup("", winName, "width="+winWidth+", height="+winHeight+", status=yes, scrollbars=yes ,top="+winTop+",left="+winLeft);
document.frmParam.action_flag.value = "MODIFY";
document.frmParam.bbs_seq.value = bbs_seq;
document.frmParam.page_str_menu.value = page_str_menu;
document.frmParam.board_title.value = board_title;
document.frmParam.target = winName;
document.frmParam.action = m_url;
document.frmParam.submit();
}
/common/js/base.js Á¦ÀÏ ÇÏ´Ü¿¡ Ãß°¡
/* Àü¿ªº¯¼ö */
var winTop, winLeft
function jsCenterPopup(frameWidht, frameHeight) {
winLeft = (screen.width - frameWidht) / 2;
winTop = (screen.height - frameHeight) / 2;
}
7. °Ô½ÃÆÇ °æ·Î ¸¸µé±â ¼öÁ¤
/common/func/funcContent.nx
'===========================================================================
' °Ô½ÃÆÇ °æ·Î ¸¸µé±â
'===========================================================================
Function fnBoardTitle(board_seq)
Dim objView, objView2
Set objView = fnGetDBValue("dbo.nx_BOARD_SETUP", "ref_seq, board_nm", " and board_seq ='"& board_seq &"' and del_dt is null", "", "", "")
If Not (objView.BOF and objView.EOF) Then
If fnIsEmpty(strListTitle) Then
strListTitle = objView("board_nm")
Else
strListTitle = objView("board_nm") &" ¡æ " & strListTitle
End If
depth_cnt = depth_cnt + 1
If objView("ref_seq") > 0 Then
Call fnBoardTitle(objView("ref_seq"))
End If
End If
End Function
8. °¶·¯¸® °Ô½ÃÆÇ ¸ñ·Ï º¸ÀÓ¿ä¼Ò ¼öÁ¤(»ç¿ëÀÚ)