@@ -14,7 +14,7 @@ |
||
14 | 14 | $accounting_module = $this->getKernel()->useModule('accounting'); |
15 | 15 | |
16 | 16 | if (!$this->getYear()->readyForState($this->getModel()->get('this_date'))) { |
17 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/year-not-ready'); |
|
17 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/year-not-ready'); |
|
18 | 18 | return $smarty->render($this); |
19 | 19 | } |
20 | 20 | return new k_SeeOther($this->url('../')); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | return new k_SeeOther($this->url('selectyear')); |
31 | 31 | } |
32 | 32 | |
33 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/reminder'); |
|
33 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/reminder'); |
|
34 | 34 | return $smarty->render($this, array('voucher' => $voucher, 'year' => $this->getYear(), 'reminder' => $reminder, 'value' => $value, 'year' => $year)); |
35 | 35 | } |
36 | 36 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $available_from_index = array('year', 'search'); |
17 | 17 | |
18 | 18 | if (in_array($this->next(), $next) and !in_array($this->next(), $available_from_index)) { |
19 | - return new k_SeeOther($this->url('year/' . $this->getYear()->get('id') . '/' . $this->next())); |
|
19 | + return new k_SeeOther($this->url('year/'.$this->getYear()->get('id').'/'.$this->next())); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | return parent::dispatch(); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return new k_SeeOther($this->url('daybook')); |
40 | 40 | } |
41 | 41 | |
42 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
42 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
43 | 43 | return $smarty->render($this); |
44 | 44 | } |
45 | 45 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $this->getKernel()->setting->set('user', 'accounting.state.message2', 'hide'); |
19 | 19 | } |
20 | 20 | |
21 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/state'); |
|
21 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/state'); |
|
22 | 22 | return $tpl->render($this); |
23 | 23 | } |
24 | 24 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | function getVoucher() |
64 | 64 | { |
65 | - require_once dirname(__FILE__) . '/../Voucher.php'; |
|
65 | + require_once dirname(__FILE__).'/../Voucher.php'; |
|
66 | 66 | return new Voucher($this->getYear()); |
67 | 67 | } |
68 | 68 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | 'accounts' => $accounts |
28 | 28 | ); |
29 | 29 | |
30 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/account/index'); |
|
30 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/account/index'); |
|
31 | 31 | return $smarty->render($this, $data); |
32 | 32 | } |
33 | 33 | |
@@ -45,21 +45,21 @@ discard block |
||
45 | 45 | $workbook->setVersion(8); |
46 | 46 | |
47 | 47 | // sending HTTP headers |
48 | - $workbook->send($kernel->intranet->get('name') . ' - konti ' . $year->get('label')); |
|
48 | + $workbook->send($kernel->intranet->get('name').' - konti '.$year->get('label')); |
|
49 | 49 | |
50 | 50 | // Creating a worksheet |
51 | - $worksheet =& $workbook->addWorksheet('Konti ' . $year->get('label')); |
|
51 | + $worksheet = & $workbook->addWorksheet('Konti '.$year->get('label')); |
|
52 | 52 | $worksheet->setInputEncoding('UTF-8'); |
53 | 53 | |
54 | - $format_bold =& $workbook->addFormat(); |
|
54 | + $format_bold = & $workbook->addFormat(); |
|
55 | 55 | $format_bold->setBold(); |
56 | 56 | $format_bold->setSize(8); |
57 | 57 | |
58 | - $format_italic =& $workbook->addFormat(); |
|
58 | + $format_italic = & $workbook->addFormat(); |
|
59 | 59 | $format_italic->setItalic(); |
60 | 60 | $format_italic->setSize(8); |
61 | 61 | |
62 | - $format =& $workbook->addFormat(); |
|
62 | + $format = & $workbook->addFormat(); |
|
63 | 63 | $format->setSize(8); |
64 | 64 | |
65 | 65 | $i = 0; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | $this->document->addScript('accounting/edit_account.js'); |
98 | 98 | |
99 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/account/edit'); |
|
99 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/account/edit'); |
|
100 | 100 | return $smarty->render($this); |
101 | 101 | } |
102 | 102 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | $this->document->addStyle($this->url('/javascript/accounting/daybook_list_account.js')); |
28 | 28 | |
29 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/account/popup'); |
|
29 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/account/popup'); |
|
30 | 30 | |
31 | 31 | return new k_HttpResponse(200, $smarty->render($this)); |
32 | 32 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | $this->document->setTitle('Accounting settings'); |
21 | 21 | |
22 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/settings'); |
|
22 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/settings'); |
|
23 | 23 | return $smarty->render($this); |
24 | 24 | } |
25 | 25 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $values['debet'] = $post->get('debet'); |
34 | 34 | $values['credit'] = $post->get('credit'); |
35 | 35 | $account = new Account($this->getYear()); |
36 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/post/edit'); |
|
36 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/post/edit'); |
|
37 | 37 | return $smarty->render($this, array('post' => $post, 'account' => $account)); |
38 | 38 | } |
39 | 39 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | function renderHtml() |
19 | 19 | { |
20 | - return '<h1>Poster</h1><p><a href="'.$this->url(null . '.xls').'">Excel</a></p>'; |
|
20 | + return '<h1>Poster</h1><p><a href="'.$this->url(null.'.xls').'">Excel</a></p>'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | function renderHtmlCreate() |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $values['date'] = $post->voucher->get('date_dk'); |
27 | 27 | |
28 | 28 | $account = new Account($this->getYear()); |
29 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/post/edit'); |
|
29 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/post/edit'); |
|
30 | 30 | return $smarty->render($this, array('post' => $post, 'account' => $account)); |
31 | 31 | } |
32 | 32 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $year->checkYear(); |
69 | 69 | |
70 | 70 | $db = new DB_Sql; |
71 | - $db->query("SELECT * FROM accounting_voucher WHERE intranet_id = " . $year->kernel->intranet->get('id') . " AND year_id = " . $year->get('id') . " ORDER BY number ASC"); |
|
71 | + $db->query("SELECT * FROM accounting_voucher WHERE intranet_id = ".$year->kernel->intranet->get('id')." AND year_id = ".$year->get('id')." ORDER BY number ASC"); |
|
72 | 72 | //$i++; |
73 | 73 | $posts = array(); |
74 | 74 | while ($db->nextRecord()) { |
@@ -81,10 +81,10 @@ discard block |
||
81 | 81 | $workbook->setVersion(8); |
82 | 82 | |
83 | 83 | // sending HTTP headers |
84 | - $workbook->send($this->getKernel()->intranet->get('name') . ' - poster ' . $year->get('label')); |
|
84 | + $workbook->send($this->getKernel()->intranet->get('name').' - poster '.$year->get('label')); |
|
85 | 85 | |
86 | 86 | // Creating a worksheet |
87 | - $worksheet = $workbook->addWorksheet('Konti ' . $year->get('label')); |
|
87 | + $worksheet = $workbook->addWorksheet('Konti '.$year->get('label')); |
|
88 | 88 | $worksheet->setInputEncoding('UTF-8'); |
89 | 89 | |
90 | 90 | $format_bold = $workbook->addFormat(); |