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) { ...@@ -22,6 +22,10 @@ function select_opts_provinces($selected = null, $echo = true) {
22 return select_opts(Vars::$provinces, $selected, $echo); 22 return select_opts(Vars::$provinces, $selected, $echo);
23 } 23 }
24 24
25 function select_opts_cards($selected = null, $echo = true) {
26 return select_opts(Vars::$creditcards, $selected, $echo);
27 }
28
25 function select_opts_states($selected = null, $echo = true) { 29 function select_opts_states($selected = null, $echo = true) {
26 return select_opts(Vars::$states, $selected, $echo); 30 return select_opts(Vars::$states, $selected, $echo);
27 } 31 }
...@@ -125,6 +129,12 @@ class Vars { ...@@ -125,6 +129,12 @@ class Vars {
125 , 'S02' => "Who was you childhood hero?" 129 , 'S02' => "Who was you childhood hero?"
126 , 'S03' => "What is/was the name of your first pet?" 130 , 'S03' => "What is/was the name of your first pet?"
127 ); 131 );
132
133 public static $creditcards = Array(
134 'visa' => "Visa"
135 , 'mc' => "MasterCard"
136 , 'amex' => "American Express"
137 );
128 138
129 public static $states = Array( 139 public static $states = Array(
130 'AL' => 'Alabama' 140 'AL' => 'Alabama'
......
...@@ -83,9 +83,9 @@ function print_user_notices($show_more = true) { ...@@ -83,9 +83,9 @@ function print_user_notices($show_more = true) {
83 } 83 }
84 endif; 84 endif;
85 85
86 $rows .= '<tr class="notice-row">'; 86 $rows .= '<tr class="notice-row" id="'.$i.'">';
87 if ($notices[$i]['status']=="unread") { 87 if ($notices[$i]['status']=="unread") {
88 $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>'; 88 $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>';
89 } else { 89 } else {
90 $rows .= '<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><img src="assets/images/blank.gif" width="12" height="12" /></td>'; 90 $rows .= '<td width="12" style="padding:0;padding-left:10px;vertical-align:middle;"><img src="assets/images/blank.gif" width="12" height="12" /></td>';
91 } 91 }
......