<% kind = request("kind") if kind ="" then kind="01" page = request("page") search = request("search") search_string = request("search_string") tb = "skill" page_Url = "re2-in_1.html?tb="&tb&"&search="&search&"&kind="&kind&"&search_string="&search_string&"&page=" select case kind case "01" Response.write "

파워인터뷰

" case "11" Response.write "

기획특집

" case "02" Response.write "

현장취재

" ' case "03" ' title_img = "img/bar_3.gif" ' title_txt = "농업기술정보 > 월별관리" case "12" Response.write "

귀농·귀촌

" case "13" Response.write "

강소농

" case "14" Response.write "

6차산업

" case "05" Response.write "

업체탐방

" case "04" Response.write "

현장의발걸음

" case "06" Response.write "

과학영농

" ' case "07" ' title_img = "img/bar_7.gif" ' title_txt = "농업기술정보 > 생활과문화" ' case "08" ' title_img = "img/bar_8.gif" ' title_txt = "농업기술정보 > 유통" ' case "09" ' title_img = "img/bar_11.gif" ' title_txt = "농자재정보" end select %> <% t_string = request("t_string") if t_string<>"" then search = "title" search_string = t_string end if if search <> "" then if kind<>"" then sql_script = " where kind='"&kind&"' and "&search&" like '%"&search_string&"%'" else sql_script = " where "&search&" like '%"&search_string&"%'" end if else if kind<>"" then sql_script=" where kind='"&kind&"'" else sql_script="" end if end if if page = "" then page = 1 end if sql="select * from "&tb&" "&sql_script&" order by idx desc" dbrec.pagesize=9 dbrec.open sql,dbcon,1 %> <% if dbrec.eof then %> 등록된 게시물이 없습니다. <% Else %>
<% interview_str ="" count = 1 num=dbrec.recordcount-((page-1)*dbrec.pagesize) dbrec.absolutepage = page do until dbrec.eof or count > dbrec.pagesize contents2 = brReplace(dbrec("contents2")) contents2 = cut_text(contents2,30) title=dbrec("title") title = cut_text(title,10) If count Mod 3 = 1 Then interview_str = "" ElseIf count Mod 3 = 2 Then interview_str = "-2" ElseIf count Mod 3 = 0 Then interview_str = "-3" End if %> <% If count Mod 3 = 0 Then %>
<% End if count = count + 1 Num = Num -1 dbrec.MoveNext loop end if %>
<%pageListing page,dbrec.pagecount%>