Inserted Copyright Notice and fixed graphic items
[fa-stable.git] / admin / shipping_companies.php
index e01ad9eff7312f849c72c0999ad9cd00fe6b4691..94dfd489b524a6128dc296ba16e9e4c562ea9c14 100644 (file)
@@ -1,6 +1,14 @@
 <?php
-
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 $page_security = 14;
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
@@ -83,9 +91,9 @@ if ($Mode == 'Delete')
                        $sql="DELETE FROM ".TB_PREF."shippers WHERE shipper_id=$selected_id";
                        db_query($sql,"could not delete shipper");
                        display_notification(_('Selected shipping company has been deleted'));
-                       $Mode = 'RESET';
                }
        }
+       $Mode = 'RESET';
 }
 
 if ($Mode == 'RESET')
@@ -113,7 +121,7 @@ while ($myrow = db_fetch($result))
        label_cell($myrow["phone"]);
        label_cell($myrow["address"]);
        edit_button_cell("Edit".$myrow[0], _("Edit"));
-       edit_button_cell("Delete".$myrow[0], _("Delete"));
+       delete_button_cell("Delete".$myrow[0], _("Delete"));
        end_row();
 }