%@LANGUAGE="VBSCRIPT"%>
<%
Dim service__MMColParam
service__MMColParam = "AP228"
if (Request.QueryString("id") <> "") then service__MMColParam = Request.QueryString("id")
%>
<%
set service = Server.CreateObject("ADODB.Recordset")
service.ActiveConnection = MM_ncge_STRING
service.Source = "SELECT Ref, CompanyName, support, Title, Firstname, Surname, JobTitle, Address1, Address2, Address3, Address4, Address5, County, Telephone, Fax, Email, DURL, BriefDesc, FAEUL, FAEUYP, FAEUIP, FAEUNP, FAEUHP, FAEULDP, FAUCI, FAPPR, FADES, FADHC, FADJELR, FADSCFA, FADETE, FAIF, FAF, FAV, FAOth, FAOthsp, ProjectStartDate, ProjectEndDate, LengthinExistance, TargetAge, Noofpart, Percentofpart, SoleyESL, MaxNumber, LengthStayMax, LengthStayAv, MonOpen, MonClose, TueOpen, TueClose, WedOpen, WedClose, ThurOpen, ThurClose, FriOpen, FriClose, SatOpen, SatClose, SunOpen, SunClose, CentreHolidays, AvHours, AttVol, StaffFT, SpecifyFT, StaffPTR, SpecifyPTR, StaffPTI, SpecifyPTI, StaffCEW, SpecifyCEW, StaffCEV, SpecifyCEV, DescMainProg, DescOthAct, DescOthSupServ, AimsObjectives, Desmain, DesYR, DesNYR, DesEmp, DesOth, DesOthSp, DesLeft, DesUnk, OthOutcome, QualNCVA, QualJC, QualLC, QualLCA, QualOth, QualOthSp, GuidServCI, GuidServPT1, GuidServPT2, GuidServSPS, GuidServJSS, GuidServWEP, GuidServPSD, GuidServCC, GuidServPC, GuidServFC, GuidServOth, GuidAccQC, GuidAccA, GuidAccM, GuidAccQGC, GuidAccOth FROM details WHERE Ref = '" + Replace(service__MMColParam, "'", "''") + "'"
service.CursorType = 0
service.CursorLocation = 2
service.LockType = 3
service.Open()
service_numRows = 0
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
' set the record count
service_total = service.RecordCount
' set the number of rows displayed on this page
If (service_numRows < 0) Then
service_numRows = service_total
Elseif (service_numRows = 0) Then
service_numRows = 1
End If
' set the first and last displayed record
service_first = 1
service_last = service_first + service_numRows - 1
' if we have the correct record count, check the other stats
If (service_total <> -1) Then
If (service_first > service_total) Then service_first = service_total
If (service_last > service_total) Then service_last = service_total
If (service_numRows > service_total) Then service_numRows = service_total
End If
%>
<%
' *** Move To Record and Go To Record: declare variables
Set MM_rs = service
MM_rsCount = service_total
MM_size = service_numRows
MM_uniqueCol = "Ref"
MM_paramName = "id"
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> "") Then
MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")
End If
%>
<%
' *** Move To Specific Record: handle detail parameter
If (MM_paramIsDefined And MM_rsCount <> 0) Then
' get the value of the parameter
param = Request.QueryString(MM_paramName)
' find the record with the unique column value equal to the parameter value
MM_offset = 0
Do While (Not MM_rs.EOF)
If (Cstr(MM_rs.Fields.Item(MM_uniqueCol).Value) = param) Then
Exit Do
End If
MM_offset = MM_offset + 1
MM_rs.MoveNext
Loop
' if not found, set the number of records and reset the cursor
If (MM_rs.EOF) Then
If (MM_rsCount < 0) Then MM_rsCount = MM_offset
If (MM_size < 0 Or MM_size > MM_offset) Then MM_size = MM_offset
MM_offset = 0
' reset the cursor to the beginning
If (MM_rs.CursorType > 0) Then
MM_rs.MoveFirst
Else
MM_rs.Close
MM_rs.Open
End If
End If
End If
%>
<%
' *** Move To Record: if we dont know the record count, check the display range
If (MM_rsCount = -1) Then
' walk to the end of the display range for this page
i = MM_offset
While (Not MM_rs.EOF And (MM_size < 0 Or i < MM_offset + MM_size))
MM_rs.MoveNext
i = i + 1
Wend
' if we walked off the end of the recordset, set MM_rsCount and MM_size
If (MM_rs.EOF) Then
MM_rsCount = i
If (MM_size < 0 Or MM_size > MM_rsCount) Then MM_size = MM_rsCount
End If
' if we walked off the end, set the offset based on page size
If (MM_rs.EOF And Not MM_paramIsDefined) Then
If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
If ((MM_rsCount Mod MM_size) > 0) Then
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If
' reset the cursor to the beginning
If (MM_rs.CursorType > 0) Then
MM_rs.MoveFirst
Else
MM_rs.Requery
End If
' move the cursor to the selected record
i = 0
While (Not MM_rs.EOF And i < MM_offset)
MM_rs.MoveNext
i = i + 1
Wend
End If
%>
<%
' *** Move To Record: update recordset stats
' set the first and last displayed record
service_first = MM_offset + 1
service_last = MM_offset + MM_size
If (MM_rsCount <> -1) Then
If (service_first > MM_rsCount) Then service_first = MM_rsCount
If (service_last > MM_rsCount) Then service_last = MM_rsCount
End If
' set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
Dim Repeat2__numRows
Repeat2__numRows = -1
Dim Repeat2__index
Repeat2__index = 0
service_numRows = service_numRows + Repeat2__numRows
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
servlist_numRows = servlist_numRows + Repeat1__numRows
%>
Guidance and Support Services for Young People - <%=(service.Fields.Item("CompanyName").Value)%>
 |
 |
