<% 'option explicit dim pidNum,dbcon,rs,getSQL,contents,num,userip,findname,ip,sql,prev_idx, next_idx,pid,rsne,group,rs2,pageNum,totalpage,uname pidNum = request("pid") g_id = request("g_id") if pidNum = "" then response.redirect "list.asp" end if Set dbcon = Server.CreateObject("ADODB.Connection") dbcon.provider = "sqloledb" dbcon.Open Session("ConnectString") getSQL = "select * from com_gallery where pid=" & pidNum set rs = dbcon.execute (getSQL) 'response.write rs("imgcnt") 'response.end getSQL ="Update com_gallery set hitnum = hitnum + 1 where pid=" & pidNum dbcon.execute(getSQL) '================================================= ' °³Çà±â´É Ãß°¡ '================================================= contents = replace(rs("contents"),chr(13) & chr(10),"
") contents = replace(contents,"chr(124)_pipe","|") SQL = "Select Min(pid) from com_gallery where pid > " & pidNum Set rsne = dbcon.Execute(SQL) if Not rsne.EOF then prev_idx = rsne(0) end if SQL = "Select Max(pid) from com_gallery where pid < " & pidNum Set rsne = dbcon.Execute(SQL) if Not rsne.EOF then next_idx = rsne(0) end if 'sql2 = "select wname,contents,ip,wdate,uid from comment where pid=" & pidNum 'response.write sql2 'response.end 'set com = dbcon.execute (sql2) Set uploadform = Server.CreateObject("DEXT.FileUpload") 'uploadform.DefaultPath = "e:\w007735\www\prodimage" '+ÁÖÀÇ+ ¹°¸®Àû °æ·Î·Î Àû¾îÁÖ¾î¾ß ÇÑ´Ù. uploadform.DefaultPath = Server.MapPath("/") sub ExistsImage(filename) filepath = uploadform.DefaultPath & "\board\gallery_turkey\upimg\" & filename if uploadform.FileExists(filepath) then response.write "" else response.write " " end if end sub %> ÅÍŰ ÇÇÇà [INSIDE TURKEYPEOPLE]
">
 

 
 
<% if session("admin") = "~tp0191!!" then %> <% end if%>
<%=rs("pnum")%>. <%=rs("subject")%>
ÀÛ¼ºÀÚ : <%=rs("m_name")%> µî·ÏÀÏ : <%=year(rs("signdate"))&"³â "&Month(rs("signdate"))&"¿ù "&day(rs("signdate"))&"ÀÏ"%> Á¶È¸¼ö : <%=rs("hitnum")%>
<% if rs("imgcnt") < 1 then %>
<%=contents%>
<% else %>
<%call ExistsImage(rs("rnum") & "_1.jpg") %>
<%call ExistsImage(rs("rnum") & "_2.jpg") %>
<%=contents%>
<% end if %>
 ÇöÀç ±ÛÀÇ ºñ¹Ð¹øÈ£ : <%=rs("pwd")%>
  <% if prev_idx <> "" then%> ">  <%end if%> &page=<%=request("pageNum")%>">  <% if session("admin") = "~tp0191!!" then %>   <% end if %> <% if next_idx <> "" then %>  "> <% end if%>
 
<% rs.close 'com.close dbcon.close set rs = nothing 'set com = nothing set dbcon = nothing %>