Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3a8f7bff
authored
2010-11-16 20:54:09 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
HTML updates for dropdown.
1 parent
bccbb2b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
com/HTML/HTML.php
com/HTML/HTML.php
View file @
3a8f7bf
...
...
@@ -26,7 +26,38 @@ function select_opts_states($selected = null, $echo = true) {
return
select_opts
(
Vars
::
$states
,
$selected
,
$echo
);
}
function
select_opts_prefixes
(
$selected
=
null
,
$echo
=
true
)
{
return
select_opts
(
Vars
::
$prefixes
,
$selected
,
$echo
);
}
function
select_opts_countries
(
$selected
=
null
,
$echo
=
true
)
{
return
select_opts
(
Vars
::
$countries
,
$selected
,
$echo
);
}
function
select_opts_securities
(
$selected
=
null
,
$echo
=
true
)
{
return
select_opts
(
Vars
::
$securities
,
$selected
,
$echo
);
}
class
Vars
{
public
static
$prefixes
=
Array
(
''
=>
'-- select --'
,
'Mr.'
=>
'Mr'
,
'Mrs.'
=>
'Mrs.'
,
'Ms.'
=>
'Ms.'
,
'Miss'
=>
'Miss'
,
'Master'
=>
'Master'
,
'Dr.'
=>
'Dr.'
,
'Prof.'
=>
'Prof.'
);
public
static
$countries
=
Array
(
'CAN'
=>
'Canada'
,
'USA'
=>
'United States'
,
'MEX'
=>
'Mexico'
,
'Other'
=>
'Other'
);
public
static
$provinces
=
Array
(
'AB'
=>
'Alberta'
,
'BC'
=>
'British Columbia'
...
...
@@ -42,6 +73,12 @@ class Vars {
,
'QC'
=>
'Quebec'
,
'YT'
=>
'Yukon'
);
public
static
$securities
=
Array
(
'S01'
=>
"What is your Mother's maiden name?"
,
'S02'
=>
"Who was you childhood hero?"
,
'S03'
=>
"What is/was the name of your first pet?"
);
public
static
$states
=
Array
(
'AL'
=>
'Alabama'
...
...
Please
register
or
sign in
to post a comment