Form submit/escape hotkeys added.
[fa-stable.git] / inventory / manage / sales_kits.php
index 2e73d219cdf9b4691f5de8093541b6f9ea1af2d3..a45dde70d8ac1784595f2cc8440be3a490efdd28 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 $page_security = 11;
 $path_to_root="../..";
 include_once($path_to_root . "/includes/session.inc");
@@ -46,7 +55,7 @@ div_start('bom');
                        $myrow["units"] == '' ? 0 : get_qty_dec($myrow["comp_name"]));
         label_cell($myrow["units"] == '' ? _('kit') : $myrow["units"]);
                edit_button_cell("Edit".$myrow['id'], _("Edit"));
-               edit_button_cell("Delete".$myrow['id'], _("Delete"));
+               delete_button_cell("Delete".$myrow['id'], _("Delete"));
         end_row();
 
        } //END WHILE LIST LOOP
@@ -172,7 +181,7 @@ if ($Mode == 'RESET')
 
 //--------------------------------------------------------------------------------------------------
 
-start_form(false, true);
+start_form();
 
 echo "<center>" . _("Select a sale kit:") . "&nbsp;";
 sales_kits_list('item_code', null, _('New kit'), true);
@@ -236,7 +245,7 @@ if (get_post('item_code') == '') {
        qty_row(_("Quantity:"), 'quantity', number_format2(1, $dec), '', $units, $dec);
 
        end_table(1);
-       submit_add_or_update_center($selected_id == -1, '', true);
+       submit_add_or_update_center($selected_id == -1, '', 'both');
        end_form();
 //----------------------------------------------------------------------------------