|
|
 |
<%=(service.Fields.Item("CompanyName").Value)%>
|
|
| Contact: |
<%=(service.Fields.Item("Title").Value)%> <%=(service.Fields.Item("Firstname").Value)%> <%=(service.Fields.Item("Surname").Value)%> |
Title: |
<%=(service.Fields.Item("JobTitle").Value)%> |
| Address: |
<%=(service.Fields.Item("Address1").Value)%> |
Tel: |
<%=(service.Fields.Item("Telephone").Value)%> |
|
<%=(service.Fields.Item("Address2").Value)%> |
fax: |
<%=(service.Fields.Item("Fax").Value)%> |
|
<%=(service.Fields.Item("Address3").Value)%> |
email: |
"><%=(service.Fields.Item("Email").Value)%> |
|
<%=(service.Fields.Item("Address4").Value)%> |
url: |
"><%=(service.Fields.Item("DURL").Value)%> |
| |
<%=(service.Fields.Item("Address5").Value)%> |
|
|
|
Project
End Date (if applicable): <%=(service.Fields.Item("ProjectEndDate").Value)%>
Support Type: <%=(service.Fields.Item("support").Value)%>
Brief
Description:
<%=(service.Fields.Item("BriefDesc").Value)%>
Aims
& Objectives:
<%=(service.Fields.Item("AimsObjectives").Value)%>
Main
Programme:
<%=(service.Fields.Item("DescMainProg").Value)%>
Other
Activities:
<%=(service.Fields.Item("DescOthAct").Value)%>
Other
Support Services:
<%=(service.Fields.Item("DescOthSupServ").Value)%>
|
|
Guidance
Supports :
Guidance
Services Provided to Early School Leavers:
|
|
Target
Group:
Guidance
Services Provided to Early School Leavers:
|
|
Qualifications
Achievable (if applicable)
|
|
Opening
Hours:
| Monday |
<%= DoDateTime((service.Fields.Item("MonOpen").Value), 4, 1033) %> |
<%= DoDateTime((service.Fields.Item("MonClose").Value), 4, 1033) %> |
| Tuesday |
<%= DoDateTime((service.Fields.Item("TueOpen").Value), 4, 1033) %> |
<%= DoDateTime((service.Fields.Item("TueClose").Value), 4, 1033) %> |
| Wednesday |
<%= DoDateTime((service.Fields.Item("WedOpen").Value), 4, 1033) %> |
<%= DoDateTime((service.Fields.Item("WedClose").Value), 4, 1033) %> |
| Thursday |
<%= DoDateTime((service.Fields.Item("ThurOpen").Value), 4, 1033) %> |
<%= DoDateTime((service.Fields.Item("ThurClose").Value), 4, 1033) %> |
| Friday |
<%= DoDateTime((service.Fields.Item("FriOpen").Value), 4, 1033) %> |
<%= DoDateTime((service.Fields.Item("FriClose").Value), 4, 1033) %> |
| Saturday |
<%= DoDateTime((service.Fields.Item("SatOpen").Value), 4, 1033) %> |
<%= DoDateTime((service.Fields.Item("SatClose").Value), 4, 1033) %> |
| Sunday |
<%= DoDateTime((service.Fields.Item("SunOpen").Value), 4, 1033) %> |
<%= DoDateTime((service.Fields.Item("SunClose").Value), 4, 1033) %> |
|
|
Number
of Staff Employed:
| Full
Time: |
<%=(service.Fields.Item("StaffFT").Value)%> |
| Part
Time (regular): |
<%=(service.Fields.Item("StaffPTR").Value)%> |
| Part
Time (irregular): |
<%=(service.Fields.Item("StaffPTI").Value)%> |
| Community
Employment Workers: |
<%=(service.Fields.Item("StaffCEW").Value)%> |
| Community
Employment Volunteers: |
<%=(service.Fields.Item("StaffCEV").Value)%> |
|
|
|
<%
service.Close()
%>