Permalink
Browse files

xhtml fixes (report #108)

  • Loading branch information...
1 parent 3eb89a3 commit ccf3fd07f4e1a99fb5ed4b17b259c7084e85db18 @haraldpdl haraldpdl committed Nov 12, 2010
@@ -183,7 +183,7 @@
require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
function popupImageWindow(url) {
window.open(url,'popupImageWindow','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')
}
@@ -443,7 +443,7 @@
$form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_product' : 'insert_product';
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
var tax_rates = new Array();
<?php
for ($i=0, $n=sizeof($tax_class_array); $i<$n; $i++) {
@@ -554,7 +554,7 @@ function updateNet() {
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
updateGross();
//--></script>
<?php
@@ -231,7 +231,7 @@
if ($action == 'edit' || $action == 'update') {
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
function check_form() {
var error = 0;
@@ -64,7 +64,7 @@
<title><?php echo TITLE; ?></title>
<base href="../../../../">
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
+<script type="text/javascript" src="includes/general.js"></script>
</head>
<body onload="SetFocus();">
<!-- header //-->
@@ -83,7 +83,7 @@
if (isset($HTTP_GET_VARS['zID']) && (($saction == 'edit') || ($saction == 'new'))) {
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
function resetZoneSelected(theForm) {
if (theForm.state.value != '') {
theForm.zone_id.selectedIndex = '0';
@@ -410,8 +410,8 @@ function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
if ($html) {
// HTML Mode
- $HR = '<hr>';
- $hr = '<hr>';
+ $HR = '<hr />';
+ $hr = '<hr />';
if ( ($boln == '') && ($eoln == "\n") ) { // Values not specified, use rational defaults
$CR = '<br />';
$cr = '<br />';
@@ -54,7 +54,7 @@ function getOutput() {
$output = <<<EOD
<div id="d_total_customers" style="width: 100%; height: 150px;"></div>
-<script language="javascript" type="text/javascript">
+<script type="text/javascript">
$(function () {
var plot30 = [$js_array];
$.plot($('#d_total_customers'), [ {
@@ -54,7 +54,7 @@ function getOutput() {
$output = <<<EOD
<div id="d_total_revenue" style="width: 100%; height: 150px;"></div>
-<script language="javascript" type="text/javascript">
+<script type="text/javascript">
$(function () {
var plot30 = [$js_array];
$.plot($('#d_total_revenue'), [ {
@@ -29,7 +29,7 @@ function choose_audience() {
'text' => $products['products_name']);
}
-$choose_audience_string = '<script language="javascript"><!--
+$choose_audience_string = '<script type="text/javascript"><!--
function mover(move) {
if (move == \'remove\') {
for (x=0; x<(document.notifications.products.length); x++) {
@@ -16,13 +16,13 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<meta name="robots" content="noindex,nofollow">
<title><?php echo TITLE; ?></title>
-<!--[if IE]><script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]-->
+<!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.6.css'); ?>">
-<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.4.2.min.js'); ?>"></script>
-<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.6.min.js'); ?>"></script>
-<script language="javascript" type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script>
+<script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.4.2.min.js'); ?>"></script>
+<script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.6.min.js'); ?>"></script>
+<script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
-<script language="javascript" src="includes/general.js"></script>
+<script type="text/javascript" src="includes/general.js"></script>
</head>
<body>
@@ -36,7 +36,7 @@
<html <?php echo HTML_PARAMS; ?>>
<head>
<title><?php echo $page_title; ?></title>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
var i=0;
function resize() {
@@ -19,8 +19,8 @@
require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<script language="javascript" src="includes/general.js"></script>
-<script language="javascript"><!--
+<script type="text/javascript" src="includes/general.js"></script>
+<script type="text/javascript"><!--
function check_form() {
var error_message = "<?php echo JS_ERROR; ?>";
var error_found = false;
@@ -197,7 +197,7 @@
require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
var selected;
function selectRowEffect(object, buttonSelect) {
@@ -46,7 +46,7 @@
<NOSCRIPT>
<?php echo '<center><p>' . MODULE_PAYMENT_SAGE_PAY_DIRECT_3DAUTH_INFO . '</p><p><input type="submit" value="' . MODULE_PAYMENT_SAGE_PAY_DIRECT_3DAUTH_BUTTON . '"/></p></center>'; ?>
</NOSCRIPT>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
document.form.submit();
//--></script>
</body>
@@ -49,7 +49,7 @@
<p align="center" class="main"><input type="submit" value="Continue" /></p>
</noscript>
</form>
-<script language="javascript">
+<script type="text/javascript">
document.redirect.submit();
</script>
</body>
@@ -80,7 +80,7 @@ function update_status() {
function javascript_validation() {
$js = '';
if (is_array($this->modules)) {
- $js = '<script language="javascript"><!-- ' . "\n" .
+ $js = '<script type="text/javascript"><!-- ' . "\n" .
'function check_form() {' . "\n" .
' var error = 0;' . "\n" .
' var error_message = "' . JS_ERROR . '";' . "\n" .
@@ -10,7 +10,7 @@
Released under the GNU General Public License
*/
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
var form = "";
var submitted = false;
var error = false;
@@ -479,8 +479,8 @@ function tep_address_format($address_format_id, $address, $html, $boln, $eoln) {
if ($html) {
// HTML Mode
- $HR = '<hr>';
- $hr = '<hr>';
+ $HR = '<hr />';
+ $hr = '<hr />';
if ( ($boln == '') && ($eoln == "\n") ) { // Values not specified, use rational defaults
$CR = '<br />';
$cr = '<br />';
@@ -11,8 +11,8 @@
*/
?>
-<script language="javascript" type="text/javascript" src="ext/xmlhttp/xmlhttp.js"></script>
-<script language="javascript" type="text/javascript">
+<script type="text/javascript" src="ext/xmlhttp/xmlhttp.js"></script>
+<script type="text/javascript">
<!--
var dbServer;
@@ -42,7 +42,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')
}
@@ -60,7 +60,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>
@@ -47,7 +47,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')
}
@@ -65,7 +65,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=' . $review['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $review['products_image'], addslashes($review['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
@@ -73,7 +73,7 @@
require(DIR_WS_INCLUDES . 'template_top.php');
?>
-<script language="javascript"><!--
+<script type="text/javascript"><!--
function checkForm() {
var error = 0;
var error_message = "<?php echo JS_ERROR; ?>";
@@ -124,7 +124,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 ccf3fd0

Please sign in to comment.