<% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Guide - Web Wiz Mailing List '** '** Copyright 2001-2005 Bruce Corkhill All Rights Reserved. '** '** This program is free software; you can modify (at your own risk) any part of it '** under the terms of the License that accompanies this software and use it both '** privately and commercially. '** '** All copyright notices must remain in tacked in the scripts and the '** outputted HTML. '** '** You may use parts of this program in your own private work, but you may NOT '** redistribute, repackage, or sell the whole or any part of this program even '** if it is modified or reverse engineered in whole or in part without express '** permission from the author. '** '** You may not pass the whole or any part of this application off as your own work. '** '** All links to Web Wiz Guide and powered by logo's must remain unchanged and in place '** and must remain visible when the pages are viewed unless permission is first granted '** by the copyright holder. '** '** This program is distributed in the hope that it will be useful, '** but WITHOUT ANY WARRANTY; without even the implied warranty of '** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER '** WARRANTIES WHETHER EXPRESSED OR IMPLIED. '** '** You should have received a copy of the License along with this program; '** if not, write to:- Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom. '** '** '** No official support is available for this program but you may post support questions at: - '** http://www.webwizguide.info/forum '** '** Support questions are NOT answered by e-mail ever! '** '** For correspondence or non support questions contact: - '** info@webwizguide.info '** '** or at: - '** '** Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom '** '**************************************************************************************** 'Set the response buffer to true Response.Buffer = True 'Dimension variables Dim lngNewsletterID 'Holds saved newsletter ID Dim strNewsletterSubject 'Holds saved newsletter Subject Dim strNewsletterNote 'Holds saved newsletter Note Dim dtmNewsletterDate 'Holds saved newsletter Date sent Dim blnDisplay 'Set to true if displayed to public Dim blnHTMLFormat 'Set to true if in HTML format 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Newsletter.Newsletter_ID, " & strDbTable & "Newsletter.Newsletter_subject, " & strDbTable & "Newsletter.Newsletter_note, " & strDbTable & "Newsletter.Newsletter_date, " & strDbTable & "Newsletter.Display, " & strDbTable & "Newsletter.HTML " & _ "FROM " & strDbTable & "Newsletter " & _ "WHERE " & strDbTable & "Newsletter.Display = " & strDBTrue & " " & _ "ORDER BY " & strDbTable & "Newsletter.Newsletter_date DESC;" 'Query the database rsCommon.Open strSQL, adoCon %> View Archived Newsletters
<% = strWebsiteName & "'s " & strTxtSentNewsletters %>

<% 'If there are no rcords in the database display an error message If rsCommon.EOF Then 'Tell the user there are no records to show Response.Write "" & strTxtThereAreNoSavedNewsletters Response.Write "
" & strTxtPleaseCheckBackLater & "

" 'Display the templates Else %>
<% ' loop through the records in the template table database and show the infomation ' using a Do While...Loop statement Do While NOT rsCommon.EOF 'Read in the values form the database lngNewsletterID = CLng(rsCommon("Newsletter_ID")) strNewsletterSubject = rsCommon("Newsletter_subject") strNewsletterNote = rsCommon("Newsletter_note") dtmNewsletterDate = CDate(rsCommon("Newsletter_date")) blnHTMLFormat = CBool(rsCommon("HTML")) 'Display the template list in HTML Response.Write (vbCrLf & " " & _ vbCrLf & " " & _ vbCrLf & " " & _ vbCrLf & " " & _ vbCrLf & " ") ' Move to the next record rsCommon.MoveNext Loop %>
<% = strTxtSentNewsletters %> <% = strTxtFormat %> <% = strTxtDateSent %>
" & strNewsletterSubject &"" & _ vbCrLf & "
" & strNewsletterNote & "
") If blnHTMLFormat Then Response.Write("HTML Format") Else Response.Write("Plain Text") End If Response.Write("" & FormatDateTime(dtmNewsletterDate, vbLongDate) & " " & strTxtAt & " " & FormatDateTime(dtmNewsletterDate, vbShortTime) & "
 
<% End If 'Reset Server Objects rsCommon.Close Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing %>
<% = strTxtReturnToLoginSignup %> <% Response.Write("

") '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** If blnLCode Then Response.Write("Powered by Web Wiz Mailing List version " & strVersion & "") Response.Write("
Copyright ©2001-2005 Web Wiz Guide") End If '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** %>