<%@LANGUAGE="JAVASCRIPT"%> <% var news = Server.CreateObject("ADODB.Recordset"); news.ActiveConnection = MM_psi_db_STRING; news.Source = "SELECT * FROM News_Item WHERE (is_press_release = 'yes' OR is_press_release = 'Yes') ORDER BY news_date DESC "; news.CursorType = 0; news.CursorLocation = 2; news.LockType = 3; news.Open(); var news_numRows = 0; %> <% var Repeat1__numRows = -1; var Repeat1__index = 0; news_numRows += Repeat1__numRows; %> PSI: News: Press Releases

Press Releases

<% var colour_count = 3; var bg_colour_code = "#FFF2E6"; %> <% // work out today's date var d, todayDate = ""; //Declare variables. d = new Date(); //Create Date object. var Month = (d.getMonth() + 1); if (Month < 10 ) { Month = '0' + Month;} var dayOfMonth = (d.getDate()); if (dayOfMonth < 10 ) { dayOfMonth = '0' + dayOfMonth; } todayDate += dayOfMonth + "/"; //Get day todayDate += Month + "/"; //Get month todayDate += d.getYear(); //Get year. %> <% while ((Repeat1__numRows-- != 0) && (!news.EOF)) { // DUFF DATE TEST COMMENTED OUT // if (todayDate > (news.Fields.Item("news_date").Value)) {%> > <% // } CLOSE OF DUFF DATE TEST Repeat1__index++; news.MoveNext(); } %>

Date

News Release

   

<%=(news.Fields.Item("news_date").Value)%>

"><%=(news.Fields.Item("headline").Value)%>

Return to the top of this page

<% news.Close(); %>