@@ -11,7 +11,7 @@ |
||
11 | 11 | <tr> |
12 | 12 | <td><?php e($memo['dk_reminder_date']); ?></td> |
13 | 13 | <td><a href="<?php e(url($memo['id'])); ?>"><?php e($memo['subject']); ?></a></td> |
14 | - <td><a href="<?php e(url('../../' . $memo['contact_id'])); ?>"><?php e(t('Contact')); ?> <?php e($memo['contact_id']); ?></a></td> |
|
14 | + <td><a href="<?php e(url('../../'.$memo['contact_id'])); ?>"><?php e(t('Contact')); ?> <?php e($memo['contact_id']); ?></a></td> |
|
15 | 15 | </tr> |
16 | 16 | <?php endforeach; ?> |
17 | 17 | </table> |
18 | 18 | \ No newline at end of file |
@@ -6,22 +6,22 @@ discard block |
||
6 | 6 | <div id="colOne"> |
7 | 7 | |
8 | 8 | <div class="box"> |
9 | - <img style="float: right;" src="<?php e('http://www.gravatar.com/avatar/'.md5($address['email']).'?s=60&d='.NET_SCHEME . NET_HOST . url('/images/icons/gravatar.png')); ?>" height="60" width="60" /> |
|
9 | + <img style="float: right;" src="<?php e('http://www.gravatar.com/avatar/'.md5($address['email']).'?s=60&d='.NET_SCHEME.NET_HOST.url('/images/icons/gravatar.png')); ?>" height="60" width="60" /> |
|
10 | 10 | |
11 | 11 | <h1>#<?php e($value['number']); ?> <?php e($address['name']); ?></h1> |
12 | 12 | |
13 | 13 | <ul class="options" style="clear: none;"> |
14 | 14 | <li><a href="<?php e(url(null, array('edit'))); ?>"><?php e(t('Edit')); ?></a></li> |
15 | 15 | <li><a href="<?php e(url('../', array('use_stored' => 'true'))); ?>"><?php e(t('Close')); ?></a></li> |
16 | - <li><a class="vcard" href="<?php e(url(null . '.vcf')); ?>"><?php e(t('Vcard')); ?></a></li> |
|
16 | + <li><a class="vcard" href="<?php e(url(null.'.vcf')); ?>"><?php e(t('Vcard')); ?></a></li> |
|
17 | 17 | </ul> |
18 | 18 | |
19 | 19 | <ul class="options" style="clear: none;"> |
20 | 20 | <?php foreach ($context->getDependencies() as $key => $dependency) : ?> |
21 | 21 | <?php if ($dependency['gateway']->findCountByContactId($context->getContact()->get("id")) > 0) : ?> |
22 | - <li><a href="<?php e($dependency['url']); ?>"><?php e(t(ucfirst($dependency['label'] . 's'))); ?></a></li> |
|
22 | + <li><a href="<?php e($dependency['url']); ?>"><?php e(t(ucfirst($dependency['label'].'s'))); ?></a></li> |
|
23 | 23 | <?php elseif (!empty($dependency['url_create'])) : ?> |
24 | - <li class="inactive"><a href="<?php e($dependency['url_create']); ?>"><?php e(t('Create') . ' ' . t($dependency['label'])); ?></a></li> |
|
24 | + <li class="inactive"><a href="<?php e($dependency['url_create']); ?>"><?php e(t('Create').' '.t($dependency['label'])); ?></a></li> |
|
25 | 25 | <?php endif; ?> |
26 | 26 | <?php endforeach; ?> |
27 | 27 | </ul> |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | <?php |
157 | 157 | foreach ($persons as $person) { ?> |
158 | 158 | <tr class="vcard"> |
159 | - <td class="fn"><a href="<?php e(url('contactperson/' . $person['id'], array('edit'))); ?>"><?php e($person['name']); ?></a></td> |
|
159 | + <td class="fn"><a href="<?php e(url('contactperson/'.$person['id'], array('edit'))); ?>"><?php e($person['name']); ?></a></td> |
|
160 | 160 | <td class="email"><?php e($person['email']); ?></td> |
161 | 161 | <td class="tel"><?php e($person['phone']); ?></td> |
162 | 162 | <td class="tel"><?php e($person['mobile']); ?></td> |
@@ -201,8 +201,8 @@ discard block |
||
201 | 201 | } |
202 | 202 | ?> |
203 | 203 | </td> |
204 | - <td><a href="<?php e(url('memo/' . $reminder_item['id'])); ?>"><?php e($reminder_item['subject']); ?></a></td> |
|
205 | - <td class="buttons"><a href="<?php e(url('memo/' .$reminder_item['id'], array('edit'))); ?>" class="edit"><?php e(t('edit')); ?></a></td> |
|
204 | + <td><a href="<?php e(url('memo/'.$reminder_item['id'])); ?>"><?php e($reminder_item['subject']); ?></a></td> |
|
205 | + <td class="buttons"><a href="<?php e(url('memo/'.$reminder_item['id'], array('edit'))); ?>" class="edit"><?php e(t('edit')); ?></a></td> |
|
206 | 206 | </tr> |
207 | 207 | <?php |
208 | 208 | } |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | <?php if ($context->getKernel()->getSetting()->get('user', 'contact.search') == 'hide' and count($context->getContacts()) > 0) : ?> |
6 | 6 | <li><a href="<?php e(url(null, array('search' => 'view'))); ?>"><?php e(t('show search')); ?></a></li> |
7 | 7 | <?php endif; ?> |
8 | - <li><a class="pdf" href="<?php e(url(null . '.pdf', array('use_stored' => 'true'))); ?>" target="_blank"><?php e(t('Pdf-labels')); ?></a></li> |
|
9 | - <li><a class="excel" href="<?php e(url(null . '.xls', array('use_stored' => 'true'))); ?>"><?php e(t('Excel')); ?></a></li> |
|
8 | + <li><a class="pdf" href="<?php e(url(null.'.pdf', array('use_stored' => 'true'))); ?>" target="_blank"><?php e(t('Pdf-labels')); ?></a></li> |
|
9 | + <li><a class="excel" href="<?php e(url(null.'.xls', array('use_stored' => 'true'))); ?>"><?php e(t('Excel')); ?></a></li> |
|
10 | 10 | <li><a href="<?php e(url('sendemail', array('use_stored' => true))); ?>"><?php e(t('Email to contacts in search')); ?></a></li> |
11 | 11 | <li><a href="<?php e(url('import/file')); ?>"><?php e(t('Import contacts')); ?></a></li> |
12 | 12 | <li><a href="<?php e(url('../')); ?>"><?php e(t('Close')); ?></a></li> |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | <input type="checkbox" value="<?php e($c['id']); ?>" name="selected[]" /> |
87 | 87 | </td> |
88 | 88 | <td><?php e($c['number']); ?></td> |
89 | - <td><img style="border: none; vertical-align:middle" src="<?php e('http://www.gravatar.com/avatar/'.md5($c['email']).'?s=20&d=&d='.NET_SCHEME . NET_HOST . url('/images/icons/gravatar.png')); ?>" height="20" width="20" /> <a class="fn" href="<?php e(url($c['id'])); ?>"><?php e($c['name']); ?></a></td> |
|
89 | + <td><img style="border: none; vertical-align:middle" src="<?php e('http://www.gravatar.com/avatar/'.md5($c['email']).'?s=20&d=&d='.NET_SCHEME.NET_HOST.url('/images/icons/gravatar.png')); ?>" height="20" width="20" /> <a class="fn" href="<?php e(url($c['id'])); ?>"><?php e($c['name']); ?></a></td> |
|
90 | 90 | <td class="tel"><?php e($c['phone']); ?></td> |
91 | 91 | <td class="email"><?php e($c['email']); ?></td> |
92 | 92 | <td class="options"> |
@@ -21,12 +21,15 @@ |
||
21 | 21 | |
22 | 22 | <p><?php e(t('No contacts has been created')); ?>. <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create contact')); ?></a>.</p> |
23 | 23 | |
24 | -<?php else : ?> |
|
24 | +<?php else { |
|
25 | + : ?> |
|
25 | 26 | |
26 | 27 | |
27 | 28 | <?php if ($context->getKernel()->getSetting()->get('user', 'contact.search') == 'view') : ?> |
28 | 29 | |
29 | -<form action="<?php e(url()); ?>" method="get" class="search-filter"> |
|
30 | +<form action="<?php e(url()); |
|
31 | +} |
|
32 | +?>" method="get" class="search-filter"> |
|
30 | 33 | <fieldset> |
31 | 34 | <legend><?php e(t('search')); ?></legend> |
32 | 35 |
@@ -58,13 +58,13 @@ |
||
58 | 58 | <?php foreach ($context->getSimilarContacts() as $c) { ?> |
59 | 59 | <tr> |
60 | 60 | <td><input type="checkbox" value="<?php e($c['id']); ?>" name="contact[]" /></td> |
61 | - <td><a href="<?php e(url('../../' . $c['id'])); ?>"><?php e($c['number']); ?></a></td> |
|
61 | + <td><a href="<?php e(url('../../'.$c['id'])); ?>"><?php e($c['number']); ?></a></td> |
|
62 | 62 | <td><?php e($c['name']); ?></td> |
63 | 63 | <td><?php e($c['address']); ?></td> |
64 | 64 | <td><?php e($c['postcode']); ?> <?php e($c['city']); ?></td> |
65 | 65 | <td><?php e($c['phone']); ?></td> |
66 | 66 | <td><?php e($c['email']); ?></td> |
67 | - <td><a href="<?php e(url('../../' . $c['id'] . '/merge')); ?>"><?php e(t('Switch to')); ?></a></td> |
|
67 | + <td><a href="<?php e(url('../../'.$c['id'].'/merge')); ?>"><?php e(t('Switch to')); ?></a></td> |
|
68 | 68 | </tr> |
69 | 69 | <?php } ?> |
70 | 70 | </tbody> |
@@ -9,9 +9,12 @@ |
||
9 | 9 | <?php endforeach; ?> |
10 | 10 | <?php endif; ?> |
11 | 11 | |
12 | -<?php else : ?> |
|
12 | +<?php else { |
|
13 | + : ?> |
|
13 | 14 | |
14 | - <form action="<?php e(url()); ?>" method="post"> |
|
15 | + <form action="<?php e(url()); |
|
16 | +} |
|
17 | +?>" method="post"> |
|
15 | 18 | |
16 | 19 | |
17 | 20 | <fieldset> |
@@ -8,9 +8,12 @@ |
||
8 | 8 | |
9 | 9 | <p><?php echo $context->getMessage(); ?></p> |
10 | 10 | |
11 | -<?php else : ?> |
|
11 | +<?php else { |
|
12 | + : ?> |
|
12 | 13 | |
13 | - <?php echo $contact->error->view(); ?> |
|
14 | + <?php echo $contact->error->view(); |
|
15 | +} |
|
16 | +?> |
|
14 | 17 | |
15 | 18 | <p class="message">Du er ved at sende en e-mail til <?php e(count($contacts)); ?> kontakter. Vi sender naturligvis kun til de kontakter, der har en e-mail-adresse.</p> |
16 | 19 |
@@ -6,9 +6,12 @@ |
||
6 | 6 | |
7 | 7 | <p><?php e(t('No contacts has been created')); ?>. <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create contact')); ?></a>.</p> |
8 | 8 | |
9 | -<?php else : ?> |
|
9 | +<?php else { |
|
10 | + : ?> |
|
10 | 11 | <ul class="options"> |
11 | - <li><a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create contact')); ?></a></li> |
|
12 | + <li><a href="<?php e(url(null, array('create'))); |
|
13 | +} |
|
14 | +?>"><?php e(t('Create contact')); ?></a></li> |
|
12 | 15 | <?php if (isset($_GET['last_contact_id']) && intval($_GET['last_contact_id']) != 0) : ?> |
13 | 16 | <li><a href="<?php e(url(null, array('contact_id' => $_GET['last_contact_id']))); ?>"><?php e(t('Show chosen')); ?></a></li> |
14 | 17 | <?php endif; ?> |
@@ -48,7 +48,7 @@ |
||
48 | 48 | <tr> |
49 | 49 | <td><?php e($c['name']); ?></td> |
50 | 50 | <td><?php e($c['address']); ?></td> |
51 | - <td><?php e($c['postcode'] . ' ' . $c['city']); ?></td> |
|
51 | + <td><?php e($c['postcode'].' '.$c['city']); ?></td> |
|
52 | 52 | <td><?php e($c['phone']); ?></td> |
53 | 53 | <td><?php e($c['email']); ?></td> |
54 | 54 | <td><a href="<?php e(url($c['id'])); ?>"><?php e(t('Choose')); ?></a></td> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | 'contact' => $contact |
28 | 28 | ); |
29 | 29 | |
30 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/sendemail'); |
|
30 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/sendemail'); |
|
31 | 31 | return $smarty->render($this, $data); |
32 | 32 | } |
33 | 33 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $email = new Email($this->getKernel()); |
59 | 59 | $input = array( |
60 | 60 | 'subject' => $_POST['subject'], |
61 | - 'body' => $_POST['text'] . "\n\nLogin: " . $contact->get('login_url'), |
|
61 | + 'body' => $_POST['text']."\n\nLogin: ".$contact->get('login_url'), |
|
62 | 62 | 'from_email' => $this->getKernel()->user->get('email'), |
63 | 63 | 'from_name' => $this->getKernel()->user->get('name'), |
64 | 64 | 'contact_id' => $contact->get('id'), |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $email->queue(); |
71 | 71 | $j++; |
72 | 72 | } |
73 | - $this->msg = 'Emailen blev i alt sendt til ' . $j . ' kontakter. <a href="'.$this->url('../').'">Tilbage til kontakter</a>.'; |
|
73 | + $this->msg = 'Emailen blev i alt sendt til '.$j.' kontakter. <a href="'.$this->url('../').'">Tilbage til kontakter</a>.'; |
|
74 | 74 | } else { |
75 | 75 | $value = $_POST; |
76 | 76 | } |