´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net)
ID¿Í Password¸¦ ÀÔ·ÂÇϼ¼¿ä.
ÀÔ±¹Çϱâ
|
¿µÁÖ±Ç ½Åû
¸öºÎ¸² °ñ¶ó°ñ¶ó
¼Ò±Ù¼Ò±Ù
µµ¶õµµ¶õ
³«¼¸¶´ç
Âø°¢ÇѾÆÀÌ
¼ýÀÚ¸ÂÃß±â
¼Ò¿øºô±â
ÈçÀû³²±â±â
²Þ¼Ó¿©Çà
Ä£±¸Áý ³î·¯°¡±â
¸ðµÎµå¸²´ÔÀÇ È¨
î¤éÞ´ÔÀÇ È¨
Çö¿ì´ÔÀÇ È¨
º°¾ÆÇØ´ÔÀÇ È¨
ÇÞ»ì´ÔÀÇ È¨
À̳ª´Ï´ÔÀÇ È¨
À¯¸®¾Ë´ÔÀÇ È¨
³È³ÈÀÌ´ÔÀÇ È¨
²ÀÁö´ÔÀÇ È¨
´ë¼º´ÔÀÇ È¨
µî·ÏÇϽǶ§´Â ÇʼöÇ׸ñÀ» ¸ðµÎ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.
À̸§
*
HTML »ç¿ë
Á¦¸ñ
*
¼±ÅÃ
ÀÚÀÛ
»ç¶û
À¯¸Ó
ÀÚÀ¯
̵̧
¾Ë¸²
Áú¹®
±âŸ
³»¿ë
*
> > > > <% > > > > Const adOpenForwardOnly = 0 > > Const adOpenKeyset = 1 > > Const adOpenDynamic = 2 > > Const adOpenStatic = 3 > > > > Dim board_no, board_count, minyoung, secret > > Dim naya, heeya, strSQL > > > > board_no = request("board_no") > > current_no = request("board_no") > > minyoung = request("minyoung") > > secret = request("secret") > > naya = request("naya") > > heeya = trim(request("heeya")) > > board_count = request("board_count") > > 'board_userip = request("board_userip") > > 'board_useros = request("board_useros") > > board_pass = "" > > > > > > strSQL = "SELECT * FROM newsboard " & _ > > "WHERE board_no = " & board_no > > > > Set rs = Server.CreateObject("ADODB.Recordset") > > rs.Open strSQL,DbCon,adOpenKeyset > > ====>ÀÌ ºÎºÐ¿¡¼ ¿¡·¯ÀÓ´Ù. > > if rs.EOF or rs.BOF then > > rs.Close > > Set rs = nothing > > DbCon.Close > > Set DbCon = nothing > > > > %> > > > > > > > > <% > > else > > > > Dim board_num, board_step, board_id, board_writer > > Dim board_email, board_homepage, board_title > > Dim board_memo, board_day, board_time, current_no > > Dim current_num, current_step, current_id', board_userip, board_useros > > > > board_num = rs("board_num") > > board_step = rs("board_step") > > board_id = trim(rs("board_id")) > > board_writer = trim(rs("board_writer")) > > board_email = trim(rs("board_email")) > > board_homepage = trim(rs("board_homepage")) > > ' board_title = Replace(trim(rs("board_title")), "''", "'") > > board_title =trim(rs("board_title")) > > ' board_memo = Replace(trim(rs("board_memo")), "''", "'") > > board_memo = trim(rs("board_memo")) > > > > board_day = trim(rs("board_day")) > > board_time = trim(rs("board_time")) > > userip=trim(rs("board_userip")) > > 'response.write "»ç¿ëÀÚ IP :"& userip &"
" > > useros=trim(rs("board_useros")) > > 'response.write "»ç¿ëÀÚ os :"& useros &"
" > > board_day = left(board_day,4) & "-" & Mid(board_day,5,2) & _ > > "-" & right(board_day,2) > > > > strHour = left(board_time,2) > > > > if Cint(strHour) = 0 then > > strHour="¿ÀÀü" & " " & "12" > > elseif Cint(strHour) = 12 then > > strHour="¿ÀÈÄ" & " " & "12" > > elseif Cint(strHour) > 12 then > > strHour="¿ÀÈÄ" & " " & Cstr(Cint(strHour) - 12) > > else > > strHour="¿ÀÀü" & " " & strHour > > end if > > > > board_time = strHour & ":" & Mid(board_time,3,2) & _ > > ":" & right(board_time,2) > > > > if trim(rs("board_html"))<>"1" then > > 'html tagÁ¦ÇÑ > > board_memo = Replace(board_memo, " ", chr(32)) > > board_memo = Replace(board_memo, chr(32)+chr(32), "  ") > > board_memo = Replace(board_memo, chr(13), "
") > > > > board_memo = Replace(board_memo, "<", "<") > > board_memo = Replace(board_memo, ">", ">") > > board_memo = Replace(board_memo, "<BR>", "
") > > board_memo = Replace(board_memo, "&", "&") > > else > > board_memo = replace(RS("board_memo"),chr(13)&chr(10),"
") > > end if > > > > rs.Close > > > > ' ¼±ÅÃ±Û °¡Á®¿À±â ³¡ > > ' ÇöÀç ±Û¹øÈ£ > > current_id = board_id > > current_no = board_no > > current_num = board_num > > current_step = board_step > > > > ' ÀÌÀü±Û, ´ÙÀ½±Û ±¸Çϱâ > > Dim nextno, prevno, temp, nextcount, prevcount, tempcount > > nextno = 0 > > prevno = 0 > > temp = 0 > > tempcount = 0 > > nextcount = 0 > > prevcount = 0 > > '================================================= > > page=Request("page") > > > > if request("page")="" then > > page=1 > > end if > > '================================================= > > if secret = "" then ' ±â³É ¸®½ºÆ®¸¸ º¼ ¶§ > > strSQL = "SELECT board_no, board_count " & _ > > "FROM newsboard" > > else ' °Ë»öÀÏ ¶§ > > strSQL = "SELECT board_no, board_count " & _ > > "FROM newsboard WHERE " & minyoung & _ > > " LIKE '%" & secret & "%'" > > end if > > > > if naya = "" then '±âº»°ª > > naya = "board_num" > > heeya = "desc" > > end if > > > > strSQL = strSQL & " ORDER BY " & naya > > strSQL = strSQL & " " > > strSQL = strSQL & heeya > > > > if naya <> "board_writer" then > > strSQL = strSQL & ", board_step" > > end if > > > > rs.Open strSQL,DbCon,adOpenKeyset > > rs.MoveFirst > > > > Do While Not rs.EOF > > > > if int(rs("board_no")) = int(current_no) then > > nextno = temp > > nextcount = tempcount > > rs.MoveNext > > if Not rs.EOF then > > prevno = rs("board_no") > > prevcount = rs("board_count") > > else > > rs.MovePrevious > > end if > > else > > temp = rs("board_no") > > tempcount = rs("board_count") > > end if > > > > rs.MoveNext > > Loop > > > > rs.close > > set rs=nothing > > ' ÀÌÀü±Û ±¸Çϱ⠳¡ > > board_count = board_count + 1 > > > > ' ÀÐÀº Ƚ¼ö¸¦ Áõ°¡ÇÕ´Ï´Ù. > > strSQL = "UPDATE newsboard " & _ > > "SET board_count = " & board_count & _ > > " WHERE board_no = "& board_no > > > > DbCon.Execute(strSQL) > > end if > > %> > > > > > > > >
ÇÏÀÌ »ê¾÷(ÁÖ) TFT-LCD : ÀÛ¼ºµÈ ±Û º¸±â
> >
> > > > > >
> >
> >
> >
> > No. <%= board_num %> <%= board_day %>
> > > > > > > > > > > >
> >
> >
<%= board_title %> > >
> >
> >
> >
> >
> >
> > > > > >
> >
> >
> >
> > > > > >
> > <%=board_memo%> > >
> > Ãâó [ <% Response.Write board_writer %> ] > >
> >
> > > >
> > > >
> >
> >
> >
> >
> >
> >
> >
> >
> > > > <% > > 'response.write "»ç¿ëÀÚ IP : "& userip &" " > > 'response.write "»ç¿ëÀÚ OS : "& useros &"
" > > %>
> >
> >
> >
> >
> >
> > <% if prevno <> 0 then %> > >
> > <% end if %> > >
> >
> > <% if trim(User_id) = trim(current_id) then %> > >
> > <% if NeverDeleted then %> > >
> > <% > > end if > > end if > > %> > >
> >
> > <% > > if nextno <> 0 then > > %> > >
> > <% > > end if > > %> > >
> >
> >
> > > > > > <% > > strSQL = "SELECT * FROM newsboard " > > > > if naya = "" then '±âº»°ª > > naya = "board_num" > > heeya = "desc" > > end if > > > > strSQL = strSQL & " ORDER BY " & naya > > strSQL = strSQL & " " > > strSQL = strSQL & heeya > > > > if naya <> "board_writer" then > > strSQL = strSQL & ", board_step" > > end if > > > > '¿©±â±îÁö QueryÀÛ¼º ³¡ ÁöÁ¤µÈ Query·Î °Ë»ö > > > > Set rs = Server.CreateObject("ADODB.Recordset") > > rs.pagesize=5 ' *****************************************»ó¼¼º¸±â ¸®½ºÆ® Ãâ·Â ºÎºÐ ¶óÀÎ ¼ö ÁöÁ¤ > > rs.Open strSQL,Dbcon,1 > > 'rs.Open strSQL,Dbcon,1,1 > > > > '·¹Äڵ尡 Çϳªµµ ¾ø´Ù¸é > > if rs.EOF or rs.BOF then > > DataExist = False > > else '·¹Äڵ尡 ÀÖ´Ù¸é > > DataExist = True > > end if > > > > %> > >
> > > >
> >
°ü·Ã ±Û ¸®½ºÆ®
> > > >
> > > >
> >
> >
> > <% > > > > if DataExist = True then > > > > > > totalrecord=rs.RecordCount > > totalpage=rs.PageCount > > rs.AbsolutePage = page > > ' response.write page > > '================================================= > > > > %> > > > >
> >
> >
> >
> >
> >
¹øÈ£
> >
Á¦¸ñ
> >
Ãâó
> >
Á¶È¸
> >
ÀÛ¼ºÀÏ
> >
> >
<% if cint(rs("board_step"))>0 then%> > >
> >
<%if int(current_no) = int(board_no) then%>
<%else%> <%end if%>
> > <%else%> > >
> >
<%if int(current_no) = int(board_no) then%>
<%else%><%=board_num%><%end if%>
> > <%end if%> > >
> > > > <% > > 'if left(board_day,10) = left(boar_time,10) then ' 1ÀÏ ´ÜÀ§·Î ¿Ã¶ó¿Â¿¡ New Ç¥½ÃÇÒ ¶§ > > if datediff("d",board_day,now)=<1 then ' > > response.write "
" > > else > > response.write " " > > end if > > > > %> > > > > <% > > if naya <> "board_writer" then > > if board_step > 0 then '¸¸¾à ÀÌ°ÍÀÌ ´äº¯¾²±â¶ó¸é.... > > > > wid= cint(board_step)*10 > > > > if Len(board_title) >= 30 then 'Á¦¸ñÀÌ 30¹®ÀÚ±æÀ̺¸´Ù ±æ´Ù¸é > > board_title = left(board_title, 29) & "..." > > end if > > %>
¹ø ±ÛÀÇ ´äº¯> <%=board_title%>
> > <% > > else '¸¸¾à ÀÌ°ÍÀÌ ±×³É ±Û¾²±â¶ó¸é.... > > > > if Len(board_title) >= 25 then 'Á¦¸ñÀÌ 30¹®ÀÚ±æÀ̺¸´Ù ±æ´Ù¸é > > board_title = left(board_title, 24) & "..." > > end if > > %> > >
<%=board_title%>
> > <% > > end if > > else > > if board_step <> 0 then > > 'Á¦¸ñÀÌ ÁöÁ¤µÈ ¹®ÀÚ±æÀ̺¸´Ù ±æ´Ù¸é - ´äº¯½Ã¿¡ ó¸®... > > if Len(board_title) >= 30then > > board_title = left(board_title, 29) & "..." > > end if > > %> > > [<%=board_num%>]
> >
<%=board_title%>
> > <% > > else > > 'Á¦¸ñÀÌ ÁöÁ¤µÈ ¹®ÀÚ±æÀ̺¸´Ù ±æ´Ù¸é > > if Len(board_title) >= 25 then > > board_title = left(board_title, 24) & "..." > > end if > > %> > >
<%=board_title%>
> > <% > > end if > > end if > > %> > >
> > > >
> > <% > > 'if board_email <> "" then > > ' Response.Write "
" & _ > > ' board_writer & "
" > > 'else > > Response.Write board_writer > > 'end if > > %> > >
> > > >
<%=board_count%>
> > > >
<%=board_day%>
> >
> > <% > > ' N = N + 1 > > rs.movenext > > i=i+1 > > loop > > > > rs.Close > > DbCon.Close > > set rs = nothing > > %> > >
> >
> >
> >
> >
> >
> >
> > > > > > <% '»õ·Ó°Ô ó¸®ÇÑ ·ÎÁ÷ - °£ÆíÇÏ°Ô ¹«°Ô¸¦ ÁÙÀÓ > > blockPage=int((page-1)/10)*10+1 > > if blockPage = 1 then%> <%else%>
ÀÌÀü
[<%end if%> [ <%i=1 > > Do until i>10 or blockPage > totalpage > > if blockPage = int(page) then > > %>
<%=blockPage%>
<%else%> > >
<%=blockPage%>
> > <%end if > > blockPage = blockPage + 1 > > i = i +1 > > loop > > if blockPage > totalpage then%>]<%else > > %>]
´ÙÀ½
<%end if%> > > > >
> >
> >
Total -
<%= totalRecord %>
Record (
<%= page %>
/
<%= totalpage %>)
> >
> > <% else %> > > > >
> >
> >
> >
> > <% > > rs.Close > > DbCon.Close > > set rs = nothing > > set DbCon = nothing > > end if > > %> > >
> >
> >
> >
> > > >
> >
> >
> >
> > > > > > ´ÙÀ½°ú °°Àº »ó¼¼º¸±â¿¡¼ ÇÏ´Ü¿¡ ´Ù½Ã ¸®½ºÆ® ¸ñ·ÏÀ» Ãâ·ÂÇÏ·ÁÇÕ´Ï´Ù.¸®½ºÆ®¿¡´Â ¹®Á¦°¡ ¾øÁö¸¸ > > [ÀÌÀü10]123[´ÙÀ½10]À» ±¸ÇöÇϴµ¥,´ÙÀ½°ú °°Àº ¿¡·¯°¡ ³ª¿À´Â±º¿ä. > > ¿À·ù Çü½Ä: > > Microsoft OLE DB Provider for ODBC Drivers (0x80040E21) > > ODBC driver does not support the requested properties. > > /moon/news/news_read_dis.asp, line 35 > ----------------------------------------------------------- > > SQL ¹®ÀåÀÇ ¿À·ùÀÔ´Ï´Ù... > > strSQLÀ» ȸ鿡 Ãâ·ÂÇؼ SQL ¹®Àå¿¡ ÀÌ»óÀÌ ¾ø³ª È®ÀÎÇØ º¸¼¼¿ä. > > -----------------------------------------------------------
Ãß°¡ÇÒ À̹ÌÁö¸¦ ÀÔ·ÂÇϼ¼¿ä.
À̹ÌÁö 1
À̹ÌÁö¼³¸í 1
Ãß°¡ÇÒ ÀڷḦ ÀÔ·ÂÇϼ¼¿ä.
ÀÚ·á 1
ÀÚ·á¼³¸í 1
Ãß°¡ÇÒ ½ÎÀÌÆ®¸¦ ÀÔ·ÂÇϼ¼¿ä.
°ü·Ã½ÎÀÌÆ® 1
½ÎÀÌÆ®¼³¸í 1
Password
*