%@LANGUAGE="JAVASCRIPT"%> <% var Events__MMColParam = "1"; if (String(Request.QueryString("ID")) != "undefined" && String(Request.QueryString("ID")) != "") { Events__MMColParam = String(Request.QueryString("ID")); } %> <% var Events = Server.CreateObject("ADODB.Recordset"); Events.ActiveConnection = MM_tinylives_STRING; Events.Source = "SELECT * FROM events WHERE ID = "+ Events__MMColParam.replace(/'/g, "''") + ""; Events.CursorType = 0; Events.CursorLocation = 2; Events.LockType = 1; Events.Open(); var Events_numRows = 0; %> <% // *** Recordset Stats, Move To Record, and Go To Record: declare stats variables // set the record count var Events_total = Events.RecordCount; // set the number of rows displayed on this page if (Events_numRows < 0) { // if repeat region set to all records Events_numRows = Events_total; } else if (Events_numRows == 0) { // if no repeat regions Events_numRows = 1; } // set the first and last displayed record var Events_first = 1; var Events_last = Events_first + Events_numRows - 1; // if we have the correct record count, check the other stats if (Events_total != -1) { Events_numRows = Math.min(Events_numRows, Events_total); Events_first = Math.min(Events_first, Events_total); Events_last = Math.min(Events_last, Events_total); } %> <% // *** Recordset Stats: if we don't know the record count, manually count them if (Events_total == -1) { // count the total records by iterating through the recordset for (Events_total=0; !Events.EOF; Events.MoveNext()) { Events_total++; } // reset the cursor to the beginning if (Events.CursorType > 0) { if (!Events.BOF) Events.MoveFirst(); } else { Events.Requery(); } // set the number of rows displayed on this page if (Events_numRows < 0 || Events_numRows > Events_total) { Events_numRows = Events_total; } // set the first and last displayed record Events_last = Math.min(Events_first + Events_numRows - 1, Events_total); Events_first = Math.min(Events_first, Events_total); } %>
![]() |
The
Tiny Lives Fund, Community Foundation, Cale Cross 156 Pilgrim Street, Newcastle upon Tyne NE1 6SU - Tel: 0191 222 0945 Registered Charity Number 700510 Limited Company No. 2273708 |
![]() |
![]() |
![]() |
||||||||||||||
| |
||||||||||||||||||
|
|
![]() |
||||||||||||||||
| |
||||||||||||||||||
| |
|
|||||||||||||||||
| |
|
|
![]() |
|||||||||||||||
| |
|
|||||||||||||||||
| |
||||||||||||||||||
| |
![]() |
|||||||||||||||||
| |
||||||||||||||||||
| |
||||||||||||||||||
![]() |
||||||||||||||||||
| |
||||||||||||||||||
| about us | latest news | what we do | get involved | latest events | your stories | contact us a day in the life | how to donate | register with tiny lives | links to our partners | text only |
![]() |
|||||||||||||||||
| |
|
|
|
|
|
|
|
|
|
|
|
|
||||||