2 include_once('applications/application.php');
3 include_once('applications/customers.php');
4 include_once('applications/suppliers.php');
5 include_once('applications/inventory.php');
6 include_once('applications/manufacturing.php');
7 include_once('applications/dimensions.php');
8 include_once('applications/generalledger.php');
9 include_once('applications/setup.php');
10 include_once('themes/default/renderer.php');
12 include_once($path_to_root . "/includes/session.inc");
14 class front_accounting
19 var $selected_application;
23 function front_accounting()
25 $this->renderer = new renderer();
27 function add_application($app)
29 $this->applications[$app->id] = &$app;
31 function get_application($id)
33 if (isset($this->applications[$id]))
34 return $this->applications[$id];
37 function get_selected_application()
39 if (isset($this->selected_application))
40 return $this->applications[$this->selected_application];
41 foreach ($this->applications as $application)
48 $this->renderer->wa_header();
49 $this->renderer->menu_header($this->menu);
50 $this->renderer->display_applications($this);
51 $this->renderer->menu_footer($this->menu);
52 $this->renderer->wa_footer();
56 $this->menu = new menu(_("Main Menu"));
57 $this->menu->add_item(_("Main Menu"), "index.php");
58 $this->menu->add_item(_("Logout"), "/account/access/logout.php");
59 $this->applications = array();
60 $this->add_application(new customers_app());
61 $this->add_application(new suppliers_app());
62 $this->add_application(new inventory_app());
63 $this->add_application(new manufacturing_app());
64 $this->add_application(new dimensions_app());
65 $this->add_application(new general_ledger_app());
66 $this->add_application(new setup_app());