%@ Language=VBScript %>
<%Option Explicit%>
<%
Function ExtraTrim(str)
dim ExtraTrimCount
dim ExtraTrimLen
str = Replace(trim(str),Chr(9),"")
str = Replace(str,Chr(11),"")
str = Replace(str,Chr(13),"")
ExtraTrim = str
End Function
%>
<%
'---------------------------------------------------------------------------
' This function created by Michele Wagner 6/21/01 for Baltimore County Public Schools
' USE: Send an e-mail message listing the results of any web-based form.
' ORIGIN: Based on the formmail.pl script found on Matt's Script Archive
' Modified 1/8/2008 by David Phelan: added option for session variables in addition to form fields
'---------------------------------------------------------------------------
Public Function Sendmail(Recipient)
'-------------------------------------------------------------
' Check to see if recipient is specified
'-------------------------------------------------------------
If Recipient = "" or InStr(1,Recipient,"@") = 0 or InStr(1,Recipient,".") = 0 or InStr(1,Recipient,",") = len(Recipient) Then
Sendmail = "You did not specify a valid recipient for this form."
Exit Function
End If
'--------------------------------------------------------------
' Check to see if subject for e-mail message is specified.
'--------------------------------------------------------------
Dim sSubject
If Request.form("Subject") = "" Then
Sendmail = "You did not specify a subject for the e-mail message to be sent from this form."
Exit Function
Else
sSubject = ExtraTrim(Request.Form("Subject"))
End If
'--------------------------------------------------------------
' Check to see if subject for e-mail message is specified.
'--------------------------------------------------------------
If Request.form("Email") = "" or InStr(1,Request.Form("Email"),"@") = 0 or InStr(1,Request.Form("Email"),".") = 0 or InStr(1,Request.Form("Email"),",") = len(Request.Form("Email")) Then
Sendmail = "You did not specify a valid e-mail address for the e-mail message to be sent from this form."
Exit Function
End If
'---------------------------------------------------------------
' Check the URL from which the form is being submitted.
'---------------------------------------------------------------
dim isValid
dim httpRef
isValid = 0
httpRef = Request.ServerVariables("HTTP_REFERER")
httpRef = Right(httpRef,(Len(httpRef) - (InStr(1,httpRef,"//") + 1)))
httpRef = Left(httpRef,(InStr(1,httpRef,"/") - 1))
If Not Instr(1,httpRef,"10.10.0.10") > 0 AND Not Instr(1,httpRef,"bcps.org") > 0 Then
Sendmail = "This form does not have the correct permissions to send an e-mail response. Server: " & Request.ServerVariables("HTTP_REFERER")
Exit Function
End If
'--------------------------------------------------------------------------
' Check That Required Fields contain common names
'--------------------------------------------------------------------------
dim Required
dim maxReq
dim countReq
dim arrNameAtt
dim arrCommLang
dim str
'split the required fields form field
Required = Split(ExtraTrim(Request.Form("Required")),",")
arrCommLang = Required
arrNameAtt = Required
maxReq = Ubound(Required)
countReq = 0
do while countReq <= maxReq
' if a ":" is not present, a common name is not provided
str = Required(countReq)
if Instr(1,str,":") = 0 Then
arrNameAtt(countReq) = str
arrCommLang(countReq) = ""
else
' a common name is provided, check for extra ":"
str = left(str,(inStr(1,str,":") - 1))
if inStr(1,str,":") > 0 Then
sendmail = "Your common name for this field may not contain a "":"". Required Field: " & str
exit function
else
arrCommLang(countReq) = str
end if
end if
str = Required(countReq)
' a common name is provided, check for extra ":"
str = right(str,(len(str) - inStr(1,str,":")))
if inStr(1,str,":") > 0 Then
sendmail = "Your field name may not contain a "":"". Required Field: " & str
exit function
else
arrNameAtt(countReq) = str
end if
countReq = countReq + 1
loop
'--------------------------------------------------------------------------
' Check That Required Fields contain information
' Specifically designed to handle multiple selection, checkbox and radio fields
'--------------------------------------------------------------------------
dim isRequired
isRequired = Required
countReq = 0
Do Until countReq > maxReq
For each item in Request.Form
' Since forms containing their own collections don't show in the regular form collection
' set flag to see if this required field is found
isRequired(countReq) = False
If arrNameAtt(countReq) = item Then
isRequired(countReq) = True
Exit For
End If
Next
' If the required field is found, check it for a value
If isRequired(countReq) Then
If Request.Form(item) = "" Then
if arrCommLang(countReq) <> "" then
Sendmail = sendmail & "
" & arrNameAtt(countReq) & " "
end if
End If
End If
countReq = countReq + 1
Loop
maxReq = Ubound(isRequired)
countReq = 0
' If the required field is not found, it is empty. Throw error.
Do Until countReq > maxReq
If Not isRequired(countReq) Then
if arrCommLang(countReq) <> "" Then
Sendmail = sendmail & "
" & arrNameAtt(countReq) & " "
end if
End If
countReq = countReq + 1
Loop
If Sendmail <> "" Then
Sendmail = "You did not complete all of the required form fields. Please fill in the fields listed below and re-submit the form. Required:
" & Sendmail & "
"
Exit Function
End If
'--------------------------------------------------------------
' Gather form values from anything specified in the order field
' and split into common language and field names.
'--------------------------------------------------------------
dim Order
dim item
dim maxIndex
dim count
If Request.Form("Order") = "" Then
Sendmail = "You must specify the order of the fields you would like to appear on the e-mail message. Do this by creating a hidden form field named ""order"" and listing the names of the fields you wish to receive separated by a comma."
Exit Function
Else
Order = Split(ExtraTrim(Request.Form("Order")),",")
End If
arrNameAtt = Order
arrCommLang = Order
maxIndex = Ubound(Order)
count = 0
do while count <= maxIndex
' if a ":" is not present, a common name is not provided
str = Order(count)
if Instr(1,str,":") = 0 Then
arrNameAtt(count) = str
arrCommLang(count) = ""
else
' a common name is provided, check for extra ":"
str = left(str,(inStr(1,str,":") - 1))
if inStr(1,str,":") > 0 Then
sendmail = "Your common name for this field may not contain a "":"". Order Field: " & str
exit function
else
arrCommLang(count) = str
end if
end if
str = Order(count)
' a common name is provided, check for extra ":"
str = right(str,(len(str) - inStr(1,str,":")))
if inStr(1,str,":") > 0 Then
sendmail = "Your field name may not contain a "":"". Order Field: " & str
exit function
else
arrNameAtt(count) = str
end if
count = count + 1
loop
'---------------------------------------------------------------------
' Build the message
'---------------------------------------------------------------------
dim sMessage, sItem
count = 0
sMessage = ""
Do Until count > maxIndex
'For Each item In Request.Form() ' Changed by D. Phelan
For Each item In arrNameAtt
If arrNameAtt(count) = item Then
If Request.Form(item) <> "" Or Session(item) <> "" Then
sItem = Request.Form(item)
If sItem = "" Then ' If no form field by that name, try session
sItem = Session(item)
End If
if arrCommLang(count) <> "" Then
sMessage = sMessage & arrCommLang(count) & ": " & sItem & " " & Chr(13)
else
sMessage = sMessage & arrNameAtt(count) & ": " & sItem & " " & Chr(13)
end if
End If
End if
Next
count = count + 1
Loop
'------------------------------------------------------------------
' Create and send mail
'-------------------------------------------------------------------
Dim oMsg, oConf, cFlds
'//The following constants must be declared
Const sBaseSchema = "http://schemas.microsoft.com/cdo/configuration/"
'// Needs to be a 1 if on the local SMTP server
Const cdoPort = 2
Const cdoAnonymous = 0
Const cdoBasic = 1
Set oMsg = CreateObject("CDO.Message")
Set oConf = CreateObject("CDO.Configuration")
Set cFlds = oConf.Fields
With cFlds
.Item(sBaseSchema & "sendusing") = cdoPort
.Item(sBaseSchema & "smtpserver") = "exchange1.bcps.org" '//Mail Server goes here
.Item(sBaseSchema & "smtpserverport")= 25
'// I put this in because the script will attempt
'// to use settings from the mail profile
.Item(sBaseSchema & "smtpauthenticate") = cdoAnonymous
.Update
End With
With oMsg
.Configuration = oConf
.From = Request.Form("Email")
.To = Recipient
.Subject = sSubject
.HTMLBody = sMessage
.Send
End With
set oMsg = Nothing
End Function
Function ExtraTrim(str)
dim ExtraTrimCount
dim ExtraTrimLen
str = Replace(trim(str),Chr(9),"")
str = Replace(str,Chr(11),"")
str = Replace(str,Chr(13),"")
ExtraTrim = str
End Function
%>
<%
Dim sMessage
If Request.Form("email") <> "" Then
sMessage = SendMail("mkaplan@bcps.org")
If sMessage <> "" then
Response.Write sMessage
else
response.redirect ("thankyou.asp")
End If
End if
%>
Office of Technology in Special Education
Friday, July 18, 2008
All schools operating on normal posted schedule.
Boardmaker Level 1
This session will provide participants with an overview of the Boardmaker
software program. Participants will learn the basics of how to create
adapted activities to meet their students' individual needs.
Boardmaker Level 2
This session will provide experienced participants with an overview
of the advanced features of this program. Learn how to adapt lessons
and worksheets and integrate the use of visual strategies into your
curriculum.
Intellitools Classroom Suite This class will provide an overview of the general built-in features
of this program. Each class will also introduce the trainee to a specific
authoring skill. Learn how to provide diverse learners with engaging
practice activities to help improve in reading, writing, and math.
Kurzweil Level 1 This session will provide participants with an overview of this
text to speech software. Hands on computer lab activities will be provided
to develop an understanding of how to customize the program to support
struggling readers and writers. Curriculm integration as well as the
connection to MSA and HSA will be discussed.
Kurzweil Advanced This session will provide the participants with hands on opportunity
to learn how to scan and edit documents into the program. We will also
focus on integrating advanced features into instruction and the curriculum.
Discussion of how to utilize the program to support reading, writing
and study skills will be offered.
Microsoft Office This session will provide an overview of assistive technology applications
of Microsoft Office software.Participants will learn how to
create talking books in the Powerpoint session.
Word Prediction Software
Ths session will provide an overview of BCPS approved word prediction
software programs. Participants will learn how to use, customize and
integrate word prediction features into the curriculum to support written
communication output.
Writing With Symbols
This session will offer participants with the opportunity to have hands-on
experience with a picture-based word processor. Learn how to adapt books,
worksheets and other curriculum related materials to support student
needs.
To submit a request for specific AAC device or other assistive technology
support please, contact Marsye Kaplan,
410-887-2299.