Changeset 366 for trunk/Modules/Finance
- Timestamp:
- Jan 19, 2012, 7:55:45 AM (13 years ago)
- Location:
- trunk/Modules/Finance
- Files:
-
- 8 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Modules/Finance/Finance.php ¶
r365 r366 1 1 <?php 2 2 3 class Finance 3 include_once('FinanceOverview.php'); 4 include_once('tarify.php'); 5 include_once('zarizeni.php'); 6 include_once('spotreba.php'); 7 include_once('inventory.php'); 8 include_once('monthly_overall.php'); 9 include_once('manage.php'); 10 include_once('user_state.php'); 11 12 class FinancePage extends Page 13 { 14 var $FullTitle = 'Finance'; 15 var $ShortTitle = 'Finance'; 16 var $RowPerPage = 20; 17 18 function Show() 19 { 20 $PageClass = ''; 21 if(count($this->System->PathItems) > 1) 22 { 23 if($this->System->PathItems[1] == 'tarify') $PageClass = 'FinanceTarrifsPage'; 24 else if($this->System->PathItems[1] == 'zarizeni') $PageClass = 'FinanceDeviceListPage'; 25 else if($this->System->PathItems[1] == 'uzivatel') $PageClass = 'FinanceUserState'; 26 else if($this->System->PathItems[1] == 'spotreba') $PageClass = 'FinanceConsumption'; 27 else if($this->System->PathItems[1] == 'sklad') $PageClass = 'FinanceStoragePage'; 28 else if($this->System->PathItems[1] == 'clenove') $PageClass = 'FinanceUserList'; 29 else if($this->System->PathItems[1] == 'sprava') $PageClass = 'FinanceManagePage'; 30 else if($this->System->PathItems[1] == 'mesicni-prehled') $PageClass = 'FinanceMonthlyOverallPage'; 31 else return(PAGE_NOT_FOUND); 32 } else $PageClass = 'FinanceOverview'; 33 if($PageClass != '') 34 { 35 $Page = new $PageClass(); 36 $Page->Database = &$this->Database; 37 $Page->Config = &$this->Config; 38 $Page->System = &$this->System; 39 return($Page->Show()); 40 } 41 } 42 } 43 44 45 class ModuleFinance extends Module 4 46 { 5 47 var $Database; … … 29 71 var $BillingPeriods; 30 72 73 function __construct($Database, $System) 74 { 75 parent::__construct($Database, $System); 76 $this->Name = 'Finance'; 77 $this->Version = '1.0'; 78 $this->Creator = 'Chronos'; 79 $this->License = 'GNU/GPL'; 80 $this->Description = 'Accounting processing'; 81 $this->Dependencies = array('User'); 82 $this->Models = array(); 83 } 84 85 function Init() 86 { 87 $this->System->Pages['finance'] = 'FinancePage'; 88 $this->LoadMonthParameters(0); 89 } 90 91 function Install() 92 { 93 parent::Install(); 94 } 95 96 function UnInstall() 97 { 98 parent::UnInstall(); 99 } 100 31 101 function LoadTariffs() 32 102 { -
TabularUnified trunk/Modules/Finance/FinanceOverview.php ¶
r365 r366 1 1 <?php 2 include_once('../global.php');3 2 4 3 class FinanceOverview extends Page … … 12 11 $Output = '<table><tr><td valign="top">'; 13 12 14 $Output .= '<a href="monthly_overall.php">Měsíční přehledy</a><br />'; 15 $Output .= '<a href="tarify.php">Tarify</a><br />'; 16 $Output .= '<a href="zarizeni.php">Výpis zařízení</a><br />'; 17 if($this->System->Models['User']->CheckPermission('Finance', 'SubjectList')) $Output .= '<a href="clenove.php">Seznam členů</a><br />'; 18 $Output .= '<a href="spotreba.php">Spotřeba energie</a><br />'; 19 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/aktuality/index.php?category=9">Investice v síti</a><br />'; 13 $Output .= '<a href="mesicni-prehled/">Měsíční přehledy</a><br />'; 14 $Output .= '<a href="tarify/">Tarify</a><br />'; 15 $Output .= '<a href="zarizeni/">Výpis zařízení</a><br />'; 16 if($this->System->Models['User']->CheckPermission('Finance', 'SubjectList')) 17 $Output .= '<a href="clenove/">Seznam členů</a><br />'; 18 $Output .= '<a href="spotreba/">Spotřeba energie</a><br />'; 19 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/aktuality/?category=9">Investice v síti</a><br />'; 20 20 //$Output .= '<a href="faktury/">Faktury za internet</a><br />'; 21 21 //$Output .= '<a href="inventory.php">Výpis skladových zásob</a><br />'; … … 97 97 } 98 98 99 $System->AddModule(new FinanceOverview());100 $System->Modules['FinanceOverview']->GetOutput();101 102 99 ?> -
TabularUnified trunk/Modules/Finance/clenove.php ¶
r343 r366 1 1 <?php 2 include('../global.php');3 2 4 3 class FinanceUserList extends Page … … 63 62 } 64 63 65 $System->AddModule(new FinanceUserList());66 $System->Modules['FinanceUserList']->GetOutput();67 68 64 ?> -
TabularUnified trunk/Modules/Finance/inventory.php ¶
r157 r366 1 1 <?php 2 include_once('../global.php');3 2 4 3 class FinanceStoragePage extends Page … … 25 24 } 26 25 27 $System->AddModule(new FinanceStoragePage());28 $System->Modules['FinanceStoragePage']->GetOutput();29 30 26 ?> -
TabularUnified trunk/Modules/Finance/manage.php ¶
r343 r366 1 1 <?php 2 include_once('../global.php');3 2 4 3 class FinanceManagePage extends Page … … 451 450 } 452 451 453 $System->AddModule(new FinanceManagePage());454 $System->Modules['FinanceManagePage']->GetOutput();455 456 452 ?> -
TabularUnified trunk/Modules/Finance/monthly_overall.php ¶
r157 r366 1 1 <?php 2 include_once('../global.php');3 2 4 3 class FinanceMonthlyOverallPage extends Page … … 32 31 } 33 32 34 $System->AddModule(new FinanceMonthlyOverallPage());35 $System->Modules['FinanceMonthlyOverallPage']->GetOutput();36 37 33 ?> -
TabularUnified trunk/Modules/Finance/spotreba.php ¶
r167 r366 1 1 <?php 2 include_once('../global.php');3 2 4 3 class FinanceConsumption extends Page … … 29 28 } 30 29 31 $System->AddModule(new FinanceConsumption());32 $System->Modules['FinanceConsumption']->GetOutput();33 34 30 ?> -
TabularUnified trunk/Modules/Finance/tarify.php ¶
r221 r366 1 1 <?php 2 include_once('../global.php');3 2 4 3 class FinanceTarrifsPage extends Page … … 64 63 } 65 64 66 $System->AddModule(new FinanceTarrifsPage());67 $System->Modules['FinanceTarrifsPage']->GetOutput();68 69 65 ?> -
TabularUnified trunk/Modules/Finance/user_state.php ¶
r343 r366 1 1 <?php 2 3 include_once('../global.php');4 2 5 3 class FinanceUserState extends Page … … 132 130 } 133 131 134 $System->AddModule(new FinanceUserState());135 $System->Modules['FinanceUserState']->GetOutput();136 137 132 ?> -
TabularUnified trunk/Modules/Finance/zarizeni.php ¶
r195 r366 1 1 <?php 2 include_once('../global.php');3 2 4 3 class FinanceDeviceListPage extends Page … … 29 28 } 30 29 31 $System->AddModule(new FinanceDeviceListPage());32 $System->Modules['FinanceDeviceListPage']->GetOutput()33 34 30 ?>
Note:
See TracChangeset
for help on using the changeset viewer.