Save in database.
[order_line_extra.git] / order_lines_view.php
index 18aed7cf87cb02f2597cddbefad6ff38dc82a606..34dae4783ac580e1dd86576d16fe8f4d743f976d 100644 (file)
@@ -23,7 +23,13 @@ add_access_extensions();
 
 $_SESSION['page_title'] = _($help_context = "Edit lines extra parameters");
 
+update_extra_order_details();
+
 $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);
 
 //---------------------------------------------------------------------------------------------
@@ -55,11 +61,11 @@ if(isset($customer_id)) {
 
        $cols = array(
                'detail_id' => 'skip'
-       ,       _("Order #") => array('fun'=>'view_link', 'ord' => '')
-       ,_("Item Code") => array('ord' => '')
+               ,       _("Order #") => array('fun'=>'view_link', 'ord' => '')
+               ,_("Item Code") => array('ord' => '')
                ,_("Quantity") => array('type' => 'qty')
-,_("Required Date") => array('fun' => 'input_date_details')
-,_("Comment") => array('fun' => 'input_comment_details')
+       ,_("Required Date") => array('fun' => 'input_date_details', 'ord' => '')
+       ,_("Comment") => array('fun' => 'input_comment_details', 'ord' => '')
        );
 }
 else {
@@ -71,7 +77,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();