if ($edit_rate)
text_row(_("Exchange Rate:"), '_ex_rate', $rate, 8, 8, null, "", " $from_currency = 1 $to_currency");
else
- label_row(_("Exchange Rate:"),"<span id='_ex_rate'>$rate</span> $from_currency = 1 $to_currency" );
+ label_row(_("Exchange Rate:"),"<span style='vertical-align:top;' id='_ex_rate'>$rate</span> $from_currency = 1 $to_currency" );
$Ajax->addUpdate('_ex_rate','_ex_rate', $rate);
}
}
function get_js_open_window($width, $height)
{
- $js = "\n<script type=\"text/javascript\">\n"
- . "<!--\n"
- . "function openWindow(url, title)\n"
+ $js ="function openWindow(url, title)\n"
. "{\n"
. " var left = (screen.width - $width) / 2;\n"
. " var top = (screen.height - $height) / 2;\n"
. " return window.open(url, title, 'width=$width,height=$height,left='+left+',top='+top+',screenX='+left+',screenY='+top+',status=no,scrollbars=yes');\n"
- . "}\n"
- . "-->\n"
- . "</script>\n";
+ . "}\n";
return $js;
}
function get_js_png_fix()
{
- $js = "<script type=\"text/javascript\">\n"
- . "function fixPNG(myImage)\n"
+ $js = "function fixPNG(myImage)\n"
. "{\n"
. " var arVersion = navigator.appVersion.split(\"MSIE\")\n"
. " var version = parseFloat(arVersion[1])\n"
. " + \"(src=\'\" + myImage.src + \"\', sizingMethod='scale');\\\"></span>\"\n"
. " myImage.outerHTML = strNewHTML\n"
. " }\n"
- . "}\n"
- . "</script>\n";
+ . "}\n";
return $js;
}