@@ -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(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | function add($description, $keyword) |
36 | 36 | { |
37 | - $result = $this->db->query('SELECT id FROM shop_featuredproducts WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer') . ' AND keyword_id = ' . $this->db->quote($keyword->getId(), 'integer')); |
|
37 | + $result = $this->db->query('SELECT id FROM shop_featuredproducts WHERE intranet_id = '.$this->db->quote($this->intranet->getId(), 'integer').' AND keyword_id = '.$this->db->quote($keyword->getId(), 'integer')); |
|
38 | 38 | if (PEAR::isError($result)) { |
39 | 39 | throw new Exception($result->getUserInfo()); |
40 | 40 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | function delete($id) |
63 | 63 | { |
64 | - $result = $this->db->query('DELETE FROM shop_featuredproducts WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer') . ' AND id = ' . $this->db->quote($id, 'integer')); |
|
64 | + $result = $this->db->query('DELETE FROM shop_featuredproducts WHERE intranet_id = '.$this->db->quote($this->intranet->getId(), 'integer').' AND id = '.$this->db->quote($id, 'integer')); |
|
65 | 65 | if (PEAR::isError($result)) { |
66 | 66 | throw new Exception($result->getUserInfo()); |
67 | 67 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | function getAll() |
72 | 72 | { |
73 | - $result = $this->db->query('SELECT * FROM shop_featuredproducts WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer')); |
|
73 | + $result = $this->db->query('SELECT * FROM shop_featuredproducts WHERE intranet_id = '.$this->db->quote($this->intranet->getId(), 'integer')); |
|
74 | 74 | if (PEAR::isError($result)) { |
75 | 75 | throw new Exception($result->getUserInfo()); |
76 | 76 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | function renderHtml() |
12 | 12 | { |
13 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
13 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
14 | 14 | return $tpl->render($this); |
15 | 15 | } |
16 | 16 |
@@ -91,7 +91,7 @@ |
||
91 | 91 | public function getRandomImage() |
92 | 92 | { |
93 | 93 | require_once 'Intraface/modules/filemanager/FileHandler.php'; |
94 | - $key = rand(0, count($this->file_list)-1); |
|
94 | + $key = rand(0, count($this->file_list) - 1); |
|
95 | 95 | $filehandler = new FileHandler($this->file_manager->getKernel(), $this->file_list[$key]); |
96 | 96 | return $filehandler; |
97 | 97 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | 'todo_done' => $todo_done |
35 | 35 | ); |
36 | 36 | |
37 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
37 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
38 | 38 | return $tpl->render($this, $data); |
39 | 39 | } |
40 | 40 |