29b266f9 by Kevin Burton

Update to HTML to add in opts cards

1 parent 012719e3
......@@ -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'
......
......@@ -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>';
}
......