X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fsetup.php;h=21adb18f32e1ca723ba25a7e5c45929e3f2d3696;hb=8ea6c4dd0d9b31b3456d012b0c94339b801bee0c;hp=1bc46c461c76c42ea04e0a28e9afa77ac811f6d9;hpb=4dd850870279bb6846695c39194c3d4b0b5c1345;p=fa-stable.git diff --git a/applications/setup.php b/applications/setup.php index 1bc46c46..21adb18f 100644 --- a/applications/setup.php +++ b/applications/setup.php @@ -1,46 +1,84 @@ . +***********************************************************************/ +class setup_app extends application +{ + function setup_app() { - function setup_app() - { - global $installed_modules; - $this->application("system",_("Setup")); + global $installed_extensions; + $this->application("system",_("S&etup")); - $this->add_module(_("Company Setup")); - $this->add_lapp_function(0, _("Company Setup"),"admin/company_preferences.php?"); - $this->add_lapp_function(0, _("User Accounts Setup"),"admin/users.php?", 15); - $this->add_lapp_function(0, "",""); - $this->add_lapp_function(0, _("Display Setup"),"admin/display_prefs.php?"); - $this->add_lapp_function(0, _("Forms Setup"),"admin/forms_setup.php?"); - $this->add_rapp_function(0, _("Taxes"),"taxes/tax_types.php?"); - $this->add_rapp_function(0, _("Tax Groups"),"taxes/tax_groups.php?"); - $this->add_rapp_function(0, "",""); - $this->add_rapp_function(0, _("System and General GL Setup"),"admin/gl_setup.php?"); - $this->add_rapp_function(0, _("Fiscal Years"),"admin/fiscalyears.php?"); + $this->add_module(_("Company Setup")); + $this->add_lapp_function(0, _("&Company Setup"), + "admin/company_preferences.php?", 'SA_SETUPCOMPANY'); + $this->add_lapp_function(0, _("&User Accounts Setup"), + "admin/users.php?", 'SA_USERS'); + $this->add_lapp_function(0, _("&Access Setup"), + "admin/security_roles.php?", 'SA_SECROLES'); + $this->add_lapp_function(0, _("&Display Setup"), + "admin/display_prefs.php?", 'SA_SETUPDISPLAY'); + $this->add_lapp_function(0, _("&Forms Setup"), + "admin/forms_setup.php?", 'SA_FORMSETUP'); + $this->add_rapp_function(0, _("&Taxes"), + "taxes/tax_types.php?", 'SA_TAXRATES'); + $this->add_rapp_function(0, _("Tax &Groups"), + "taxes/tax_groups.php?", 'SA_TAXGROUPS'); + $this->add_rapp_function(0, _("Item Ta&x Types"), + "taxes/item_tax_types.php?", 'SA_ITEMTAXTYPE'); + $this->add_rapp_function(0, _("System and &General GL Setup"), + "admin/gl_setup.php?", 'SA_GLSETUP'); + $this->add_rapp_function(0, _("&Fiscal Years"), + "admin/fiscalyears.php?", 'SA_FISCALYEARS'); + $this->add_rapp_function(0, _("&Print Profiles"), + "admin/print_profiles.php?", 'SA_PRINTPROFILE'); - $this->add_module(_("Miscellaneous")); - $this->add_lapp_function(1, _("Payment Terms"),"admin/payment_terms.php?"); - $this->add_lapp_function(1, _("Shipping Company"),"admin/shipping_companies.php?"); + $this->add_module(_("Miscellaneous")); + $this->add_lapp_function(1, _("Pa&yment Terms"), + "admin/payment_terms.php?", 'SA_PAYTERMS'); + $this->add_lapp_function(1, _("Shi&pping Company"), + "admin/shipping_companies.php?", 'SA_SHIPPING'); + $this->add_rapp_function(1, _("&Points of Sale"), + "sales/manage/sales_points.php?", 'SA_POSSETUP'); + $this->add_rapp_function(1, _("&Printers"), + "admin/printers.php?", 'SA_PRINTERS'); - $this->add_module(_("Maintanance")); - $this->add_lapp_function(2, _("Void a Transaction"),"admin/void_transaction.php?"); - $this->add_lapp_function(2, _("View or Print Transactions"),"admin/view_print_transaction.php?"); - $this->add_rapp_function(2, _("Backup and Restore"),"admin/backups.php?", 15); - $this->add_rapp_function(2, _("Create/Update Companies"),"admin/create_coy.php?", 14); - $this->add_rapp_function(2, _("Install/Update Languages"),"admin/inst_lang.php?", 14); - $this->add_rapp_function(2, _("Install/Update Modules"),"admin/inst_module.php?", 15); - if (count($installed_modules) > 0) + $this->add_module(_("Maintenance")); + $this->add_lapp_function(2, _("&Void a Transaction"), + "admin/void_transaction.php?", 'SA_VOIDTRANSACTION'); + $this->add_lapp_function(2, _("View or &Print Transactions"), + "admin/view_print_transaction.php?", 'SA_VIEWPRINTTRANSACTION'); + $this->add_lapp_function(2, _("&Attach Documents"), + "admin/attachments.php?filterType=20", 'SA_ATTACHDOCUMENT'); + $this->add_rapp_function(2, _("&Backup and Restore"), + "admin/backups.php?", 'SA_BACKUP'); + $this->add_rapp_function(2, _("Create/Update &Companies"), + "admin/create_coy.php?", 'SA_CREATECOMPANY'); + $this->add_rapp_function(2, _("Install/Update &Languages"), + "admin/inst_lang.php?", 'SA_CREATELANGUAGE'); + $this->add_rapp_function(2, _("Install/Activate &Extensions"), + "admin/inst_module.php?", 'SA_CREATEMODULES'); + $this->add_rapp_function(2, _("Software &Upgrade"), + "admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE'); + if (count($installed_extensions) > 0) + { + foreach ($installed_extensions as $mod) { - foreach ($installed_modules as $mod) - { - if ($mod["tab"] == "system") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); - } + if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "system") + $this->add_rapp_function(2, $mod["title"], + "modules/".$mod["path"]."/".$mod["filename"]."?", + isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' ); } } } +} ?> \ No newline at end of file