Permalink
Browse files

More XHTML fixes

  • Loading branch information...
1 parent b865531 commit ffe779e76aed28c267de8a43b08c39e06b1c75c8 @markkevans markkevans committed with haraldpdl Oct 27, 2010
Showing with 9 additions and 9 deletions.
  1. +7 −7 catalog/includes/functions/html_output.php
  2. +2 −2 catalog/product_info.php
@@ -109,7 +109,7 @@ function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
if (tep_not_null($parameters)) $image .= ' ' . $parameters;
- $image .= '>';
+ $image .= ' />';
return $image;
}
@@ -120,13 +120,13 @@ function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
function tep_image_submit($image, $alt = '', $parameters = '') {
global $language;
- $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
+ $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';
if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;
- $image_submit .= '>';
+ $image_submit .= ' />';
return $image_submit;
}
@@ -184,7 +184,7 @@ function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'tex
if (tep_not_null($parameters)) $field .= ' ' . $parameters;
- $field .= '>';
+ $field .= ' />';
return $field;
}
@@ -210,7 +210,7 @@ function tep_draw_selection_field($name, $type, $value = '', $checked = false, $
if (tep_not_null($parameters)) $selection .= ' ' . $parameters;
- $selection .= '>';
+ $selection .= ' />';
return $selection;
}
@@ -272,7 +272,7 @@ function tep_draw_hidden_field($name, $value = '', $parameters = '') {
if (tep_not_null($parameters)) $field .= ' ' . $parameters;
- $field .= '>';
+ $field .= ' />';
return $field;
}
@@ -309,7 +309,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>';
View
@@ -20,7 +20,7 @@
require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
@@ -126,7 +126,7 @@ function popupWindow(url) {
?>
<div style="float: right; width: <?php echo SMALL_IMAGE_WIDTH+20; ?>px; text-align: center;">
-<script language="javascript"><!--
+<script type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>

0 comments on commit ffe779e

Please sign in to comment.