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

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

나노코팅 나노엔

구매안내

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

사용팁|

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

  • 조성범
  • |조회수 : 4124
  • |추천수 : 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

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

번호 : 55

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

번호 : 54

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

번호 : 53

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

번호 : 52

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

번호 : 51

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

번호 : 50

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

번호 : 49

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

번호 : 48

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

번호 : 47

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

번호 : 46

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

번호 : 45

사진첨부 오류 [2]new

번호 : 44

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

  • 리안
  • 조회수 3352
  • 2008.03.06

번호 : 43

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

번호 : 42

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

번호 : 41

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

번호 : pri40

메인에 글뽑기;;; 함수로 만들어봤는데;;; [3]newfile

번호 : 39

많이클릭한 내용중에 오늘것만 출력이 되게하는 방안~ [4]new

번호 : 38

많이 클릭한 게시글 뽑기중.. new

번호 : 37

마이페이지 [2]new

  • 일천
  • 조회수 2497
  • 2012.05.24

번호 : 36

리플달린 시간과 분 표시 하기 [3]new