2 /**********************************************************************
3 Copyright (C) FrontAccounting, LLC.
4 Released under the terms of the GNU General Public License, GPL,
5 as published by the Free Software Foundation, either version 3
6 of the License, or (at your option) any later version.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12 include_once("./modules/installed_modules.php");
13 class setup_app extends application
17 global $installed_modules;
18 $this->application("system",_("Setup"));
20 $this->add_module(_("Company Setup"));
21 $this->add_lapp_function(0, _("&Company Setup"),"admin/company_preferences.php?");
22 $this->add_lapp_function(0, _("&User Accounts Setup"),"admin/users.php?", 15);
23 $this->add_lapp_function(0, "","");
24 $this->add_lapp_function(0, _("&Display Setup"),"admin/display_prefs.php?");
25 $this->add_lapp_function(0, _("&Forms Setup"),"admin/forms_setup.php?");
26 $this->add_rapp_function(0, _("&Taxes"),"taxes/tax_types.php?");
27 $this->add_rapp_function(0, _("Tax &Groups"),"taxes/tax_groups.php?");
28 $this->add_rapp_function(0, "","");
29 $this->add_rapp_function(0, _("System and &General GL Setup"),"admin/gl_setup.php?");
30 $this->add_rapp_function(0, _("&Fiscal Years"),"admin/fiscalyears.php?");
31 $this->add_rapp_function(0, _("&Print Profiles"),"admin/print_profiles.php?");
33 $this->add_module(_("Miscellaneous"));
34 $this->add_lapp_function(1, _("Pa&yment Terms"),"admin/payment_terms.php?");
35 $this->add_lapp_function(1, _("Shi&pping Company"),"admin/shipping_companies.php?");
36 $this->add_rapp_function(1, _("&Points of Sale"),"sales/manage/sales_points.php?");
37 $this->add_rapp_function(1, _("&Printers"),"admin/printers.php?");
39 $this->add_module(_("Maintanance"));
40 $this->add_lapp_function(2, _("&Void a Transaction"),"admin/void_transaction.php?");
41 $this->add_lapp_function(2, _("View or &Print Transactions"),"admin/view_print_transaction.php?");
42 $this->add_lapp_function(2, _("&Attach Documents"),"admin/attachments.php?filterType=20");
43 $this->add_rapp_function(2, _("&Backup and Restore"),"admin/backups.php?", 15);
44 $this->add_rapp_function(2, _("Create/Update &Companies"),"admin/create_coy.php?", 14);
45 $this->add_rapp_function(2, _("Install/Update &Languages"),"admin/inst_lang.php?", 14);
46 $this->add_rapp_function(2, _("Install/Update &Modules"),"admin/inst_module.php?", 15);
47 $this->add_rapp_function(2, _("Software &Upgrade"),"admin/inst_upgrade.php?", 15);
48 if (count($installed_modules) > 0)
50 foreach ($installed_modules as $mod)
52 if ($mod["tab"] == "system")
53 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");