<% Option Explicit %> <% Dim adoCon 'Database Connection Variable Dim rsConfiguration 'Holds the configuartion recordset Dim strCon 'Holds the Database driver and the path and name of the database Dim strSQL 'Holds the SQL query for the database Dim intRecordsPerPage 'Holds the number of files shown on each page Dim strBgColour 'Holds the background colour of the News Administrator Dim strTextColour 'Holds the text colour of the News Administrator Dim strTextType 'Holds the font type of the News Administrator Dim intHeadingTextSize 'Holds the heading font size Dim intTextSize 'Holds the font size of the News Administrator Dim intSmallTextSize 'Holds the small font size Dim strLinkColour 'Holds the link colour of the News Administrator Dim strTableColour 'Holds the table colour Dim strTableBorderColour 'Holds the table border colour Dim strTableTitleColour 'Holds the table title colour Dim strVisitedLinkColour 'Holds the visited link colour of the News Administrator Dim strActiveLinkColour 'Holds the active link colour of the News Administrator Dim blnLCode 'set to true Dim blnEmail 'Boolean set to true if e-mail is on Dim strCode 'Holds the page code Dim strCodeField 'Holds the code type Dim strWebSiteEmailAddress 'Holds the e-mail address for the web site the Site News is on Dim strMailComponent 'Email coponent the site news app useses Dim strSMTPServer 'SMTP server for sending the e-mails through Dim strLoggedInUserCode 'Holds the user code of the user Dim strTitleImage 'Holds the path and name for the title image for the site news Dim intMsgCharNo 'Holds the number of characters allowed for the messages Dim blnCookieSet 'Set to true if cookies are to be set to stop multiple posts Dim blnIPBlocking 'Set to true if IP blooking is to be used to stop multiple posts 'Create database connection 'Create a connection odject Set adoCon = Server.CreateObject("ADODB.Connection") '------------- If you are having problems with the script then try using a diffrent driver or DSN by editing the lines below -------------- 'Database connection info and driver strCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("calendar/calendar.mdb") '--------------------------------------------------------------------------------------------------------------------------------------------- 'Set an active connection to the Connection object adoCon.Open strCon %> <% Dim rsNews 'Database recordset holding the news items Dim rsComments 'Database recordset holding the comments for this news item Dim lngNewsID 'Holds the News item ID number Dim blnComments 'Set to true if comments are allowed for this item dim mymonth dim myday dim myyear 'Read in the ID number of the news item we are looking at the comments of If isNull(Request.QueryString("NewsID")) = True Or isNumeric(Request.QueryString("NewsID")) = False Then lngNewsID=1 Else lngNewsID = CLng(Request.QueryString("NewsID")) End If %> Harel Mallac & Co Ltd <% 'Create recorset object Set rsNews = Server.CreateObject("ADODB.Recordset") 'Initalise the strSQL variable with an SQL statement to query the database by selecting all tables ordered by the decending date strSQL = "SELECT calender_event.event_id, calender_event.name, calender_event.start_dt, calender_event.start_time, calender_event.end_dt, calender_event.end_time, calender_event.location, calender_event.description, calender_event.lastmodified_dt FROM calender_event ORDER BY calender_event.event_id ASC;" 'Query the database rsNews.Open strSQL, adoCon %>
    HaHarel Mallac & Co. Ltd, nearly two centuries of active
Hapresence and contribution to the economic activity of Mauritius
contact | sitemap | version française
<< homepage
  Investor Relation
    Group Overview
    Directors & Executives
    Corporate Governance
    Corporate Citizenship
  Financial Calendar
    Financial Results
    Regional Overview
    Investor Contact Form
     
Financial Calendar

::: News


       Under Construction...
<%'** ' '
' '**%> <%'rsNews.MoveFirst 'do while Not rsNews.eof %> <% 'dim start 'dim dispdate 'start = rsNews("start_dt") 'mymonth = month(start) 'mymonth =monthname(mymonth) 'myday = day(start) 'myyear = year(start) 'dispdate= (mymonth&" "&myday&","&" "&myyear) %> <%'** ' ' ' ' ' '**%> <%'rsNews.MoveNext 'loop%> <%'**
      ------------------------------------------------------------------------
      <% = dispdate %><%'<% = rsNews("description") %> <%'** '
      ------------------------------------------------------------------------
'**%>
 
 
 
Copyright : Harel Mallac & Co. Ltd 2006