%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Dim rs1 Dim rs1_numRows Set rs1 = Server.CreateObject("ADODB.Recordset") rs1.ActiveConnection = MM_Con_sprep_STRING rs1.Source = "SELECT article.id, dat_published, flg_publish, int_art_cat, title, memo, img_file, img_title, img_dir, show_top,formal_name,link_url,link_title FROM article,art_cat WHERE flg_publish = true and article.int_art_cat=art_cat.id and art_cat.id = 15 ORDER BY dat_published DESC" rs1.CursorType = 0 rs1.CursorLocation = 2 rs1.LockType = 1 rs1.Open() rs1_numRows = 0 %> <% Dim rs2 Dim rs2_numRows Set rs2 = Server.CreateObject("ADODB.Recordset") rs2.ActiveConnection = MM_Con_sprep_STRING rs2.Source = "SELECT name, article.id, dat_published, flg_publish, title FROM v_article WHERE art_cat.id = 5 and flg_publish =true ORDER BY dat_published DESC" rs2.CursorType = 0 rs2.CursorLocation = 2 rs2.LockType = 1 rs2.Open() rs2_numRows = 0 %> <% Dim rs3 Dim rs3_numRows Set rs3 = Server.CreateObject("ADODB.Recordset") rs3.ActiveConnection = MM_Con_sprep_STRING rs3.Source = "SELECT publication.id, publication.dat_published, publication.title, pub_cat1.name FROM publication,pub_cat1 WHERE publication.int_pub_cat1=pub_cat1.id AND flg_publish = true AND show_top = true ORDER BY publication.dat_published desc" rs3.CursorType = 0 rs3.CursorLocation = 2 rs3.LockType = 1 rs3.Open() rs3_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 4 Repeat1__index = 0 rs1_numRows = rs1_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = 25 Repeat2__index = 0 rs2_numRows = rs2_numRows + Repeat2__numRows %> <% Dim Repeat3__numRows Dim Repeat3__index Repeat3__numRows = 3 Repeat3__index = 0 rs3_numRows = rs3_numRows + Repeat3__numRows %>
![]() |
||||||||||
|
||||||||||
![]() |
<% rs2.Close() Set rs2 = Nothing %> <% rs1.Close() Set rs1 = Nothing %>