고객센터 : 031-548-0481 /호스팅문의:1644-2646 /서버호스팅문의 : 070-7573-5515/ 평일근무 : 09:00~18:00 / 토/일요일, 공휴일 휴무

1:1 고객상담문의 FAQ 자동답변

나노코팅 나노엔

구매안내

  • 아티보드 2.0
  • 아티보드 3.0
  • 아티카페
  • 파일공유사이트
솔루션 > 커뮤니티 > 사용팁

사용팁|

메인에 글뽑기;;; 함수로 만들어봤는데;;;|아티보드2.0

  • 조성범
  • |조회수 : 4129
  • |추천수 : 0
  • |2007-12-12 오후 6:46:31

<%@LANGUAGE = VBSCRIPT%>
<%Option Explicit%>
<!-- #include virtual = "/Dbconnect/Dbconnect.asp"-->
<!-- #include virtual = "/Library/Function.asp" -->
<OBJECT RUNAT="Server" PROGID="ADODB.Connection" id="Function_Main_Con"></OBJECT>
<%
 Function Index_List_Ok(Function_Board_Text,Function_Board_Name,Function_Board_Count,Function_Board_Img,Function_Left_Cut,Function_New_Img)
 Function_Main_Con.Open DbConnect
  Dim Function_Main_Rs, Function_Main_Sql, Function_Main_C, Function_Main_C_For
  Dim Function_dateRegDate, Function_GetCutSubject, Function_strSubject

  Function_Main_Sql = "Select Top " & Function_Board_Count & " "&_
          "intSeq, strSubject, dateRegDate " &_
          "from mplus_board " &_
          "where " &_
          "strBoardID = '" & Function_Board_Name & "' AND [bitDelete] = 0 AND [bitnotice] = 0 " &_
          "order by dateRegDate desc"
          '[bitBad] = 0 AND [bitCheck] = 1 order by dateRegDate desc")

  set Function_Main_Rs = Server.CreateObject("Adodb.Recordset")
  Function_Main_Rs.Open Function_Main_Sql,Function_Main_Con,1

  If Function_Main_Rs.Eof Then
   response.write "<tr><td align='center'>등록 된 " & Function_Board_Text & "이 없습니다.</td></tr>"
   For Function_Main_C_For = 2 To Function_Board_Count
    response.write "<tr><td>&nbsp;</td></tr>"
   Next
  Else
   Function_Main_C = 0
   Do Until Function_Main_Rs.Eof
    Function_Main_C = Function_Main_C + 1
    response.write "<tr><td width='12' height='18' align='center' valign='middle'>"
    response.write "<img src='" & Function_Board_Img & "' border='0' /></td>"
    response.write "<td width='*' height='18'>"
    response.write "<a href=java**:Function_View_Go('" & Function_Board_Name & "','" & Function_Main_Rs("intSeq") & "');>" & GetCutSubject(Function_Main_Rs("strSubject"), Function_Left_Cut) & "</a>"
    If Function_New_Img <> "" Then
     IF GetNewBoardTime(24, Function_Main_Rs("dateRegDate")) = True Then
      response.write "<img src='" & Function_New_Img & "' border='0' align='absmiddle' />"
     End if
    End if
    response.write "</td>"
    response.write "<td width='23%'>" & Right(GetDateType(1, Function_Main_Rs("dateRegDate")),8) & "</td></tr>"
    Function_Main_Rs.MoveNext()
   Loop
   If Function_Main_C < Function_Board_Count Then
    For Function_Main_C_For = Function_Main_C To Function_Board_Count
     response.write "<tr><td colspan='3'>&nbsp;</td></tr>"
    Next
   End if
  End If

  Function_Main_Rs.close
  Set Function_Main_Rs = Nothing
  
  Function_Main_Con.Close
 End Function
%><

댓글 3

  • 최백호
  • 2007.12.17 18:19

asp 초보라

f0d

번호 제목 닉네임 조회수 작성일

번호 : 95

메인에 작은 달력(스케줄) 뽑기 [4]newfile

번호 : 94

모바일에서 글등록이 안되나요? [1]new

번호 : 93

부하를 줄여서 만들어 봤습니다.^^ [4]new

번호 : 92

사용자를 위한 팁 적용예... [3]new

  • 리안
  • 조회수 3358
  • 2008.03.06

번호 : 91

사진첨부 오류 [2]new

번호 : 90

사진청부 오류 도와주세요 [4]newphoto

번호 : 89

서버 2008에서 메일보내기입니다. [2]new

번호 : 88

설문조사 메인에 뽑기 소스 입니다. [3]newfile

번호 : 87

설치매뉴얼에 잘못된 부분 newphoto

번호 : 86

설치시 424에러가 뜰 경우 [3]new

번호 : 85

설치시 에러나시는 분들만 보세요 [1]newfile

번호 : 84

설치시 db연결 관련 오류 나시는 분들은 이렇게 해보심이... new

번호 : 83

쇼핑몰에서 많이 사용되는 최근이미지 세로 무한스크롤링법!! [11]new

번호 : 82

스크립트가 먹히질 않습니다. new

번호 : 81

실시간 검색어 순위 순서대로 보여주기 new

번호 : 80

아티보드 2.0에서 3.1로 업그레이드 [1]new

번호 : 79

아티보드 3.0 팝업 띠우기 new

  • 일천
  • 조회수 2820
  • 2012.06.20

번호 : 78

아티보드 3.0 SSL로그인 new

  • 일천
  • 조회수 2572
  • 2013.04.12

번호 : 77

아티보드 설치중에 자꾸이런오류가뜹니다.. [2]new

번호 : 76

아티보드 스킨제작 1탄 [2]new