@@ -67,7 +67,7 @@ |
||
67 | 67 | } else { |
68 | 68 | $checked = ""; |
69 | 69 | } |
70 | - echo '<li style="display: inline; margin-left: 20px;"><label for="keyword_'.$value['id'].'"><input type="checkbox" name="keyword[]" value="'.$value['id'].'" id="keyword_'.$value['id'].'" '.$checked.' /> '.$value['keyword'].'</label></li>'; |
|
70 | + echo '<li style="display: inline; margin-left: 20px;"><label for="keyword_'.$value['id'].'"><input type="checkbox" name="keyword[]" value="'.$value['id'].'" id="keyword_'.$value['id'].'" '.$checked.' /> '.$value['keyword'].'</label></li>'; |
|
71 | 71 | } |
72 | 72 | echo '</ul></div>'; |
73 | 73 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | <?php |
62 | 62 | if (count($keywords) > 0) { |
63 | - echo '<div>'. e(t('keywords', 'keyword')) . ': <ul style="display: inline;">'; |
|
63 | + echo '<div>'.e(t('keywords', 'keyword')).': <ul style="display: inline;">'; |
|
64 | 64 | foreach ($keywords as $value) { |
65 | 65 | if (in_array($value['id'], $selected_keywords) === true) { |
66 | 66 | $checked = 'checked="checked"'; |
@@ -18,10 +18,13 @@ |
||
18 | 18 | |
19 | 19 | <?php if (empty($files) and !$context->query('search')) : ?> |
20 | 20 | <p><?php e(t('No files uploaded')); ?></p> |
21 | -<?php else : ?> |
|
21 | +<?php else { |
|
22 | + : ?> |
|
22 | 23 | |
23 | 24 | |
24 | -<form method="get" action="<?php e(url('./')); ?>"> |
|
25 | +<form method="get" action="<?php e(url('./')); |
|
26 | +} |
|
27 | +?>"> |
|
25 | 28 | <fieldset> |
26 | 29 | <legend><?php e(t('Search')); ?></legend> |
27 | 30 | <label><?php e(t('Search text')); ?>: |
@@ -145,10 +145,10 @@ |
||
145 | 145 | $this->document->setTitle('Files'); |
146 | 146 | |
147 | 147 | $data = array('filemanager' => $filemanager, |
148 | - 'multiple_choice' => $multiple_choice, |
|
149 | - //'receive_redirect' => $receive_redirect, |
|
150 | - 'files' => $files, |
|
151 | - 'selected_files' => $selected_files |
|
148 | + 'multiple_choice' => $multiple_choice, |
|
149 | + //'receive_redirect' => $receive_redirect, |
|
150 | + 'files' => $files, |
|
151 | + 'selected_files' => $selected_files |
|
152 | 152 | ); |
153 | 153 | |
154 | 154 | $tpl = $this->template->create(dirname(__FILE__) . '/../templates/selectfile'); |
@@ -100,18 +100,18 @@ discard block |
||
100 | 100 | $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y")." 00:00"); |
101 | 101 | break; |
102 | 102 | case 2: |
103 | - $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time()-60*60*24)." 00:00"); |
|
104 | - $filemanager->getDBQuery()->setFilter("uploaded_to_date", date("d-m-Y", time()-60*60*24)." 23:59"); |
|
103 | + $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time() - 60*60*24)." 00:00"); |
|
104 | + $filemanager->getDBQuery()->setFilter("uploaded_to_date", date("d-m-Y", time() - 60*60*24)." 23:59"); |
|
105 | 105 | break; |
106 | 106 | case 3: |
107 | - $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time()-60*60*24*7)." 00:00"); |
|
107 | + $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time() - 60*60*24*7)." 00:00"); |
|
108 | 108 | break; |
109 | 109 | case 4: |
110 | 110 | $filemanager->getDBQuery()->setFilter("edited_from_date", date("d-m-Y")." 00:00"); |
111 | 111 | break; |
112 | 112 | case 5: |
113 | - $filemanager->getDBQuery()->setFilter("edited_from_date", date("d-m-Y", time()-60*60*24)." 00:00"); |
|
114 | - $filemanager->getDBQuery()->setFilter("edited_to_date", date("d-m-Y", time()-60*60*24)." 23:59"); |
|
113 | + $filemanager->getDBQuery()->setFilter("edited_from_date", date("d-m-Y", time() - 60*60*24)." 00:00"); |
|
114 | + $filemanager->getDBQuery()->setFilter("edited_to_date", date("d-m-Y", time() - 60*60*24)." 23:59"); |
|
115 | 115 | break; |
116 | 116 | default: |
117 | 117 | // Probaly 0, so nothing happens |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | 'selected_files' => $selected_files |
152 | 152 | ); |
153 | 153 | |
154 | - $tpl = $this->template->create(dirname(__FILE__) . '/../templates/selectfile'); |
|
154 | + $tpl = $this->template->create(dirname(__FILE__).'/../templates/selectfile'); |
|
155 | 155 | return $tpl->render($this, $data); |
156 | 156 | } |
157 | 157 |
@@ -47,18 +47,18 @@ discard block |
||
47 | 47 | $gateway->getDBQuery()->setFilter('uploaded_from_date', date('d-m-Y').' 00:00'); |
48 | 48 | break; |
49 | 49 | case 2: |
50 | - $gateway->getDBQuery()->setFilter('uploaded_from_date', date('d-m-Y', time()-60*60*24).' 00:00'); |
|
51 | - $gateway->getDBQuery()->setFilter('uploaded_to_date', date('d-m-Y', time()-60*60*24).' 23:59'); |
|
50 | + $gateway->getDBQuery()->setFilter('uploaded_from_date', date('d-m-Y', time() - 60*60*24).' 00:00'); |
|
51 | + $gateway->getDBQuery()->setFilter('uploaded_to_date', date('d-m-Y', time() - 60*60*24).' 23:59'); |
|
52 | 52 | break; |
53 | 53 | case 3: |
54 | - $gateway->getDBQuery()->setFilter('uploaded_from_date', date('d-m-Y', time()-60*60*24*7).' 00:00'); |
|
54 | + $gateway->getDBQuery()->setFilter('uploaded_from_date', date('d-m-Y', time() - 60*60*24*7).' 00:00'); |
|
55 | 55 | break; |
56 | 56 | case 4: |
57 | 57 | $gateway->getDBQuery()->setFilter('edited_from_date', date('d-m-Y').' 00:00'); |
58 | 58 | break; |
59 | 59 | case 5: |
60 | - $gateway->getDBQuery()->setFilter('edited_from_date', date('d-m-Y', time()-60*60*24).' 00:00'); |
|
61 | - $gateway->getDBQuery()->setFilter('edited_to_date', date('d-m-Y', time()-60*60*24).' 23:59'); |
|
60 | + $gateway->getDBQuery()->setFilter('edited_from_date', date('d-m-Y', time() - 60*60*24).' 00:00'); |
|
61 | + $gateway->getDBQuery()->setFilter('edited_to_date', date('d-m-Y', time() - 60*60*24).' 23:59'); |
|
62 | 62 | break; |
63 | 63 | case 6: |
64 | 64 | $gateway->getDBQuery()->setFilter('accessibility', 'public'); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'selected_keywords' => $selected_keywords, |
98 | 98 | 'keywords' => $keywords); |
99 | 99 | |
100 | - $tpl = $this->template->create(dirname(__FILE__) . '/../templates/index'); |
|
100 | + $tpl = $this->template->create(dirname(__FILE__).'/../templates/index'); |
|
101 | 101 | return $tpl->render($this, $data); |
102 | 102 | } |
103 | 103 |
@@ -73,14 +73,14 @@ |
||
73 | 73 | '&y2=' . ($params['crop_offset_y'] + $params['crop_height'])); |
74 | 74 | |
75 | 75 | $data = array('translation' => $translation, |
76 | - 'type' => $type, |
|
77 | - 'filemanager' => $filemanager, |
|
78 | - 'img_height' => $img_height, |
|
79 | - 'img_width' => $img_width, |
|
80 | - 'editor_img_height' => $editor_img_height, |
|
81 | - 'editor_img_width' => $editor_img_width, |
|
82 | - 'editor_img_uri' => $editor_img_uri, |
|
83 | - 'unlock_ratio' => $unlock_ratio); |
|
76 | + 'type' => $type, |
|
77 | + 'filemanager' => $filemanager, |
|
78 | + 'img_height' => $img_height, |
|
79 | + 'img_width' => $img_width, |
|
80 | + 'editor_img_height' => $editor_img_height, |
|
81 | + 'editor_img_width' => $editor_img_width, |
|
82 | + 'editor_img_uri' => $editor_img_uri, |
|
83 | + 'unlock_ratio' => $unlock_ratio); |
|
84 | 84 | |
85 | 85 | $tpl = $this->template->create(dirname(__FILE__) . '/../templates/crop'); |
86 | 86 | return $tpl->render($this, $data); |
@@ -26,15 +26,15 @@ discard block |
||
26 | 26 | $editor_img_height = $instance->get('height'); |
27 | 27 | $editor_img_width = $instance->get('width'); |
28 | 28 | |
29 | - $size_ratio = $editor_img_width / $img_width; |
|
29 | + $size_ratio = $editor_img_width/$img_width; |
|
30 | 30 | |
31 | 31 | $instance = $filemanager->getInstance($instance_type); |
32 | 32 | $type = $instance->get('instance_properties'); |
33 | 33 | |
34 | 34 | $params = unserialize($instance->get('crop_parameter')); |
35 | 35 | |
36 | - $editor_min_width = $type['max_width'] * $size_ratio; |
|
37 | - $editor_min_height = $type['max_height'] * $size_ratio; |
|
36 | + $editor_min_width = $type['max_width']*$size_ratio; |
|
37 | + $editor_min_height = $type['max_height']*$size_ratio; |
|
38 | 38 | |
39 | 39 | if ($editor_min_width > $editor_img_width) { |
40 | 40 | $editor_min_width = $editor_img_width; |
@@ -57,20 +57,20 @@ discard block |
||
57 | 57 | // make sure that it is with a . and not , |
58 | 58 | $size_ratio = str_replace(',', '.', $size_ratio); |
59 | 59 | |
60 | - $this->document->setTitle('Crop image: ' . $filemanager->get('file_name')); |
|
60 | + $this->document->setTitle('Crop image: '.$filemanager->get('file_name')); |
|
61 | 61 | $this->document->addScript('filehandler/cropper/lib/prototype.js'); |
62 | 62 | $this->document->addScript('filehandler/cropper/lib/scriptaculous.js'); |
63 | 63 | $this->document->addScript('filehandler/cropper/cropper.js'); |
64 | 64 | // @todo HACK only way I can get the link to be correct with a comma |
65 | 65 | $this->document->addScript('filehandler/crop_image.js.php'. |
66 | - '?size_ratio=' . $size_ratio . |
|
67 | - '&max_width=' . round($editor_min_width) . |
|
68 | - '&max_height=' . round($editor_min_height) . |
|
69 | - '&unlock_ratio=' . $unlock_ratio . |
|
70 | - '&x1=' . $params['crop_offset_x'] . |
|
71 | - '&y1=' . $params['crop_offset_y'] . |
|
72 | - '&x2=' . ($params['crop_offset_x'] + $params['crop_width']) . |
|
73 | - '&y2=' . ($params['crop_offset_y'] + $params['crop_height'])); |
|
66 | + '?size_ratio='.$size_ratio. |
|
67 | + '&max_width='.round($editor_min_width). |
|
68 | + '&max_height='.round($editor_min_height). |
|
69 | + '&unlock_ratio='.$unlock_ratio. |
|
70 | + '&x1='.$params['crop_offset_x']. |
|
71 | + '&y1='.$params['crop_offset_y']. |
|
72 | + '&x2='.($params['crop_offset_x'] + $params['crop_width']). |
|
73 | + '&y2='.($params['crop_offset_y'] + $params['crop_height'])); |
|
74 | 74 | |
75 | 75 | $data = array('translation' => $translation, |
76 | 76 | 'type' => $type, |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | 'editor_img_uri' => $editor_img_uri, |
83 | 83 | 'unlock_ratio' => $unlock_ratio); |
84 | 84 | |
85 | - $tpl = $this->template->create(dirname(__FILE__) . '/../templates/crop'); |
|
85 | + $tpl = $this->template->create(dirname(__FILE__).'/../templates/crop'); |
|
86 | 86 | return $tpl->render($this, $data); |
87 | 87 | } |
88 | 88 |
@@ -148,10 +148,10 @@ |
||
148 | 148 | $this->document->setTitle('Files'); |
149 | 149 | |
150 | 150 | $data = array('filemanager' => $filemanager, |
151 | - 'multiple_choice' => $multiple_choice, |
|
152 | - //'receive_redirect' => $receive_redirect, |
|
153 | - 'files' => $files, |
|
154 | - 'selected_files' => $selected_files |
|
151 | + 'multiple_choice' => $multiple_choice, |
|
152 | + //'receive_redirect' => $receive_redirect, |
|
153 | + 'files' => $files, |
|
154 | + 'selected_files' => $selected_files |
|
155 | 155 | ); |
156 | 156 | |
157 | 157 | $tpl = $this->template->create(dirname(__FILE__) . '/../templates/ckeditor'); |
@@ -103,18 +103,18 @@ discard block |
||
103 | 103 | $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y")." 00:00"); |
104 | 104 | break; |
105 | 105 | case 2: |
106 | - $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time()-60*60*24)." 00:00"); |
|
107 | - $filemanager->getDBQuery()->setFilter("uploaded_to_date", date("d-m-Y", time()-60*60*24)." 23:59"); |
|
106 | + $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time() - 60*60*24)." 00:00"); |
|
107 | + $filemanager->getDBQuery()->setFilter("uploaded_to_date", date("d-m-Y", time() - 60*60*24)." 23:59"); |
|
108 | 108 | break; |
109 | 109 | case 3: |
110 | - $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time()-60*60*24*7)." 00:00"); |
|
110 | + $filemanager->getDBQuery()->setFilter("uploaded_from_date", date("d-m-Y", time() - 60*60*24*7)." 00:00"); |
|
111 | 111 | break; |
112 | 112 | case 4: |
113 | 113 | $filemanager->getDBQuery()->setFilter("edited_from_date", date("d-m-Y")." 00:00"); |
114 | 114 | break; |
115 | 115 | case 5: |
116 | - $filemanager->getDBQuery()->setFilter("edited_from_date", date("d-m-Y", time()-60*60*24)." 00:00"); |
|
117 | - $filemanager->getDBQuery()->setFilter("edited_to_date", date("d-m-Y", time()-60*60*24)." 23:59"); |
|
116 | + $filemanager->getDBQuery()->setFilter("edited_from_date", date("d-m-Y", time() - 60*60*24)." 00:00"); |
|
117 | + $filemanager->getDBQuery()->setFilter("edited_to_date", date("d-m-Y", time() - 60*60*24)." 23:59"); |
|
118 | 118 | break; |
119 | 119 | default: |
120 | 120 | // Probaly 0, so nothing happens |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | 'selected_files' => $selected_files |
155 | 155 | ); |
156 | 156 | |
157 | - $tpl = $this->template->create(dirname(__FILE__) . '/../templates/ckeditor'); |
|
157 | + $tpl = $this->template->create(dirname(__FILE__).'/../templates/ckeditor'); |
|
158 | 158 | return new k_HtmlResponse($tpl->render($this, $data)); |
159 | 159 | } |
160 | 160 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | break; |
84 | 84 | case 1: |
85 | 85 | default: |
86 | - return "--\n" . $this->getUser()->getAddress()->get('name') . "\n" . $this->getIntranet()->get('name'); |
|
86 | + return "--\n".$this->getUser()->getAddress()->get('name')."\n".$this->getIntranet()->get('name'); |
|
87 | 87 | break; |
88 | 88 | case 2: |
89 | 89 | return $this->getSetting()->get('user', 'email.custom_signature'); |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | |
40 | 40 | private function start() |
41 | 41 | { |
42 | - $this->output .= '<?xml version="1.0" encoding="iso-8859-1"?>' . "\n"; |
|
43 | - $this->output .= '<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/ http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">' . "\n"; |
|
42 | + $this->output .= '<?xml version="1.0" encoding="iso-8859-1"?>'."\n"; |
|
43 | + $this->output .= '<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/ http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">'."\n"; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | private function end() |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | public function output($debtor) |
52 | 52 | { |
53 | 53 | $this->start(); |
54 | - $this->output .= '<com:ID>'.$debtor->get('id').'</com:ID>' . "\n"; |
|
54 | + $this->output .= '<com:ID>'.$debtor->get('id').'</com:ID>'."\n"; |
|
55 | 55 | $this->output .= '<com:IssueDate>'.$debtor->get('date_due').'</com:IssueDate>'; |
56 | 56 | $this->output .= '<com:TypeCode>PIE</com:TypeCode>'; |
57 | 57 | $this->output .= '<main:InvoiceCurrencyCode>DKK</main:InvoiceCurrencyCode>'; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | function renderHtml() |
18 | 18 | { |
19 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/payment'); |
|
19 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/payment'); |
|
20 | 20 | return $smarty->render($this); |
21 | 21 | } |
22 | 22 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $payment = $this->getModel(); |
26 | 26 | if ($id = $payment->update($_POST)) { |
27 | 27 | if ($this->getKernel()->user->hasModuleAccess('accounting')) { |
28 | - return new k_SeeOther($this->url($id . '/state')); |
|
28 | + return new k_SeeOther($this->url($id.'/state')); |
|
29 | 29 | } else { |
30 | 30 | return new k_SeeOther($this->url('../')); |
31 | 31 | } |
@@ -48,14 +48,14 @@ discard block |
||
48 | 48 | <?php else : ?> |
49 | 49 | <?php if (isset($variation) && isset($product)) : ?> |
50 | 50 | <?php $module_product = $context->getKernel()->useModule('product'); ?> |
51 | - <li><a href="<?php e(url($module_product->getPath().$product->get('id').'/variation/'.$variation->getId())); ?>"><?php e(t('Show product')); ?></a></li> |
|
51 | + <li><a href="<?php e(url($module_product->getPath().$product->get('id').'/variation/'.$variation->getId())); ?>"><?php e(t('Show product')); ?></a></li> |
|
52 | 52 | <?php elseif (isset($product)) : ?> |
53 | 53 | <?php $module_product = $context->getKernel()->useModule('product'); ?> |
54 | - <li><a href="<?php e(url($module_product->getPath().$product->get('id'))); ?>"><?php e(t('Show product')); ?></a></li> |
|
54 | + <li><a href="<?php e(url($module_product->getPath().$product->get('id'))); ?>"><?php e(t('Show product')); ?></a></li> |
|
55 | 55 | <?php endif; ?> |
56 | 56 | <li><a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create')); ?></a></li> |
57 | 57 | <?php endif; ?> |
58 | - <li><a class="excel" href="<?php e(url(null . '.xls', array('use_stored' => 'true'))); ?>"><?php e(t('Excel')); ?></a> (<a href="<?php e(url(null . '.xls', array('use_stored' => 'true', 'simple' => 'true'))); ?>"><?php e(t('Simple')); ?></a>)</li> |
|
58 | + <li><a class="excel" href="<?php e(url(null.'.xls', array('use_stored' => 'true'))); ?>"><?php e(t('Excel')); ?></a> (<a href="<?php e(url(null.'.xls', array('use_stored' => 'true', 'simple' => 'true'))); ?>"><?php e(t('Simple')); ?></a>)</li> |
|
59 | 59 | </ul> |
60 | 60 | |
61 | 61 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | <tr id="i<?php e($post["id"]); ?>"> |
205 | 205 | <td><?php e($post["number"]); ?></td> |
206 | 206 | <td class="number"><?php e($post['contact']['number']); ?></td> |
207 | - <td><a href="<?php // e($contact_module->getPath()); ?><?php e(url('../../../contact/' . $post["contact_id"])); ?>"><?php e($post["name"]); ?></a></td> |
|
207 | + <td><a href="<?php // e($contact_module->getPath()); ?><?php e(url('../../../contact/'.$post["contact_id"])); ?>"><?php e($post["name"]); ?></a></td> |
|
208 | 208 | <td><a href="<?php e(url($post["id"])); ?>"><?php ($post["description"] != "") ? e($post["description"]) : e("[Ingen beskrivelse]"); ?></a></td> |
209 | 209 | <td class="amount"><?php e(number_format($post["total"], 2, ",", ".")); ?> </td> |
210 | 210 |
@@ -24,8 +24,11 @@ discard block |
||
24 | 24 | $module_administration = $context->getKernel()->useModule('administration'); |
25 | 25 | ?> |
26 | 26 | <a href="<?php e(url('../../../administration/intranet', array('edit'))); ?>"><?php e(t('Fill in address')); ?></a>. |
27 | - <?php else : ?> |
|
28 | - <?php e(t('You do not have access to edit the address information. Please ask your administrator to do that.')); ?> |
|
27 | + <?php else { |
|
28 | + : ?> |
|
29 | + <?php e(t('You do not have access to edit the address information. Please ask your administrator to do that.')); |
|
30 | +} |
|
31 | +?> |
|
29 | 32 | <?php e(strtolower(t($debtor->getType()))); ?>. |
30 | 33 | <?php endif; ?> |
31 | 34 | </p> |
@@ -35,19 +38,28 @@ discard block |
||
35 | 38 | <p> |
36 | 39 | <?php e(t('You have not created any. Credit notes are created from invoices.')); ?> |
37 | 40 | </p> |
38 | - <?php else : ?> |
|
41 | + <?php else { |
|
42 | + : ?> |
|
39 | 43 | |
40 | - <p><?php e(t('None has been created yet')); ?>. <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create '.$context->getType())); ?></a>.</p> |
|
44 | + <p><?php e(t('None has been created yet')); |
|
45 | +} |
|
46 | +?>. <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create '.$context->getType())); ?></a>.</p> |
|
41 | 47 | |
42 | 48 | <?php endif; ?> |
43 | -<?php else : ?> |
|
49 | +<?php else { |
|
50 | + : ?> |
|
44 | 51 | |
45 | 52 | <ul class="options"> |
46 | 53 | <?php if (!empty($contact) and is_object($contact) and $debtor->getType() != "credit_note") : ?> |
47 | - <li><a href="<?php e(url(null, array('create', 'contact_id' => $contact->get("id")))); ?>"><?php e(t('Create')); ?></a></li> |
|
48 | - <?php else : ?> |
|
54 | + <li><a href="<?php e(url(null, array('create', 'contact_id' => $contact->get("id")))); |
|
55 | +} |
|
56 | +?>"><?php e(t('Create')); ?></a></li> |
|
57 | + <?php else { |
|
58 | + : ?> |
|
49 | 59 | <?php if (isset($variation) && isset($product)) : ?> |
50 | - <?php $module_product = $context->getKernel()->useModule('product'); ?> |
|
60 | + <?php $module_product = $context->getKernel()->useModule('product'); |
|
61 | +} |
|
62 | +?> |
|
51 | 63 | <li><a href="<?php e(url($module_product->getPath().$product->get('id').'/variation/'.$variation->getId())); ?>"><?php e(t('Show product')); ?></a></li> |
52 | 64 | <?php elseif (isset($product)) : ?> |
53 | 65 | <?php $module_product = $context->getKernel()->useModule('product'); ?> |