<%@LANGUAGE="VBSCRIPT"%> <% Dim rs_press Dim rs_press_cmd Dim rs_press_numRows Set rs_press_cmd = Server.CreateObject ("ADODB.Command") rs_press_cmd.ActiveConnection = MM_web_STRING rs_press_cmd.CommandText = "SELECT ARCHIVE_START, PRESS_REL_NAME, BLURB, PLACE, PRESS_REL_ID, PRESS_NAME_SH FROM dbo.PRESS_RELEASE_T ORDER BY ARCHIVE_START DESC" rs_press_cmd.Prepared = true Set rs_press = rs_press_cmd.Execute rs_press_numRows = 0 %> <% Dim Repeat7__numRows Dim Repeat7__index Repeat7__numRows = 2 Repeat7__index = 0 rs_press_numRows = rs_press_numRows + Repeat7__numRows %> <% Dim Rs_pressquote__MMColParam Rs_pressquote__MMColParam = "press quote" If (Request("MM_EmptyValue") <> "") Then Rs_pressquote__MMColParam = Request("MM_EmptyValue") End If %> <% Dim Rs_pressquote Dim Rs_pressquote_cmd Dim Rs_pressquote_numRows Set Rs_pressquote_cmd = Server.CreateObject ("ADODB.Command") Rs_pressquote_cmd.ActiveConnection = MM_web_STRING Rs_pressquote_cmd.CommandText = "SELECT ARCHIVE_START, MEDIA, LINK_TEXT FROM dbo.MEDIA_ARCHIVES WHERE TYPE = ? and JOURNALIST <> 0 ORDER BY ARCHIVE_START DESC" Rs_pressquote_cmd.Prepared = true Rs_pressquote_cmd.Parameters.Append Rs_pressquote_cmd.CreateParameter("param1", 200, 1, 255, Rs_pressquote__MMColParam) ' adVarChar Set Rs_pressquote = Rs_pressquote_cmd.Execute Rs_pressquote_numRows = 0 %> <% Dim Recordset1 Dim Recordset1_cmd Dim Recordset1_numRows Set Recordset1_cmd = Server.CreateObject ("ADODB.Command") Recordset1_cmd.ActiveConnection = MM_web_STRING Recordset1_cmd.CommandText = "SELECT ARCHIVE_START, MEDIA, LINK_TEXT FROM dbo.MEDIA_ARCHIVES WHERE TYPE = 'press quote' and JOURNALIST=1 ORDER BY ARCHIVE_START DESC" Recordset1_cmd.Prepared = true Set Recordset1 = Recordset1_cmd.Execute Recordset1_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 2 Repeat1__index = 0 Rs_pressquote_numRows = Rs_pressquote_numRows + Repeat1__numRows %> <% Dim rs_work Dim rs_work_numRows Set rs_work = Server.CreateObject("ADODB.Recordset") rs_work.ActiveConnection = MM_workshops_STRING rs_work.Source = "SELECT * FROM WS_NAME ORDER BY ARCHIVE_START DESC" rs_work.CursorType = 0 rs_work.CursorLocation = 2 rs_work.LockType = 1 rs_work.Open() rs_work_numRows = 0 %> <% Dim Repeat5__numRows Dim Repeat5__index Repeat5__numRows = 2 Repeat5__index = 0 rs_work_numRows = rs_work_numRows + Repeat5__numRows %> <% Dim MM_paramName %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters Dim MM_keepNone Dim MM_keepURL Dim MM_keepForm Dim MM_keepBoth Dim MM_removeList Dim MM_item Dim MM_nextItem ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> International Energy Agency (IEA)

Energy Efficiency - Implement Now Video

Download the high resolution video in .mp4 here (22MB)

 

<% Rs_pressquote.Close() Set Rs_pressquote = Nothing %> <% Recordset1.Close() Set Recordset1 = Nothing %> <% rs_work.Close() Set rs_work = Nothing %> <% rs_press.Close() Set rs_press = Nothing %>