Better color in data picker
[fa-stable.git] / inventory / manage / movement_types.php
index 9660af2375981cf443a06da99bf751da704230c6..69e8fe16bba92f9155871270c1a9fb4c812a9d7a 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 = 3;
 $path_to_root="../..";
 include($path_to_root . "/includes/session.inc");
@@ -65,13 +74,12 @@ function can_delete($selected_id)
 
 if ($Mode == 'Delete')
 {
-
        if (can_delete($selected_id))
        {
                delete_movement_type($selected_id);
                display_notification(_('Selected movement type has been deleted'));
-               $Mode = 'RESET';
        }
+       $Mode = 'RESET';
 }
 
 if ($Mode == 'RESET')
@@ -96,7 +104,7 @@ while ($myrow = db_fetch($result))
 
        label_cell($myrow["name"]);
        edit_button_cell("Edit".$myrow['id'], _("Edit"));
-       edit_button_cell("Delete".$myrow['id'], _("Delete"));
+       delete_button_cell("Delete".$myrow['id'], _("Delete"));
        end_row();
 }
 
@@ -108,7 +116,7 @@ echo '<br>';
 
 start_form();
 
-start_table();
+start_table($table_style2);
 
 if ($selected_id != -1) 
 {