@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | return new k_SeeOther($this->url('selectyear')); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - $this->document->setTitle('State procurement #' . $this->getProcurement()->get('id')); |
|
| 28 | + $this->document->setTitle('State procurement #'.$this->getProcurement()->get('id')); |
|
| 29 | 29 | |
| 30 | 30 | $data = array( |
| 31 | 31 | 'procurement' => $this->getProcurement(), |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | 'value' => $this->getValues(), |
| 37 | 37 | 'vat_account' => new Account($this->getYear(), $this->getYear()->getSetting('vat_in_account_id'))); |
| 38 | 38 | |
| 39 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/procurement'); |
|
| 39 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/procurement'); |
|
| 40 | 40 | return $smarty->render($this, $data); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | function getProposeButton() |
| 119 | 119 | { |
| 120 | 120 | if ($this->add_propose_button === true) { |
| 121 | - return '<input type="submit" name="propose_changes" value="' . $this->t('Propose changes') . '" />'; |
|
| 121 | + return '<input type="submit" name="propose_changes" value="'.$this->t('Propose changes').'" />'; |
|
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | } |
@@ -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 | |