Skip to content

Commit

Permalink
xhtml fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed Nov 4, 2010
1 parent 8194e1c commit 26c88ee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions catalog/admin/includes/functions/general.php
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions catalog/admin/includes/functions/html_output.php
Expand Up @@ -78,7 +78,7 @@ function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')

if (tep_not_null($parameters)) $image .= ' ' . $parameters;

$image .= '>';
$image .= ' />';

return $image;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -296,7 +296,7 @@ function tep_draw_hidden_field($name, $value = '', $parameters = '') {

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';
$field .= ' />';

return $field;
}
Expand Down Expand Up @@ -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>';
Expand Down
4 changes: 2 additions & 2 deletions catalog/includes/functions/html_output.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 26c88ee

Please sign in to comment.