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
29b266f9
authored
2010-12-20 14:43:25 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update to HTML to add in opts cards
1 parent
012719e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
com/HTML/HTML.php
com/Notifications/Notifications.php
com/HTML/HTML.php
View file @
29b266f
...
...
@@ -22,6 +22,10 @@ function select_opts_provinces($selected = null, $echo = true) {
return
select_opts
(
Vars
::
$provinces
,
$selected
,
$echo
);
}
function
select_opts_cards
(
$selected
=
null
,
$echo
=
true
)
{
return
select_opts
(
Vars
::
$creditcards
,
$selected
,
$echo
);
}
function
select_opts_states
(
$selected
=
null
,
$echo
=
true
)
{
return
select_opts
(
Vars
::
$states
,
$selected
,
$echo
);
}
...
...
@@ -126,6 +130,12 @@ class Vars {
,
'S03'
=>
"What is/was the name of your first pet?"
);
public
static
$creditcards
=
Array
(
'visa'
=>
"Visa"
,
'mc'
=>
"MasterCard"
,
'amex'
=>
"American Express"
);
public
static
$states
=
Array
(
'AL'
=>
'Alabama'
,
'AK'
=>
'Alaska'
...
...
com/Notifications/Notifications.php
View file @
29b266f
...
...
@@ -83,9 +83,9 @@ function print_user_notices($show_more = true) {
}
endif
;
$rows
.=
'<tr class="notice-row">'
;
$rows
.=
'<tr class="notice-row"
id="'
.
$i
.
'"
>'
;
if
(
$notices
[
$i
][
'status'
]
==
"unread"
)
{
$rows
.=
'<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><a
id="'
.
$i
.
'"
href="#" class="notice '
.
((
$notices
[
$i
][
'status'
]
==
"read"
)
?
'read'
:
'unread'
)
.
'"><img src="assets/images/blank.gif" width="12" height="12" /></a></td>'
;
$rows
.=
'<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><a href="#" class="notice '
.
((
$notices
[
$i
][
'status'
]
==
"read"
)
?
'read'
:
'unread'
)
.
'"><img src="assets/images/blank.gif" width="12" height="12" /></a></td>'
;
}
else
{
$rows
.=
'<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><img src="assets/images/blank.gif" width="12" height="12" /></td>'
;
}
...
...
Please
register
or
sign in
to post a comment