X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fsetup.php;h=5f29aff11f8cac3a00e861c1972a800e67525857;hb=df660a601cabb0afe7f3246884f16207b9a0c314;hp=3bb5578deae8ac5a518ef32ff83cd1f4e2f9ac8c;hpb=55b2d0b983484860b14bce32711f1cd6c974bddb;p=fa-stable.git diff --git a/applications/setup.php b/applications/setup.php index 3bb5578d..5f29aff1 100644 --- a/applications/setup.php +++ b/applications/setup.php @@ -9,51 +9,75 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ - class setup_app extends application +class setup_app extends application +{ + function __construct() { - function setup_app() - { - global $installed_modules; - $this->application("system",_("S&etup")); + parent::__construct("system", _($this->help_context = "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_rapp_function(0, _("&Print Profiles"),"admin/print_profiles.php?"); + $this->add_module(_("Company Setup")); + $this->add_lapp_function(0, _("&Company Setup"), + "admin/company_preferences.php?", 'SA_SETUPCOMPANY', MENU_SETTINGS); + $this->add_lapp_function(0, _("&User Accounts Setup"), + "admin/users.php?", 'SA_USERS', MENU_SETTINGS); + $this->add_lapp_function(0, _("&Access Setup"), + "admin/security_roles.php?", 'SA_SECROLES', MENU_SETTINGS); + $this->add_lapp_function(0, _("&Display Setup"), + "admin/display_prefs.php?", 'SA_SETUPDISPLAY', MENU_SETTINGS); + $this->add_lapp_function(0, _("Transaction &References"), + "admin/forms_setup.php?", 'SA_FORMSETUP', MENU_SETTINGS); + $this->add_rapp_function(0, _("&Taxes"), + "taxes/tax_types.php?", 'SA_TAXRATES', MENU_MAINTENANCE); + $this->add_rapp_function(0, _("Tax &Groups"), + "taxes/tax_groups.php?", 'SA_TAXGROUPS', MENU_MAINTENANCE); + $this->add_rapp_function(0, _("Item Ta&x Types"), + "taxes/item_tax_types.php?", 'SA_ITEMTAXTYPE', MENU_MAINTENANCE); + $this->add_rapp_function(0, _("System and &General GL Setup"), + "admin/gl_setup.php?", 'SA_GLSETUP', MENU_SETTINGS); + $this->add_rapp_function(0, _("&Fiscal Years"), + "admin/fiscalyears.php?", 'SA_FISCALYEARS', MENU_MAINTENANCE); + $this->add_rapp_function(0, _("&Print Profiles"), + "admin/print_profiles.php?", 'SA_PRINTPROFILE', MENU_MAINTENANCE); - $this->add_module(_("Miscellaneous")); - $this->add_lapp_function(1, _("Pa&yment Terms"),"admin/payment_terms.php?"); - $this->add_lapp_function(1, _("Shi&pping Company"),"admin/shipping_companies.php?"); - $this->add_rapp_function(1, _("&Points of Sale"),"sales/manage/sales_points.php?"); - $this->add_rapp_function(1, _("&Printers"),"admin/printers.php?"); + $this->add_module(_("Miscellaneous")); + $this->add_lapp_function(1, _("Pa&yment Terms"), + "admin/payment_terms.php?", 'SA_PAYTERMS', MENU_MAINTENANCE); + $this->add_lapp_function(1, _("Shi&pping Company"), + "admin/shipping_companies.php?", 'SA_SHIPPING', MENU_MAINTENANCE); + $this->add_rapp_function(1, _("&Points of Sale"), + "sales/manage/sales_points.php?", 'SA_POSSETUP', MENU_MAINTENANCE); + $this->add_rapp_function(1, _("&Printers"), + "admin/printers.php?", 'SA_PRINTERS', MENU_MAINTENANCE); + $this->add_rapp_function(1, _("Contact &Categories"), + "admin/crm_categories.php?", 'SA_CRMCATEGORY', MENU_MAINTENANCE); - $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_lapp_function(2, _("&Attach Documents"),"admin/attachments.php?filterType=20"); - $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); - $this->add_rapp_function(2, _("Software &Upgrade"),"admin/inst_upgrade.php?", 15); - if (count($installed_modules) > 0) - { - foreach ($installed_modules as $mod) - { - if ($mod["tab"] == "system") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); - } - } - } + $this->add_module(_("Maintenance")); + $this->add_lapp_function(2, _("&Void a Transaction"), + "admin/void_transaction.php?", 'SA_VOIDTRANSACTION', MENU_MAINTENANCE); + $this->add_lapp_function(2, _("View or &Print Transactions"), + "admin/view_print_transaction.php?", 'SA_VIEWPRINTTRANSACTION', MENU_MAINTENANCE); + $this->add_lapp_function(2, _("&Attach Documents"), + "admin/attachments.php?filterType=20", 'SA_ATTACHDOCUMENT', MENU_MAINTENANCE); + $this->add_lapp_function(2, _("System &Diagnostics"), + "admin/system_diagnostics.php?", 'SA_SOFTWAREUPGRADE', MENU_SYSTEM); + + $this->add_rapp_function(2, _("&Backup and Restore"), + "admin/backups.php?", 'SA_BACKUP', MENU_SYSTEM); + $this->add_rapp_function(2, _("Create/Update &Companies"), + "admin/create_coy.php?", 'SA_CREATECOMPANY', MENU_UPDATE); + $this->add_rapp_function(2, _("Install/Update &Languages"), + "admin/inst_lang.php?", 'SA_CREATELANGUAGE', MENU_UPDATE); + $this->add_rapp_function(2, _("Install/Activate &Extensions"), + "admin/inst_module.php?", 'SA_CREATEMODULES', MENU_UPDATE); + $this->add_rapp_function(2, _("Install/Activate &Themes"), + "admin/inst_theme.php?", 'SA_CREATEMODULES', MENU_UPDATE); + $this->add_rapp_function(2, _("Install/Activate &Chart of Accounts"), + "admin/inst_chart.php?", 'SA_CREATEMODULES', MENU_UPDATE); + $this->add_rapp_function(2, _("Software &Upgrade"), + "admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE', MENU_UPDATE); + + $this->add_extensions(); } +} -?> \ No newline at end of file