Improved safety handling of bad PHP interpretor releases.
[fa-stable.git] / purchasing / includes / ui / po_ui.inc
index 5f09dc10a52d5476e8f459e2ba4c6b78f00030ae..37e2a81fefa6894ebdd01c5ea5de5c0842ca1365 100644 (file)
@@ -116,7 +116,7 @@ function display_po_header(&$order)
 
        $editable = ($order->order_no == 0);
 
-       start_outer_table(TABLESTYLE2, 'width=80%');
+       start_outer_table(TABLESTYLE2, "width='80%'");
 
        table_section(1);
     if ($editable)
@@ -166,7 +166,7 @@ function display_po_header(&$order)
        if (!is_company_currency($order->curr_code))
        {
                label_row(_("Supplier Currency:"), $order->curr_code);
-               exchange_rate_display($order->curr_code, get_company_currency(),
+               exchange_rate_display(get_company_currency(), $order->curr_code,
                        $_POST['OrderDate']);
        }
 
@@ -228,7 +228,7 @@ function display_po_items(&$order, $editable=true)
     display_heading(_("Order Items"));
 
     div_start('items_table');
-    start_table(TABLESTYLE, "width=80%");
+    start_table(TABLESTYLE, "width='80%'");
 
        $th = array(_("Item Code"), _("Item Description"), _("Quantity"),
                _("Received"), _("Unit"),
@@ -305,7 +305,7 @@ function display_po_items(&$order, $editable=true)
 
 function display_po_summary(&$po, $is_self=false, $editable=false)
 {
-    start_table(TABLESTYLE, "width=90%");
+    start_table(TABLESTYLE, "width='90%'");
 
     start_row();
     label_cells(_("Reference"), $po->reference, "class='tableheader2'");