%
' ###########################################
' ##### How to say
' ###########################################
' ## How to say ÁøÇàÁßÀÏ ¶§ : ÇöÀç ÁøÇàÁßÀÎ ÇÑÁÙÅäÅ© ³ëÃâ
' ## How to say ÁøÇàÇÏÁö ¾ÊÀ» ¶§ : ¹«ÀÛÀ§·Î ÇÑÁÙÅäÅ© ³ëÃâ(isWrite=0)
' ###########################################
dim seq ,contents, isWrite
dim QUnique : QUnique = "40000000"
set db = new dbclass
db.sql = "select isWrite from popup_info where popNo=2" ' ±Û¾²±â ¿©ºÎ üũ
'db.view
set rs = db.execrs() : db.clear()
if not (rs.eof or rs.bof) then
isWrite = rs(0)
else
isWrite = 0
end if
if isWrite = 1 then
' ±Û¾²±âÀÎ »óÅÂÀ϶§ : ¸¶Áö¸·¿¡ ÀúÀåÇÑ ÇÑÁÙÅäÅ© °¡Á®¿À±â
db.sql = "SELECT top 1 * FROM Board where QUnique ='"&QUnique&"' and QDelFg = 0 order by Qidx desc"
'db.view
set rs = db.execrs()
else
' ±Û¾²±â°¡ ¾Æ´Ñ»óÅÂÀ϶§ : ¹«ÀÛÀ§·Î °¡Á®¿À±â
dim cnt, rndNo
db.sql = "SELECT COUNT(*) FROM Board where QUnique ='"&QUnique&"' and QDelFg = 0"
set rs = db.execrs() : db.clear()
cnt = rs(0) ' ÃÑ ±Û ¼ö
randomize() ' ·£´ý ÃʱâÈ
rndNo = Int((cnt * Rnd) + 1) ' ¹«ÀÛÀ§ ¼ö ±¸Çϱâ
' ¹«ÀÛÀ§·Î ÃßÃâµÈ ¹«ÀÛÀ§ ¹øÈ£¿¡ ¸Â´Â ÇÑÁÙÅäÅ© °¡Á®¿À±â
db.sql = "SELECT top "&rndNo&" * FROM Board where QUnique ='"&QUnique&"' and QDelFg = 0 order by Qidx desc"
'db.view
set rs = db.execrs()
rs.movelast ' ¹«ÀÛÀ§ ·¹ÄÚµå Æ÷ÀÎÅÍÀÎ ¸¶Áö¸· ·¹ÄÚµå·Î À̵¿
end if
set db = nothing
if not( rs.eof or rs.bof ) then
seq = rs("qidx")
contents = rs("QContent")
contents = replace(contents,"http://file.themavens.co.kr","")
else
response.write ""
response.end
end if
%>
<%
' ±Û¾²±â °¡´É»óÅÂ(admin¿¡¼ ¼³Á¤)¸¸ ±Û¾²±â°¡ Ç¥½ÃµÊ
if isWrite=1 then
%>
|
<%if US.GETS("WEBID") = "" then%>
<%else%>
<%end if%>
|
<%end if%>
<%
'set db = new dbclass
' db.sql = "SELECT * FROM BoardComment WHERE QUnique=" & seq & " AND CDelFg=0;"
' 'db.view()
' set rs = db.execrs()
'set db = nothing
Set Listing = new ListClass
Listing.SetLow = 11
Listing.Columm = " * "
Listing.Short = " cidx DESC "
Listing.Table = " BoardComment "
Listing.CountSql = "select count(*) from BoardComment where QUnique=" & seq & " AND CDelFg=0 and cdetc2=0 ;"
Listing.Condition = " QUnique=" & seq & " AND CDelFg=0 and cdetc2=0 "
'Listing.Dbview = true
Set rs = Listing.execrs()
%>
<%if not (rs.eof or rs.bof) then%>
|
| How to say |
ÀûÀýÇÏÁö ¸øÇÑ ±ÛÀº °ü¸®ÀÚ¿¡ ÀÇÇØ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù. |
|
<%do until rs.eof%>
| ¡æ |
<%=rs("MID")%> |
<%=Replace(rs("CContent"), chr(13), " ")%> |
<%=left(rs("CDate"),10)%> |
<%if rs("MID") = US.GETS("WEBID") then%>
x
<%end if%>
|
|
<%rs.movenext:loop%>
<%end if%>
<%=fn.framecommand5(0)%>