|
 |
<%
Dim BBS_Category
BBS_Category = Trim(Request("BBS_Category"))
TOP_MENU__ = "CONTENT" '//¿ÞÂÊ ¼Ò¸Þ´º ¼³Á¤ º¯¼ö
IF (Request("LinkID") = "-1") Then %>
<%
Else
Dim dbConn
SET dbConn = GetDBConn()
'Page¿Í PIDº¯¼ö¸¦ ¹Þ´Â´Ù.
Dim Page, PID, LinkID, TreeID
Page = Request("Page")
PID = Request("PID")
LinkID = Request("LinkID")
TreeID = Request("TreeID")
%>
<%
' Á¶È¸¼ö¸¦ 1À» Áõ°¡½ÃŲ´Ù.
Dim sqlVisit, sqlContent
sqlVisit = "Update E_bbs Set BBS_Visited = BBS_Visited + 1 WHERE BBS_Category = '"&BBS_Category&"' AND BBS_No = " & PID
dbconn.Execute(sqlVisit)
sqlContent = "Select BBS_No, BBS_MID, BBS_TreeID, BBS_ChildID, BBS_LinkID, BBS_Subject, "
sqlContent = sqlContent & " BBS_Editor, BBS_Email, BBS_Visited, BBS_Date, BBS_Text, BBS_DocTypeCd, BBS_TreeCheck, BBS_PASSWD, file_name "
sqlContent = sqlContent & " From E_bbs Where BBS_Category = '"&BBS_Category&"' AND BBS_No = " & PID
Dim rsContent, BBS_NO, disp_content
Set rsContent = rsGetDBResult(dbconn,sqlContent)
BBS_NO = rsContent("BBS_No")
'2000/11/6 »ðÀÔ
disp_content = rsContent("BBS_Text")
' disp_content = Replace(rsContent("BBS_Text"), chr(13) & chr(10), " ")
' disp_content = Replace(rsContent("BBS_Text"), " ", " ")
' ÀÌÀü±Û º¸±â¿Í ´ÙÀ½±Û º¸±â¸¦ À§ÇØ LinkID¸¦ ±¸ÇÑ´Ù.
' ÃÖ¼Ò LinkIDÀ϶§´Â ÀÌÀü±Û·Î °¥¼ö ¾ø°í
' ÃÖ´ë LinkIDÀ϶§´Â ´ÙÀ½±Û·Î °¥¼ö ¾ø´Ù.
Dim sqlNextLID, rsNextLID
sqlNextLID = "Select Max(BBS_LinkID) as NextLinkID From E_bbs Where BBS_Category = '"&BBS_Category&"' AND BBS_LinkID < " & LinkID
Set rsNextLID = rsGetDBResult(dbconn,sqlNextLID)
'response.write sqlNextLID
'response.end
' ´ÙÀ½ ±Û¹øÈ£°¡ ÀÖÀ¸¸é ±¸ÇÏ°í ¾Æ´Ï¸é -1·Î ÇÑ´Ù.
Dim NextLinkID, sqlNextPID, rsNextPID, NextPID
If rsNextLID.EOF = true and rsNextLID.BOF = true then
NextLinkID = -1
Else
'Response.Write rsNextLID("NextLinkID") & "!!!"
NextLinkID = rsNextLID("NextLinkID")
If isnull(NextLinkID) then
NextLinkID = -1
Else
sqlNextPID = "Select BBS_No From E_bbs Where BBS_Category = '"&BBS_Category&"' AND BBS_LinkID = " &NextLinkID
Set rsNextPID = rsGetDBResult(dbconn,sqlNextPID)
NextPID = rsNextPID("BBS_No")
Set rsNextPID = Nothing
'response.write sqlNextPID
'response.end
End if
End if
Set rsNextLID = Nothing
Dim sqlPreLID, rsPreLID
sqlPreLID = "Select Min(BBS_LinkID) as PreLinkID From E_bbs Where BBS_Category = '"&BBS_Category&"' AND BBS_LinkID > " & LinkID
Set rsPreLID = rsGetDBResult(dbconn,sqlPreLID)
' ÀÌÀü ±Û¹øÈ£°¡ ÀÖÀ¸¸é ±¸ÇÏ°í ¾Æ´Ï¸é -1·Î ÇÑ´Ù.
Dim PreLinkID, sqlPrePID, rsPrePID, PrePID
if rsPreLID.EOF = true and rsPreLID.BOF = true then
PreLinkID = -1
else
'Response.Write rsPreLID("PreLinkID") & "!!!"
PreLinkID = rsPreLID("PreLinkID")
if isnull(PreLinkID) then
PreLinkID = -1
else
sqlPrePID = "Select BBS_No From E_bbs Where BBS_Category = '"&BBS_Category&"' AND BBS_LinkID = " & PreLinkID
Set rsPrePID = rsGetDBResult(dbconn,sqlPrePID)
PrePID = rsPrePID("BBS_No")
Set rsPrePID = Nothing
end if
end if
Set rsPreLID = Nothing
%>
<%
Dim sPage
Select Case BBS_Category
Case "ticket"
sPage = "Ç×°ø±Ç ¹®ÀÇ"
Case "travel"
sPage = "¿©ÇàÈıâ"
Case "qna"
sPage = "ÀÚÀ¯°Ô½ÃÆÇ"
End Select
%>
<%'Start ========================================================================================================================%>
Subject : <%= rsContent("BBS_Subject") %> |
<%= replace(disp_content, chr(10), " ")%>
|
<%IF rsContent("file_name") <> "" Then%>
<%End IF%>
|
<%
rsContent.close
Set rsContent = Nothing
SET dbconn = Nothing
End If
%>
<%'End =========================================================================================================================%>
|
 |
|