%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> <% var R5__PARAM = "0001"; if (String(Request.QueryString("N1")) != "undefined" && String(Request.QueryString("N1")) != "") { R5__PARAM = String(Request.QueryString("N1")); } %> <% var R5 = Server.CreateObject("ADODB.Recordset"); R5.ActiveConnection = MM_odfbdd_STRING; R5.Source = "SELECT * FROM RECHERCHE WHERE MOT LIKE '%"+ R5__PARAM.replace(/'/g, "''") + "%'"; R5.CursorType = 0; R5.CursorLocation = 2; R5.LockType = 1; R5.Open(); var R5_numRows = 0; %> <% // *** Recordset Stats, Move To Record, and Go To Record: declare stats variables // set the record count var R5_total = R5.RecordCount; // set the number of rows displayed on this page if (R5_numRows < 0) { // if repeat region set to all records R5_numRows = R5_total; } else if (R5_numRows == 0) { // if no repeat regions R5_numRows = 1; } // set the first and last displayed record var R5_first = 1; var R5_last = R5_first + R5_numRows - 1; // if we have the correct record count, check the other stats if (R5_total != -1) { R5_numRows = Math.min(R5_numRows, R5_total); R5_first = Math.min(R5_first, R5_total); R5_last = Math.min(R5_last, R5_total); } %> <% // *** Recordset Stats: if we don't know the record count, manually count them if (R5_total == -1) { // count the total records by iterating through the recordset for (R5_total=0; !R5.EOF; R5.MoveNext()) { R5_total++; } // reset the cursor to the beginning if (R5.CursorType > 0) { if (!R5.BOF) R5.MoveFirst(); } else { R5.Requery(); } // set the number of rows displayed on this page if (R5_numRows < 0 || R5_numRows > R5_total) { R5_numRows = R5_total; } // set the first and last displayed record R5_last = Math.min(R5_first + R5_numRows - 1, R5_total); R5_first = Math.min(R5_first, R5_total); } %>
|
||||||||||||||||||||
|
|
|
|||||||||||||||||||
Association
des Médecins Ostéopathes de France 1, rue de l'hopitale - 76 000 Rouen Tel: 02.35.52.01.01 - mail : contact@osteos.net |
|
|||||||||||||||||||