X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_module.php;h=00ab1adc90f5a08b4bc378b5c6e69c4125ffda8b;hb=f0f460043b9bcb6153c0f6f82d4a74433efe4ad8;hp=1e0017682268c34a541a84328421b8b90edc6f5d;hpb=f12dbe7523bb1abc6cd69b009ef8f0be838f5348;p=fa-stable.git diff --git a/admin/inst_module.php b/admin/inst_module.php index 1e001768..00ab1adc 100644 --- a/admin/inst_module.php +++ b/admin/inst_module.php @@ -1,6 +1,15 @@ . +***********************************************************************/ +$page_security = 'SA_CREATEMODULES'; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); @@ -12,10 +21,6 @@ include_once($path_to_root . "/admin/db/maintenance_db.inc"); include_once($path_to_root . "/modules/installed_modules.php"); include_once($path_to_root . "/includes/ui.inc"); -$tabs = array('orders', 'AP', 'stock', 'manuf', 'proj', 'GL', 'system'); -$names = array(_("Sales"), _("Purchases"), _("Items and Inventory"), _("Manufacturing"), - _("Dimensions"), _("Banking and General Ledger"), _("Setup")); - //--------------------------------------------------------------------------------------------- if (isset($_GET['selected_id'])) @@ -31,39 +36,6 @@ else //--------------------------------------------------------------------------------------------- -function get_tab_title($tab) -{ - global $tabs, $names; - for ($i = 0; $i < count($tabs); $i++) - { - if ($tabs[$i] == $tab) - return $names[$i]; - } - return ""; -} - -function tab_list_row($label, $name, $selected) -{ - global $tabs, $names; - echo "\n"; - if ($label != null) - echo "$label\n"; - if ($selected == null) - $selected = (!isset($_POST[$name]) ? "orders" : $_POST[$name]); - echo "\n"; - echo "\n"; -} - -//--------------------------------------------------------------------------------------------- - function check_data() { if ($_POST['name'] == "" || $_POST['path'] == "") @@ -254,7 +226,7 @@ function handle_delete() function display_modules() { - global $table_style, $installed_modules; + global $table_style, $installed_modules, $tabs; echo "