Permalink
Browse files

xhtml fixes

  • Loading branch information...
1 parent 8194e1c commit 26c88eec08233c8b47dfaac8da81bca8b92ffd89 @haraldpdl haraldpdl committed Nov 4, 2010
@@ -781,9 +781,9 @@ function tep_cfg_select_option($select_array, $key_value, $key = '') {
$string .= '<br /><input type="radio" name="' . $name . '" value="' . $select_array[$i] . '"';
- if ($key_value == $select_array[$i]) $string .= ' CHECKED';
+ if ($key_value == $select_array[$i]) $string .= ' checked="checked"';
- $string .= '> ' . $select_array[$i];
+ $string .= ' /> ' . $select_array[$i];
}
return $string;
@@ -796,8 +796,8 @@ function tep_mod_select_option($select_array, $key_name, $key_value) {
while (list($key, $value) = each($select_array)) {
if (is_int($key)) $key = $value;
$string .= '<br /><input type="radio" name="configuration[' . $key_name . ']" value="' . $key . '"';
- if ($key_value == $key) $string .= ' CHECKED';
- $string .= '> ' . $value;
+ if ($key_value == $key) $string .= ' checked="checked"';
+ $string .= ' /> ' . $value;
}
return $string;
@@ -78,7 +78,7 @@ function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
if (tep_not_null($parameters)) $image .= ' ' . $parameters;
- $image .= '>';
+ $image .= ' />';
return $image;
}
@@ -95,7 +95,7 @@ function tep_image_submit($image, $alt = '', $parameters = '') {
if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;
- $image_submit .= '>';
+ $image_submit .= ' />';
return $image_submit;
}
@@ -194,7 +194,7 @@ function tep_draw_input_field($name, $value = '', $parameters = '', $required =
if (tep_not_null($parameters)) $field .= ' ' . $parameters;
- $field .= '>';
+ $field .= ' />';
if ($required == true) $field .= TEXT_FIELD_REQUIRED;
@@ -227,10 +227,10 @@ function tep_draw_selection_field($name, $type, $value = '', $checked = false, $
if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';
if ( ($checked == true) || (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name]) && (($HTTP_GET_VARS[$name] == 'on') || (stripslashes($HTTP_GET_VARS[$name]) == $value))) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name]) && (($HTTP_POST_VARS[$name] == 'on') || (stripslashes($HTTP_POST_VARS[$name]) == $value))) || (tep_not_null($compare) && ($value == $compare)) ) {
- $selection .= ' CHECKED';
+ $selection .= ' checked="checked"';
}
- $selection .= '>';
+ $selection .= ' />';
return $selection;
}
@@ -296,7 +296,7 @@ function tep_draw_hidden_field($name, $value = '', $parameters = '') {
if (tep_not_null($parameters)) $field .= ' ' . $parameters;
- $field .= '>';
+ $field .= ' />';
return $field;
}
@@ -339,7 +339,7 @@ function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = ''
for ($i=0, $n=sizeof($values); $i<$n; $i++) {
$field .= '<option value="' . tep_output_string($values[$i]['id']) . '"';
if ($default == $values[$i]['id']) {
- $field .= ' SELECTED';
+ $field .= ' selected="selected"';
}
$field .= '>' . tep_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '</option>';
@@ -157,7 +157,7 @@ function tep_draw_form($name, $action, $method = 'post', $parameters = '', $toke
$form .= '>';
if ( ($tokenize == true) && isset($sessiontoken) ) {
- $form .= '<input type="hidden" name="formid" value="' . tep_output_string($sessiontoken) . '">';
+ $form .= '<input type="hidden" name="formid" value="' . tep_output_string($sessiontoken) . '" />';
}
return $form;
@@ -209,7 +209,7 @@ function tep_draw_selection_field($name, $type, $value = '', $checked = false, $
if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';
if ( ($checked == true) || (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name]) && (($HTTP_GET_VARS[$name] == 'on') || (stripslashes($HTTP_GET_VARS[$name]) == $value))) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name]) && (($HTTP_POST_VARS[$name] == 'on') || (stripslashes($HTTP_POST_VARS[$name]) == $value))) ) {
- $selection .= ' CHECKED';
+ $selection .= ' checked="checked"';
}
if (tep_not_null($parameters)) $selection .= ' ' . $parameters;

0 comments on commit 26c88ee

Please sign in to comment.