X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_module.php;h=00ab1adc90f5a08b4bc378b5c6e69c4125ffda8b;hb=11e485e4a7c5f12c9424713b7330815a9cc5e4ae;hp=622f5305395dab621790ae4a20d4c1573cd888f9;hpb=e8ae3516539a520338117f25d401c0fc234973a4;p=fa-stable.git diff --git a/admin/inst_module.php b/admin/inst_module.php index 622f5305..00ab1adc 100644 --- a/admin/inst_module.php +++ b/admin/inst_module.php @@ -9,7 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 20; +$page_security = 'SA_CREATEMODULES'; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); @@ -21,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'])) @@ -40,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'] == "") @@ -263,7 +226,7 @@ function handle_delete() function display_modules() { - global $table_style, $installed_modules; + global $table_style, $installed_modules, $tabs; echo "