@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | function renderHtml() |
| 12 | 12 | { |
| 13 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/log'); |
|
| 13 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/log'); |
|
| 14 | 14 | return $smarty->render($this); |
| 15 | 15 | } |
| 16 | 16 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $letter = new Newsletter($list); |
| 29 | 29 | $letters = $letter->getList(); |
| 30 | 30 | |
| 31 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/list'); |
|
| 31 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/list'); |
|
| 32 | 32 | return $smarty->render($this); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | function renderHtmlEdit() |
| 50 | 50 | { |
| 51 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/list-edit'); |
|
| 51 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/list-edit'); |
|
| 52 | 52 | return $smarty->render($this); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | if ($this->query('contact_id')) { |
| 21 | 21 | $gateway = new Intraface_modules_newsletter_ListGateway($this->getKernel()); |
| 22 | 22 | $lists = $gateway->findByContactId($this->query('contact_id')); |
| 23 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/contact-lists'); |
|
| 23 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/contact-lists'); |
|
| 24 | 24 | return $tpl->render($this, array('lists' => $lists)); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $module = $this->getKernel()->module("newsletter"); |
| 26 | 26 | |
| 27 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/letters'); |
|
| 27 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/letters'); |
|
| 28 | 28 | return $smarty->render($this); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | $module = $this->getKernel()->module("newsletter"); |
| 34 | 34 | |
| 35 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/letter-edit'); |
|
| 35 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/letter-edit'); |
|
| 36 | 36 | return $smarty->render($this); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | function findById($id, $load_active = true) |
| 30 | 30 | { |
| 31 | - require_once dirname(__FILE__) . '/Year.php'; |
|
| 31 | + require_once dirname(__FILE__).'/Year.php'; |
|
| 32 | 32 | return new Year($this->kernel, $id, $load_active); |
| 33 | 33 | } |
| 34 | 34 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $sql = "SELECT id FROM accounting_voucher |
| 64 | 64 | WHERE intranet_id = ".$this->kernel->intranet->get('id')." |
| 65 | - AND id = " . (int)$voucher_id . " |
|
| 65 | + AND id = " . (int)$voucher_id." |
|
| 66 | 66 | LIMIT 1"; |
| 67 | 67 | |
| 68 | 68 | $db = new DB_Sql; |
@@ -58,6 +58,9 @@ |
||
| 58 | 58 | return $account_years; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $voucher_id |
|
| 63 | + */ |
|
| 61 | 64 | function findByVoucherId($voucher_id) |
| 62 | 65 | { |
| 63 | 66 | $sql = "SELECT id FROM accounting_voucher |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | function renderHtml() |
| 12 | 12 | { |
| 13 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/end'); |
|
| 13 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/end'); |
|
| 14 | 14 | return $smarty->render($this); |
| 15 | 15 | } |
| 16 | 16 | |
@@ -29,21 +29,21 @@ discard block |
||
| 29 | 29 | $workbook->setVersion(8); |
| 30 | 30 | |
| 31 | 31 | // sending HTTP headers |
| 32 | - $workbook->send($kernel->intranet->get('name') . ' - konti ' . $year->get('label') . '.xls'); |
|
| 32 | + $workbook->send($kernel->intranet->get('name').' - konti '.$year->get('label').'.xls'); |
|
| 33 | 33 | |
| 34 | 34 | // Creating a worksheet |
| 35 | - $worksheet =& $workbook->addWorksheet('Konti ' . $year->get('label')); |
|
| 35 | + $worksheet = & $workbook->addWorksheet('Konti '.$year->get('label')); |
|
| 36 | 36 | $worksheet->setInputEncoding('UTF-8'); |
| 37 | 37 | |
| 38 | - $format_bold =& $workbook->addFormat(); |
|
| 38 | + $format_bold = & $workbook->addFormat(); |
|
| 39 | 39 | $format_bold->setBold(); |
| 40 | 40 | $format_bold->setSize(8); |
| 41 | 41 | |
| 42 | - $format_italic =& $workbook->addFormat(); |
|
| 42 | + $format_italic = & $workbook->addFormat(); |
|
| 43 | 43 | $format_italic->setItalic(); |
| 44 | 44 | $format_italic->setSize(8); |
| 45 | 45 | |
| 46 | - $format =& $workbook->addFormat(); |
|
| 46 | + $format = & $workbook->addFormat(); |
|
| 47 | 47 | $format->setSize(8); |
| 48 | 48 | $i = 0; |
| 49 | 49 | $worksheet->write($i, 0, $kernel->intranet->get('name'), $format_bold); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | function renderHtml() |
| 47 | 47 | { |
| 48 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/show'); |
|
| 48 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/show'); |
|
| 49 | 49 | return $smarty->render($this); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | function renderHtml() |
| 21 | 21 | { |
| 22 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/index'); |
|
| 22 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/index'); |
|
| 23 | 23 | return $smarty->render($this); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | function renderHtmlCreate() |
| 49 | 49 | { |
| 50 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/edit'); |
|
| 50 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/edit'); |
|
| 51 | 51 | return $smarty->render($this); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | function getValues() |
| 66 | 66 | { |
| 67 | - $values['from_date_dk'] = '01-01-' . date('Y'); |
|
| 68 | - $values['to_date_dk'] = '31-12-' . date('Y'); |
|
| 67 | + $values['from_date_dk'] = '01-01-'.date('Y'); |
|
| 68 | + $values['to_date_dk'] = '31-12-'.date('Y'); |
|
| 69 | 69 | return $values; |
| 70 | 70 | } |
| 71 | 71 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | function renderHtml() |
| 12 | 12 | { |
| 13 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/edit'); |
|
| 13 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/edit'); |
|
| 14 | 14 | return $smarty->render($this); |
| 15 | 15 | } |
| 16 | 16 | |