<%@ LANGUAGE=javascript %> <% var iDescSize = 225; var iHeadlinesShown = 3; var adOpenStatic = 3; var adLockReadOnly = 1; var iRecordCount var sSQL; var sNewsId; var sTitle; var sPressDate; var sDescription; var sName; var sLocation; var cnnDB = Server.CreateObject('ADODB.Connection'); var rsData = Server.CreateObject('ADODB.Recordset'); cnnDB.Open(Application('cnnDB_ConnectionString'), Application('cnnDB_RuntimeUserName'), Application('cnnDB_RuntimePassword')); sSQL = "SELECT * " + "FROM News " + "ORDER BY PressDate DESC"; rsData.Open(sSQL,cnnDB,adOpenStatic,adLockReadOnly); iRecordCount = rsData.RecordCount; %> Optimus - A Canadian Land Developer - Real Estate Available in Canada














KEEP INFORMED SIGN-UP ONLINE

To keep our customers and clients informed of current and upcoming developments and new development opportunities we encourage you to sign-up to receive regular updates.

Click here to bookmark this page!


<% if (rsData.EOF && rsData.BOF) { %>Sorry, there is no news at this time.
 
<% } else { if (iHeadlinesShown > iRecordCount) { iHeadlinesShown = iRecordCount; } for (var i = 0; i < iHeadlinesShown; i++) { sNewsId = String(rsData('NewsId')); sTitle = String(rsData('Title')); sPressDate = String(FormatDate(rsData('PressDate'), 1)); sDescription = String(rsData('Description')).replace(/\n/gi, "
"); if (sDescription.length == 0 || sDescription == "null") { sDescription = ""; } %> <%= sTitle %>

<%= sPressDate %>

<% if (sDescription.length > iDescSize) { sDescription = sDescription.slice(0,iDescSize); sDescription = sDescription.replace(/\s\S*$/, ""); // Cuts off text between words %> <%= sDescription %> ... [Full Story]

<% } else { %> <%= sDescription %>

<% } rsData.MoveNext(); } rsData.MoveFirst(); %>
Past News Items

  <% } rsData.Close(); rsData = null; cnnDB.Close(); cnnDB = null; %>

Special Projects | Services | Development Opportunities | Project Showcase
Corporate Overview | Contact Optimus | Optimus Home