<%@ LANGUAGE = "VBScript" %> <% Option Explicit %> <% Response.Buffer = True %> <% Response.Expires = -1 %> <% Response.CacheControl = "Public" %> <% '**************************************************************************************** '** Copyright Notice '** '** iPortalX.com '** '** Copyright 2001-2003 Drew Gauderman All Rights Reserved. '** '** This program is a paid 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 NOT use parts of this program in your own private work, and 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 iPortalX.com and powered by logo's (if any) 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. '** '** Support is for those that have purchased it. Post support questions at: - '** http://www.iportalx.com/forum '** '** Support questions are NOT answered by e-mail ever! '** '** For correspondence or non support questions contact: - '** support@iportalx.com '** '**************************************************************************************** If blnUserCanPostEvents = False Then Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing Response.Redirect("forum/insufficient_permission.asp?Redirect=" & RedirectOmitPath("Redirect", True)) End If Dim strMode Dim intAuthorID Dim intEventID Dim strEventTitle Dim strEvent Dim intEventCatID Dim blnPublicEvent Dim dtmEventStartDate Dim dtmEventEndDate Dim blnEventPrivate strMode = Request.QueryString("Mode") intEventID = Clng(Request.QueryString("EID")) dtmEventStartDate = CDate(Request.QueryString("Date")) dtmEventEndDate = CDate(Request.QueryString("Date")) If strMode = "" Then strMode = "NE" If strMode = "EE" AND intEventID <> 0 Then strSQL = "SELECT " & strDBTable & "Calendar.* FROM " & strDBTable & "Calendar WHERE Event_ID = " & intEventID & ";" rsCommon.Open strSQL, adoCon If NOT rsCommon.EOF Then strEventTitle = rsCommon("Title") strEvent = rsCommon("Message") intEventCatID = Clng(rsCommon("Cat_ID")) dtmEventStartDate = FormatDateTime(rsCommon("Start_date"), 2) dtmEventEndDate = FormatDateTime(rsCommon("End_date"), 2) blnEventPrivate = CBool(rsCommon("Private")) End If rsCommon.Close End If %> <% = strTxtAddEventForm %>
<% = strWebsiteName %> : <% = strTxtCalendar %> : <% = strTxtAddEventsForm %>

<% If blnUserCanPostEvents Then %> <% End If %>
  <% = strTxtAllFieldsRequired %>
 <% = strTxtEventSettings %>
<% = strTxtEventTitle %>:
This is the title of the event
Event Start Date:
The event start date
" onclick='popUpCalendar(this, this, "mmm dd yyyy")'>
Event End Date:
Event end date. Make same date as Start Date for a one day event.
" onclick='popUpCalendar(this, this, "mmm dd yyyy")'>
<% = strTxtEventCategory %>:
The event category. Optional.
 <% = strTxtEnterTheEvent %>
Event Options:
Other options for the event
 />Make this event private
<% If strMode = "NE" Then Response.Write(vbCrLf & " ") ElseIf strMode = "EE" Then Response.Write(vbCrLf & " ") End If %>

<% = strTxtBackToHome %> | "><% = strTxtBackToCalendar %>
<% Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing %>