Add Update and Cancel button.
[order_line_extra.git] / order_lines_view.php
index ee07f227c3daf416dfbc4f8a684c8387d28c173d..4129e15f1bad5ee681caed18e54d87a0c4c32b54 100644 (file)
@@ -24,6 +24,10 @@ add_access_extensions();
 $_SESSION['page_title'] = _($help_context = "Edit lines extra parameters");
 
 $js = "";
+if ($use_popup_windows)
+       $js .= get_js_open_window(900, 600);
+if ($use_date_picker)
+       $js .= get_js_date_picker();
 page($_SESSION['page_title'], false, false, "", $js);
 
 //---------------------------------------------------------------------------------------------
@@ -54,7 +58,8 @@ if(isset($customer_id)) {
 
 
        $cols = array(
-               _("Order #") => array('fun'=>'view_link', 'ord' => '')
+               'detail_id' => 'skip'
+       ,       _("Order #") => array('fun'=>'view_link', 'ord' => '')
        ,_("Item Code") => array('ord' => '')
                ,_("Quantity") => array('type' => 'qty')
 ,_("Required Date") => array('fun' => 'input_date_details')
@@ -70,7 +75,10 @@ $table =& new_db_pager('orders_tbl', $sql, $cols);
 $table->width = "80%";
 
 display_db_pager($table);
-submit_center('Update', _("Update"), true, '', null);
+
+br(1);
+submit_center_first('Update', _("Update"), true, '', 'default', true);
+submit_center_last('Cancel', _("Cancel"), true, '', 'cancel', true);
 
        end_form();
        end_page();