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');
11 include_once($path_to_root . "/includes/session.inc");
13 class front_accounting
18 var $selected_application;
22 function front_accounting()
24 //$this->renderer =& new renderer();
26 function add_application($app)
28 $this->applications[$app->id] = &$app;
30 function get_application($id)
32 if (isset($this->applications[$id]))
33 return $this->applications[$id];
36 function get_selected_application()
38 if (isset($this->selected_application))
39 return $this->applications[$this->selected_application];
40 foreach ($this->applications as $application)
47 include($path_to_root . "/themes/".user_theme()."/renderer.php");
49 $rend = new renderer();
51 //$rend->menu_header($this->menu);
52 $rend->display_applications($this);
53 //$rend->menu_footer($this->menu);
58 $this->menu = new menu(_("Main Menu"));
59 $this->menu->add_item(_("Main Menu"), "index.php");
60 $this->menu->add_item(_("Logout"), "/account/access/logout.php");
61 $this->applications = array();
62 $this->add_application(new customers_app());
63 $this->add_application(new suppliers_app());
64 $this->add_application(new inventory_app());
65 $this->add_application(new manufacturing_app());
66 $this->add_application(new dimensions_app());
67 $this->add_application(new general_ledger_app());
68 $this->add_application(new setup_app());