<% dim depth1, depth2, loca1, loca2 depth1=5 depth2=1 loca1="CONTACTUS" loca3="ä¿ë¾È³»" %>

<% srchkey = Request.QueryString("srchkey") srchval = Request.QueryString("srchval") if srchkey <> "" then addqry = " and "&srchkey&" like '%"&srchval&"%' " end if Select Case Request.QueryString("page") Case "" 'óÀ½ÆäÀÌÁö CurrentPage = 1 Case Else CurrentPage = cint(Request.QueryString("page")) End Select qstr = "&srchkey="&srchkey&"&srchval="&srchval&"" pagesize = 10 Set DbRec =Server.CreateObject("ADODB.Recordset") Set DbRec1 =Server.CreateObject("ADODB.Recordset") Source = "SELECT * FROM incruit WHERE 1=1 "&addqry&" ORDER BY writedate DESC" DbRec.Open Source, db, 1 DbRec.PageSize = pagesize lastpage= DbRec.PageCount if not DbRec.eof then DbRec.AbsolutePage = Currentpage end if sql= "SELECT total=count(*) FROM incruit WHERE 1=1 "&addqry&"" DbRec1.Open sql, db max=DbRec1("total") bunho= max-DbRec.PageSize*(currentpage-1) %>
<% If Not (DbRec.EOF and DbRec.BOF) then i = 1 Do until DbRec.EOF Or i> DbRec.PageSize if DbRec("status") then status = "¸ðÁýÁß" else status = "Á¾·á" end if %> <% DbRec.movenext if not (DbRec.EOF Or i> DbRec.PageSize) then %> <% end if i = i + 1 bunho=bunho-1 Loop set AnsRS = Nothing %> <% else %> <% end if %>
<%=bunho%> <%if len(DbRec("subject")) > 20 then%> ¤tpage=<%=currentpage%>&srchkey=<%=srchkey%>&srchval=<%=srchval%>"><%= left(DbRec("subject"),20)%>... <%else%> ¤tpage=<%=currentpage%>&srchkey=<%=srchkey%>&srchval=<%=srchval%>"><%= DbRec("subject")%> <%end if%> <%=DbRec("workto")%> <%=DbRec("gubun")%> [<%=left(DbRec("writedate"),10)%>] [<%=left(DbRec("enddate"),10)%>] <%=status%>
µî·ÏµÈ ÀÚ·á°¡ ¾ø½À´Ï´Ù.
<%call paging_load( CurrentPage, pagesize, max, qstr, "", "", "", "" )%>