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
9cebfa08
authored
2011-01-29 21:39:14 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
udpate the select opts
1 parent
a1fdf9d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
com/HTML/HTML.php
com/HTML/HTML.php
View file @
9cebfa0
...
...
@@ -19,7 +19,21 @@ function select_opts(Array $options, $selected = null, $echo = true) {
}
function
select_opts_provinces
(
$selected
=
null
,
$echo
=
true
)
{
return
select_opts
(
Vars
::
$provinces
,
$selected
,
$echo
);
$return
=
"<option>Select a State/Province</option>"
;
$return
.=
'<optgroup label="Canada">'
;
$return
.=
select_opts
(
Vars
::
$provinces
[
'CA'
],
$selected
,
false
);
$return
.=
'</optgroup>'
;
$return
.=
'<optgroup label="United States">'
;
$return
.=
select_opts
(
Vars
::
$provinces
[
'US'
],
$selected
,
false
);
$return
.=
'</optgroup>'
;
$return
.=
'<optgroup label="Other">'
;
$return
.=
'<option value="other">Outside Canada/USA</option>'
;
$return
.=
'</optgroup>'
;
return
$return
;
}
function
select_opts_cards
(
$selected
=
null
,
$echo
=
true
)
{
...
...
Please
register
or
sign in
to post a comment