%@LANGUAGE="VBScript"%>
<%Option Explicit%>
<%
dim DIR_WS, DIR_WS_CATALOG, DIR_WS_HTTPS_CATALOG, DIR_WS_IMAGES, DIR_WS_INCLUDES
dim DIR_WS_IMAGES_BUTTONS, DIR_WS_IMAGES_ICONS, DIR_WS_IMAGES_PRODUCTS
dim DIR_WS_FUNCTIONS, DIR_WS_CLASSES, DIR_WS_MODULES, DIR_WS_TEMPLATES
dim DIR_FS, DIR_FS_CATALOG, DIR_FS_IMAGES_PRODUCTS
dim DB_NAME, DB_PATH, DB_DRIVER, DB_LOCALPATH
'''
' Define the webserver and path parameters
' HTTP_SERVER is your Main webserver: eg-http:'www.yourdomain.com
' HTTPS_SERVER is your Secure webserver: eg-https:'www.yourdomain.com
const HTTP_SERVER = "http://mini-hangars.com"
const HTTPS_SERVER = "https://mini-hangars.com"
' Use secure webserver for checkout procedure?
const ENABLE_SSL = false
' NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
' * DIR_WS_* = Webserver directories (virtual/URL)
' these paths are relative to top of your webspace ...
DIR_WS = "/"
DIR_WS_CATALOG = DIR_WS & "cart/"
DIR_WS_HTTPS_CATALOG = DIR_WS & "cart/"
DIR_WS_IMAGES = DIR_WS & "images/"
DIR_WS_INCLUDES = DIR_WS & "includes/"
DIR_WS_IMAGES_PRODUCTS = DIR_WS_IMAGES & "catalog/"
DIR_WS_FUNCTIONS = DIR_WS_INCLUDES & "functions/"
DIR_WS_CLASSES = DIR_WS_INCLUDES & "classes/"
DIR_WS_MODULES = DIR_WS_INCLUDES & "modules/"
DIR_WS_TEMPLATES = DIR_WS_INCLUDES & "templates/"
DIR_WS_IMAGES_BUTTONS = DIR_WS_TEMPLATES & "images/buttons/"
DIR_WS_IMAGES_ICONS = DIR_WS_TEMPLATES & "images/icons/"
' * DIR_FS_* = Filesystem directories (local/physical)
' the following path is a COMPLETE path to your Cart files.
DIR_FS = Server.MapPath(DIR_WS)
DIR_FS_CATALOG = Server.MapPath(DIR_WS_CATALOG)
DIR_FS_IMAGES_PRODUCTS = Server.MapPath(DIR_WS_IMAGES_PRODUCTS)
' define our database connection
DB_NAME = "db_mini-hangars.mdb"
DB_PATH = "/db/"
DB_DRIVER = "Microsoft Access Driver (*.mdb)"
DB_LOCALPATH = Server.MapPath(DB_PATH&DB_NAME)
%>
<%
'/////
'/ CLASS ADMINISTRATOR
'/////
class c_administrator
private admin_id
private admin_created_date
private admin_modified_date
private admin_last_login_date
private admin_admintype_id
private admin_name
private admin_email
private admin_username
private admin_password
private admin_is_active
private admin_is_administrator
'=========Objects========='
private obj_admin_type
'=========public Inputs========='
private tmp_id
'=========Internal Variables========='
private a_sql, a_rs
'=========Initialize========='
private sub class_initialize()
is_administrator = false
id = 0
created_date = now()
modified_date = now()
last_login_date = now()
admintype_id = 0
name = ""
email = ""
username = ""
password = ""
is_active = false
set admintype = 0
end sub
public property get set_administrator(a_id)
tmp_id = ais_clean_numeric(a_id)
a_sql = "select * from administrators where admin_id = "&tmp_id&";"
set a_rs = conn.execute(a_sql)
if not a_rs.eof then
is_administrator = true
id = a_rs("admin_id")
created_date = a_rs("admin_created_date")
modified_date = a_rs("admin_modified_date")
last_login_date = a_rs("admin_last_login_date")
admintype_id = a_rs("admin_admintype_id")
name = a_rs("admin_name")
email = a_rs("admin_email")
username = a_rs("admin_username")
password = a_rs("admin_password")
is_active = a_rs("admin_is_active")
set admintype = admintype_id
else
clear()
end if
a_rs.close
end property
public property get set_administrator_by_username(a_username)
set a_rs = conn.execute("select admin_id from administrators where admin_username like '"&ais_db_input(a_username)&"';")
if a_rs.eof then
clear()
else
set_administrator a_rs("admin_id")
end if
end property
public property get set_administrator_by_username_not_id(a_username, a_id)
set a_rs = conn.execute("select admin_id from administrators where admin_username like '"&ais_db_input(a_username)&"' and admin_id <> "&ais_clean_numeric(a_id)&";")
if a_rs.eof then
clear()
else
set_administrator a_rs("admin_id")
end if
end property
public property get set_administrator_by_email(a_email)
set a_rs = conn.execute("select admin_id from administrators where admin_email like '"&ais_db_input(a_email)&"';")
if a_rs.eof then
clear()
else
set_administrator a_rs("admin_id")
end if
end property
public property get is_administrator()
is_administrator = admin_is_administrator
end property
private property let is_administrator(a_is_administrator)
admin_is_administrator = a_is_administrator
end property
public property get id()
id = admin_id
end property
private property let id(a_id)
admin_id = a_id
end property
public property get created_date()
created_date = admin_created_date
end property
private property let created_date(a_created_date)
admin_created_date = a_created_date
end property
public property get modified_date()
modified_date = admin_modified_date
end property
private property let modified_date(a_modified_date)
admin_modified_date = a_modified_date
end property
public property get last_login_date()
last_login_date = admin_last_login_date
end property
private property let last_login_date(a_last_login_date)
admin_last_login_date = a_last_login_date
end property
public property get admintype_id()
admintype_id = admin_admintype_id
end property
private property let admintype_id(a_admintype_id)
admin_admintype_id = a_admintype_id
end property
public property get name()
name = admin_name
end property
private property let name(a_name)
admin_name = a_name
end property
public property get email()
email = admin_email
end property
private property let email(a_email)
admin_email = a_email
end property
public property get username()
username = admin_username
end property
private property let username(a_username)
admin_username = a_username
end property
public property get password()
password = admin_password
end property
private property let password(a_password)
admin_password = a_password
end property
public property get is_active()
is_active = admin_is_active
end property
private property let is_active(a_is_active)
admin_is_active = a_is_active
end property
'=========Objects========='
public property get admintype()
set admintype = obj_admin_type
end property
private property set admintype(a_admintype_id)
if not isobject(obj_admin_type) then
set obj_admin_type = new c_administrator_type
end if
obj_admin_type.set_administrator_type a_admintype_id
if is_administrator and not obj_admin_type.is_administrator_type then
clear()
end if
end property
'=========Functions========='
public function clear()
is_administrator = false
id = 0
created_date = now()
modified_date = now()
last_login_date = now()
admintype_id = 0
name = ""
email = ""
username = ""
password = ""
is_active = false
set admintype = 0
end function
public function refresh()
set_administrator id
end function
'=========Terminate========='
private sub class_terminate()
set admin_id = nothing
set admin_created_date = nothing
set admin_modified_date = nothing
set admin_last_login_date = nothing
set admin_admintype_id = nothing
set admin_name = nothing
set admin_email = nothing
set admin_username = nothing
set admin_password = nothing
set admin_is_active = nothing
set admin_is_administrator = nothing
'=========Objects========='
set obj_admin_type = nothing
'=========public Inputs========='
set tmp_id = nothing
'=========Internal Variables========='
set a_sql = nothing
set a_rs = nothing
end sub
end class
'/////
'/ CLASS ADMINISTRATOR TYPE
'/////
class c_administrator_type
private admintype_id
private admintype_name
private admintype_description
private admintype_level
private admintype_is_administrator_type
'=========Objects========='
'=========public Inputs========='
private tmp_id
'=========Internal Variables========='
private at_sql, at_rs
'=========Initialize========='
private sub class_initialize()
is_administrator_type = false
id = 0
name = ""
description = ""
level = ""
end sub
public property get set_administrator_type(at_id)
tmp_id = ais_clean_numeric(at_id)
at_sql = "select * from administrators_types where admintype_id = "&tmp_id&";"
set at_rs = conn.execute(at_sql)
if not at_rs.eof then
is_administrator_type = true
id = at_rs("admintype_id")
name = at_rs("admintype_name")
description = at_rs("admintype_description")
level = at_rs("admintype_level")
else
clear()
end if
at_rs.close
end property
public property get is_administrator_type()
is_administrator_type = admintype_is_administrator_type
end property
private property let is_administrator_type(at_is_administrator_type)
admintype_is_administrator_type = at_is_administrator_type
end property
public property get id()
id = admintype_id
end property
private property let id(at_id)
admintype_id = at_id
end property
public property get name()
name = admintype_name
end property
private property let name(at_name)
admintype_name = at_name
end property
public property get description()
description = admintype_description
end property
private property let description(at_description)
admintype_description = at_description
end property
public property get level()
level = admintype_level
end property
private property let level(at_level)
admintype_level = at_level
end property
'=========Objects========='
'=========Functions========='
public function reset()
set_administrator id
end function
public function clear()
is_administrator_type = false
id = 0
name = ""
description = ""
level = ""
end function
'=========Terminate========='
private sub class_terminate()
set admintype_id = nothing
set admintype_name = nothing
set admintype_description = nothing
set admintype_level = nothing
set admintype_is_administrator_type = nothing
'=========Objects========='
'=========public Inputs========='
set tmp_id = nothing
'=========Internal Variables========='
set at_sql = nothing
set at_rs = nothing
end sub
end class
%>
<%
'/////
'/ CLASS CONFIGURATION
'/////
class c_configuration
private config_session_timeout
private config_script_timeout
private config_store_mail
private config_store_name
private config_store_address
private config_store_city
private config_store_state
private config_store_zip
private config_store_phone
private config_store_fax
private config_mail_host
private config_mail_user
private config_mail_password
private config_maint_in_progress
private config_cust_max_address_book_entries
private config_cart_show_empty_categories
private config_cart_show_product_count
private config_cart_add_to_cart_redirect
private config_cart_cat_num_of_col
private config_cart_prod_num_of_col
private config_cart_prod_page_size
private config_cart_prod_image_thumb_width
private config_cart_prod_image_width
private config_email_signature
private config_meta_tags_title
private config_meta_tags_keywords
private config_meta_tags_description
private config_is_configuration
'=========Objects========='
'=========public inputs========='
'=========internal variables========='
private c_rs
'=========Initialize========='
private sub class_initialize()
set_configuration()
end sub
public property get set_configuration()
set c_rs = conn.execute("select * from configurations;")
if c_rs.eof then
clear()
else
is_configuration = true
session_timeout = c_rs("config_session_timeout")
script_timeout = c_rs("config_script_timeout")
store_mail = c_rs("config_store_mail")
store_name = c_rs("config_store_name")
store_address = c_rs("config_store_address")
store_city = c_rs("config_store_city")
store_state = c_rs("config_store_state")
store_zip = c_rs("config_store_zip")
store_phone = c_rs("config_store_phone")
store_fax = c_rs("config_store_fax")
mail_host = c_rs("config_mail_host")
mail_user = c_rs("config_mail_user")
mail_password = c_rs("config_mail_password")
maint_in_progress = c_rs("config_maint_in_progress")
cust_max_address_book_entries = c_rs("config_cust_max_address_book_entries")
cart_show_empty_categories = c_rs("config_cart_show_empty_categories")
cart_show_product_count = c_rs("config_cart_show_product_count")
cart_add_to_cart_redirect = c_rs("config_cart_add_to_cart_redirect")
cart_cat_num_of_col = c_rs("config_cart_cat_num_of_col")
cart_prod_num_of_col = c_rs("config_cart_prod_num_of_col")
cart_prod_page_size = c_rs("config_cart_prod_page_size")
cart_prod_image_thumb_width = c_rs("config_cart_prod_image_thumb_width")
cart_prod_image_width = c_rs("config_cart_prod_image_width")
email_signature = c_rs("config_email_signature")
meta_tags_title = c_rs("config_meta_tags_title")
meta_tags_keywords = c_rs("config_meta_tags_keywords")
meta_tags_description = c_rs("config_meta_tags_description")
end if
c_rs.close()
end property
public property get is_configuration()
is_configuration = config_is_configuration
end property
private property let is_configuration(c_is_configuration)
config_is_configuration = c_is_configuration
end property
public property get session_timeout()
session_timeout = config_session_timeout
end property
private property let session_timeout(c_session_timeout)
config_session_timeout = c_session_timeout
end property
public property get script_timeout()
script_timeout = config_script_timeout
end property
private property let script_timeout(c_script_timeout)
config_script_timeout = c_script_timeout
end property
public property get store_mail()
store_mail = config_store_mail
end property
private property let store_mail(c_store_mail)
config_store_mail = c_store_mail
end property
public property get store_name()
store_name = config_store_name
end property
private property let store_name(c_store_name)
config_store_name = c_store_name
end property
public property get store_address()
store_address = config_store_address
end property
private property let store_address(c_store_address)
config_store_address = c_store_address
end property
public property get store_city()
store_city = config_store_city
end property
private property let store_city(c_store_city)
config_store_city = c_store_city
end property
public property get store_state()
store_state = config_store_state
end property
private property let store_state(c_store_state)
config_store_state = c_store_state
end property
public property get store_zip()
store_zip = config_store_zip
end property
private property let store_zip(c_store_zip)
config_store_zip = c_store_zip
end property
public property get store_phone()
store_phone = config_store_phone
end property
private property let store_phone(c_store_phone)
config_store_phone = c_store_phone
end property
public property get store_fax()
store_fax = config_store_fax
end property
private property let store_fax(c_store_fax)
config_store_fax = c_store_fax
end property
public property get mail_host()
mail_host = config_mail_host
end property
private property let mail_host(c_mail_host)
config_mail_host = c_mail_host
end property
public property get mail_user()
mail_user = config_mail_user
end property
private property let mail_user(c_mail_user)
config_mail_user = c_mail_user
end property
public property get mail_password()
mail_password = config_mail_password
end property
private property let mail_password(c_mail_password)
config_mail_password = c_mail_password
end property
public property get maint_in_progress()
maint_in_progress = config_maint_in_progress
end property
private property let maint_in_progress(c_maint_in_progress)
config_maint_in_progress = c_maint_in_progress
end property
public property get cust_max_address_book_entries()
cust_max_address_book_entries = config_cust_max_address_book_entries
end property
private property let cust_max_address_book_entries(c_cust_max_address_book_entries)
config_cust_max_address_book_entries = c_cust_max_address_book_entries
end property
public property get cart_show_empty_categories()
cart_show_empty_categories = config_cart_show_empty_categories
end property
private property let cart_show_empty_categories(c_cart_show_empty_categories)
config_cart_show_empty_categories = c_cart_show_empty_categories
end property
public property get cart_show_product_count()
cart_show_product_count = config_cart_show_product_count
end property
private property let cart_show_product_count(c_cart_show_product_count)
config_cart_show_product_count = c_cart_show_product_count
end property
public property get cart_add_to_cart_redirect()
cart_add_to_cart_redirect = config_cart_add_to_cart_redirect
end property
private property let cart_add_to_cart_redirect(c_cart_add_to_cart_redirect)
config_cart_add_to_cart_redirect = c_cart_add_to_cart_redirect
end property
public property get cart_cat_num_of_col()
cart_cat_num_of_col = config_cart_cat_num_of_col
end property
private property let cart_cat_num_of_col(c_cart_cat_num_of_col)
config_cart_cat_num_of_col = c_cart_cat_num_of_col
end property
public property get cart_prod_num_of_col()
cart_prod_num_of_col = config_cart_prod_num_of_col
end property
private property let cart_prod_num_of_col(c_cart_prod_num_of_col)
config_cart_prod_num_of_col = c_cart_prod_num_of_col
end property
public property get cart_prod_page_size()
cart_prod_page_size = config_cart_prod_page_size
end property
private property let cart_prod_page_size(c_cart_prod_page_size)
config_cart_prod_page_size = c_cart_prod_page_size
end property
public property get cart_prod_image_thumb_width()
cart_prod_image_thumb_width = config_cart_prod_image_thumb_width
end property
private property let cart_prod_image_thumb_width(c_cart_prod_image_thumb_width)
config_cart_prod_image_thumb_width = c_cart_prod_image_thumb_width
end property
public property get cart_prod_image_width()
cart_prod_image_width = config_cart_prod_image_width
end property
private property let cart_prod_image_width(c_cart_prod_image_width)
config_cart_prod_image_width = c_cart_prod_image_width
end property
public property get email_signature()
email_signature = config_email_signature
end property
private property let email_signature(c_email_signature)
config_email_signature = c_email_signature
end property
public property get meta_tags_title()
meta_tags_title = config_meta_tags_title
end property
private property let meta_tags_title(c_meta_tags_title)
config_meta_tags_title = c_meta_tags_title
end property
public property get meta_tags_keywords()
meta_tags_keywords = config_meta_tags_keywords
end property
private property let meta_tags_keywords(c_meta_tags_keywords)
config_meta_tags_keywords = c_meta_tags_keywords
end property
public property get meta_tags_description()
meta_tags_description = config_meta_tags_description
end property
private property let meta_tags_description(c_meta_tags_description)
config_meta_tags_description = c_meta_tags_description
end property
'=========Objects========='
'=========Functions========='
public function refresh()
set_configuration id
end function
public function clear()
is_configuration = false
session_timeout = ""
script_timeout = ""
store_mail = ""
store_name = ""
store_address = ""
store_city = ""
store_state = ""
store_zip = ""
store_phone = ""
store_fax = ""
mail_host = ""
mail_user = ""
mail_password = ""
maint_in_progress = true
cart_show_empty_categories = ""
cart_show_product_count = ""
cart_add_to_cart_redirect = ""
cart_cat_num_of_col = ""
cart_prod_num_of_col = ""
cart_prod_page_size = ""
cart_prod_image_thumb_width = ""
cart_prod_image_width = ""
email_signature = ""
meta_tags_title = ""
meta_tags_keywords = ""
meta_tags_description = ""
end function
'=========Terminate========='
private sub class_terminate()
set config_session_timeout = nothing
set config_script_timeout = nothing
set config_store_mail = nothing
set config_store_name = nothing
set config_store_address = nothing
set config_store_city = nothing
set config_store_state = nothing
set config_store_zip = nothing
set config_store_phone = nothing
set config_store_fax = nothing
set config_mail_host = nothing
set config_mail_user = nothing
set config_mail_password = nothing
set config_maint_in_progress = nothing
set config_cart_show_empty_categories = nothing
set config_cart_show_product_count = nothing
set config_cart_add_to_cart_redirect = nothing
set config_cart_cat_num_of_col = nothing
set config_cart_prod_num_of_col = nothing
set config_cart_prod_image_thumb_width = nothing
set config_cart_prod_image_width = nothing
set config_email_signature = nothing
set config_meta_tags_title = nothing
set config_meta_tags_keywords = nothing
set config_meta_tags_description = nothing
set config_is_configuration = nothing
'=========Objects========='
'=========internal variables========='
set c_rs = nothing
end sub
end class
%>
<%
'/////
'/ CLASS MESSAGE
'/////
class c_message
private msg_id
private msg_msgstat_id
private msg_date_created
private msg_subject
private msg_name
private msg_email
private msg_phone
private msg_comment
private msg_is_set
'=========Objects========='
private obj_msgstat
'=========Internal Variables========='
private rs
'=========Initialize========='
private sub class_initialize()
clear()
end sub
public property get set_message(m_id)
set rs = conn.execute("select * from messages where msg_id = "&ais_clean_numeric(trim(m_id))&";")
if rs.eof then
clear()
else
is_set = true
id = rs("msg_id")
msgstat_id = rs("msg_msgstat_id")
date_created = rs("msg_date_created")
subject = rs("msg_subject")
name = rs("msg_name")
email = rs("msg_email")
phone = rs("msg_phone")
comment = rs("msg_comment")
set msgstat = msgstat_id
end if
rs.close
end property
public property get set_last()
set rs = conn.execute("select top 1 msg_id from messages order by msg_id desc;")
if rs.eof then
clear()
else
set_message rs("msg_id")
end if
end property
public property get is_set()
is_set = msg_is_set
end property
private property let is_set(m_is_set)
msg_is_set = m_is_set
end property
public property get id()
id = msg_id
end property
private property let id(m_id)
msg_id = m_id
end property
public property get msgstat_id()
msgstat_id = msg_msgstat_id
end property
private property let msgstat_id(m_msgstat_id)
msg_msgstat_id = m_msgstat_id
end property
public property get date_created()
date_created = msg_date_created
end property
private property let date_created(m_date_created)
msg_date_created = m_date_created
end property
public property get subject()
subject = msg_subject
end property
private property let subject(m_subject)
msg_subject = m_subject
end property
public property get name()
name = msg_name
end property
private property let name(m_name)
msg_name = m_name
end property
public property get email()
email = msg_email
end property
private property let email(m_email)
msg_email = m_email
end property
public property get phone()
phone = msg_phone
end property
private property let phone(m_phone)
msg_phone = m_phone
end property
public property get comment()
comment = msg_comment
end property
private property let comment(m_comment)
msg_comment = m_comment
end property
'=========Objects========='
public property get msgstat()
set msgstat = obj_msgstat
end property
private property set msgstat(m_msgstat_id)
if not isobject(obj_msgstat) then
set obj_msgstat = new c_message_status
end if
obj_msgstat.set_message_status m_msgstat_id
end property
'=========Functions / Subs========='
public function refresh()
set_message id
end function
public function clear()
is_set = false
id = ""
msgstat_id = ""
date_created = ""
subject = ""
name = ""
email = ""
phone = ""
comment = ""
set msgstat = msgstat_id
end function
'=========Terminate========='
private sub class_terminate()
set msg_id = nothing
set msg_msgstat_id = nothing
set msg_date_created = nothing
set msg_subject = nothing
set msg_name = nothing
set msg_email = nothing
set msg_phone = nothing
set msg_comment = nothing
'=========Objects========='
set obj_msgstat = nothing
'=========Internal Variables========='
set rs = nothing
end sub
end class
'/////
'/ CLASS MESSAGE_STATUS
'/////
class c_message_status
private msgstat_id
private msgstat_name
private msgstat_sort_order
private msgstat_is_set
'=========Objects========='
'=========Internal Variables========='
private rs
'=========Initialize========='
private sub class_initialize()
clear()
end sub
public property get set_message_status(m_id)
set rs = conn.execute("select * from message_status where msgstat_id = "&ais_clean_numeric(m_id)&";")
if rs.eof then
clear()
else
is_set = true
id = rs("msgstat_id")
name = rs("msgstat_name")
sort_order = rs("msgstat_sort_order")
end if
rs.close
end property
public property get set_default()
set rs = conn.execute("select top 1 msgstat_id from message_status order by msgstat_sort_order;")
if rs.eof then
clear()
else
set_message_status rs("msgstat_id")
end if
end property
public property get is_set()
is_set = msgstat_is_set
end property
private property let is_set(m_is_set)
msgstat_is_set = m_is_set
end property
public property get id()
id = msgstat_id
end property
private property let id(m_id)
msgstat_id = m_id
end property
public property get name()
name = msgstat_name
end property
private property let name(m_name)
msgstat_name = m_name
end property
public property get sort_order()
sort_order = msgstat_sort_order
end property
private property let sort_order(m_sort_order)
msgstat_sort_order = m_sort_order
end property
'=========Objects========='
'=========Functions / Subs========='
public function refresh()
set_message_status id
end function
public function clear()
is_set = false
id = ""
name = ""
sort_order = ""
end function
'=========Terminate========='
private sub class_terminate()
set msgstat_id = nothing
set msgstat_name = nothing
set msgstat_sort_order = nothing
'=========Objects========='
'=========Internal Variables========='
set rs = nothing
end sub
end class
%>
<%
'/////
'/ CLASS ZONES
'/////
class c_zone
private zone_id
private zone_country_id
private zone_code
private zone_name
private zone_is_zone
'=========Objects========='
private obj_country
'=========Internal Variables========='
private z_rs
'=========Initialize========='
private sub class_initialize()
clear()
end sub
public property get set_zone(z_id)
set z_rs = conn.execute("select * from zones where zone_id = "&ais_clean_numeric(z_id)&";")
if z_rs.eof then
clear()
else
is_zone = true
id = z_rs("zone_id")
country_id = z_rs("zone_country_id")
code = z_rs("zone_code")
name = z_rs("zone_name")
set country = country_id
end if
z_rs.close
end property
public property get is_zone()
is_zone = zone_is_zone
end property
private property let is_zone(z_is_zone)
zone_is_zone = z_is_zone
end property
public property get id()
id = zone_id
end property
private property let id(z_id)
zone_id = z_id
end property
public property get country_id()
country_id = zone_country_id
end property
private property let country_id(z_country_id)
zone_country_id = z_country_id
end property
public property get code()
code = zone_code
end property
private property let code(z_code)
zone_code = z_code
end property
public property get name()
name = zone_name
end property
private property let name(z_name)
zone_name = z_name
end property
'=========Objects========='
public property get country()
set country = obj_country
end property
private property set country(z_country_id)
if not isobject(obj_country) then
set obj_country = new c_country
end if
obj_country.set_country z_country_id
if is_zone and not obj_country.is_country then
clear()
end if
end property
'=========Functions / Subs========='
public function refresh()
set_zone id
end function
public function clear()
is_zone = false
id = ""
country_id = ""
code = ""
name = ""
set country = country_id
end function
public sub sandbox()
response.write "ZONE
"&vbcrlf
response.write "is_zone: "&me.is_zone&"
"&vbcrlf
response.write "id: "&me.id&"
"&vbcrlf
response.write "country_id: "&me.country_id&"
"&vbcrlf
response.write "code: "&me.code&"
"&vbcrlf
response.write "name: "&me.name&"
"&vbcrlf
response.write "
| "&msg&" | "&vbCRLF response.write "
<%if ais_not_null(err_message) then%>
|
|
Ordering a Mini Hangar
|
<%=config.store_name%>
<%=config.store_address%> <%=config.store_city&", "&config.store_state&" "&config.store_zip%> <%=config.store_phone%> <%select case action%> <%case "sent"%>
Your message has been successfully sent.
<%case else%>
<%end select%>
Visit the other sites by Coverall Protective Structures: Dogz-Kennels.com |