KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/highlandlabs/cqi-bin/ALFA_DATA/alfasymlink/root/domains/howardbender2/jobs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/highlandlabs/cqi-bin/ALFA_DATA/alfasymlink/root/domains/howardbender2/jobs/regsch-1.asp
<%@ language="vbscript"%>

<%if Request("userid") = "" then Response.Redirect "default.asp"%>

<!--#include file=DataStore.asp-->

<%
Dim sUserID
sUserID = Request("userid")

Dim sSchoolID
sSchoolID = Request("schoolid")

if sSchoolID = "" then sSchoolID = 0 else sSchoolID = Request("schoolid")

Dim objConn 'Connection Object
Dim rsSchool   'Recordset Object	

'create the connection object
Set objConn = Server.CreateObject("ADODB.Connection")

'and open it
objConn.Open sConnect

'Create the recordset object
Set rsSchool = Server.CreateObject("ADODB.Recordset")

'and open the SCHOOL table
rsSchool.Open "SCHOOL", objConn, 0, 3

'Filter the recordset and verify if information has already been saved with this user id
rsSchool.Filter = "schoolid = " & sSchoolID

Dim bNew
bNew = False
'test if recordset is empty
if rsSchool.EOF then
	'there is no record for this person add his information
	rsSchool.AddNew
	bNew = True
end if

'store new/modified information
rsSchool("manager_id")= Trim(sUserID)
rsSchool("name")= Request.Form("txtName")
rsSchool("address1") = Request.Form("txtAddress1")
rsSchool("address2")= Request.Form("txtAddress2")
rsSchool("city")= Request.Form("txtCity")
rsSchool("state")=Request.Form("cboState")
rsSchool("zip")= Request.Form("txtZipCode")
if bNew then
	rsSchool("website")= "http://" & Request.Form("txtWebSite")
else
	rsSchool("website")= Request.Form("txtWebSite")
end if
rsSchool("contact_name")= Request.Form("txtContactName")
rsSchool("contact_email")= Request.Form("txtContactEmail")
rsSchool("contact_areacode")= Request.Form("txtContactAreaCode")
rsSchool("contact_phone")= Request.Form("txtContactPhone")
rsSchool("dateregistered")= date()
rsSchool("active")= -1
'end store
rsSchool.Update

rsSchool.Close
objConn.Close

if bNew then Response.Redirect "schlist.asp?userid=" & sUserID else Response.Redirect "schlist.asp?userid=" & sUserID
%>

Anon7 - 2021