<% 'Call UserAuth(Session("id")) '### ±ÇÇÑ Ã¼Å©(ȸ¿ø ·Î±×ÀÎÀ» ¾ÈÇßÀ¸¸é µ¹¾Æ°¡±â) Dim idx, categoryName, subject, contents, writeDate, hit Dim fileName1, fileSize1, fileName2, fileSize2, fileName3, fileSize3, view_href Dim SQL, RS, tableName Dim gotopage, totalpage, i, listnum, fileName Dim strNew, filePath Dim field, keyWord gotopage = Trim(Request("gotopage")) search_category = Request("search_category") searchString = Request("searchString") searchString = InjectionDefender(searchString) 'ÀÎÁ§¼Ç °ø°Ý ¹æ¾î tableName = "TB_CSCENTER_GIFT" '### DB Å×À̺í¸í filePath = "/data/" & tableName If gotopage = "" Then gotopage = 1 Else gotopage = Cint(gotopage) End If If search_category <> "" And searchString <> "" Then search_qry = " and "&search_category&" like '%"&searchString&"%'" End If SQL = "SELECT idx, subject, contents, fileName1, fileName2, fileName3, writeDate, hit, branchCode FROM " & tableName & " A where 1=1 " & search_qry SQL = SQL & " ORDER BY writeDate DESC" Set RS = Dbcon.Execute(SQL) RS.PageSize = 9 'ÆäÀÌÁö´ç ¸®½ºÆ® ¼ö totalpage = RS.PageCount 'ÃÑ ÆäÀÌÁö ¼ö i=1 %>
À¯¾Ø¾ÆÀÌ °í°´¸¸Á·¼¾ÅÍ

  • Home
  • °í°´¸¸Á·¼¾ÅÍ
  • °í°´¼±¹°ÇÔ
    <% If RS.eof Then %>
  • ÀÚ·á°¡ ¾ø½À´Ï´Ù.
  • <% Else RS.AbsolutePage = gotopage 'ÁöÁ¤µÈ ÆäÀÌÁö·Î ÇöÀç À§Ä¡ À̵¿ listnum = RS.RecordCount-(gotopage-1)*RS.PageSize Do Until RS.eof Or i > RS.PageSize idx = RS("idx") subject = RS("subject") : If Len(subject) > 29 Then subject = Left(subject, 28) & ".." : contents = RS("contents") : If Len(contents) > 100 Then contents = Left(contents, 100) & ".." : fileName1 = RS("fileName1") fileName2 = RS("fileName2") fileName3 = RS("fileName3") writeDate = DateValue(RS("writeDate")) branch_Code = RS("branchCode") hit = RS("hit") view_href = "cscenter02_view.asp?idx=" & idx '»õ±Û New ¾ÆÀÌÄÜ Ç¥½Ã If GetNewBoardTime(24, RS("writeDate")) = True Then strNew = "" Else strNew = "" End If %>
  • <%=subject%>
    <%=Left(subject, 18)%> >
  • <% i = i + 1 listnum = listnum - 1 RS.MoveNext Loop End If RS.Close Set RS = Nothing %>
<% Set listNum = New PageNavi listNum.Initial "cscenter02.asp?vUserId="&vUserId&"&branchCode="&branchCode&"&vSid1="&vSid1&"&vSid2="&vSid2,10,gotopage,totalpage,search_category,searchString,optionstr,"","" listNum.pagePrint Set listNum = nothing %> <% If Session("admin_div") > 0 Then %> ±Û¾²±â <% End If %>