Completed
Push — master ( 55a138...ee7aee )
by Michael
05:41
created
class/Common/ServerStats.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -34,19 +34,19 @@  discard block
 block discarded – undo
34 34
         //        $sql   .= " WHERE metakey='version' LIMIT 1";
35 35
         //        $query = $GLOBALS['xoopsDB']->query($sql);
36 36
         //        list($meta) = $GLOBALS['xoopsDB']->fetchRow($query);
37
-        $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>" . constant('CO_' . $moduleDirNameUpper . '_IMAGEINFO') . "</legend>\n";
37
+        $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>".constant('CO_'.$moduleDirNameUpper.'_IMAGEINFO')."</legend>\n";
38 38
         $html .= "<div style='padding: 8px;'>\n";
39 39
         //        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_METAVERSION') . $meta . "</div>\n";
40 40
         //        $html .= "<br>\n";
41 41
         //        $html .= "<br>\n";
42
-        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . "</div>\n";
42
+        $html .= '<div>'.constant('CO_'.$moduleDirNameUpper.'_SPHPINI')."</div>\n";
43 43
         $html .= "<ul>\n";
44 44
         //
45
-        $gdlib = function_exists('gd_info') ? '<span style="color: green;">' . constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: red;">' . constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
46
-        $html  .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib;
45
+        $gdlib = function_exists('gd_info') ? '<span style="color: green;">'.constant('CO_'.$moduleDirNameUpper.'_GDON').'</span>' : '<span style="color: red;">'.constant('CO_'.$moduleDirNameUpper.'_GDOFF').'</span>';
46
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS').$gdlib;
47 47
         if (function_exists('gd_info')) {
48 48
             if ($gdlib = true === gd_info()) {
49
-                $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>';
49
+                $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBVERSION').'<b>'.$gdlib['GD Version'].'</b>';
50 50
             }
51 51
         }
52 52
         //
@@ -56,18 +56,18 @@  discard block
 block discarded – undo
56 56
         //    $registerglobals = (!ini_get('register_globals')) ? "<span style=\"color: green;\">" . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: red;\">" . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>';
57 57
         //    $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals;
58 58
         //
59
-        $downloads = ini_get('file_uploads') ? '<span style="color: green;">' . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: red;">' . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
60
-        $html      .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads;
59
+        $downloads = ini_get('file_uploads') ? '<span style="color: green;">'.constant('CO_'.$moduleDirNameUpper.'_ON').'</span>' : '<span style="color: red;">'.constant('CO_'.$moduleDirNameUpper.'_OFF').'</span>';
60
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS').$downloads;
61 61
         //
62
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: blue;">' . ini_get('upload_max_filesize') . "</span></b>\n";
63
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: blue;">' . ini_get('post_max_size') . "</span></b>\n";
64
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT') . ' <b><span style="color: blue;">' . ini_get('memory_limit') . "</span></b>\n";
62
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE').' <b><span style="color: blue;">'.ini_get('upload_max_filesize')."</span></b>\n";
63
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE').' <b><span style="color: blue;">'.ini_get('post_max_size')."</span></b>\n";
64
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT').' <b><span style="color: blue;">'.ini_get('memory_limit')."</span></b>\n";
65 65
         $html .= "</ul>\n";
66 66
         $html .= "<ul>\n";
67
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERPATH') . ' <b>' . XOOPS_ROOT_PATH . "</b>\n";
67
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERPATH').' <b>'.XOOPS_ROOT_PATH."</b>\n";
68 68
         $html .= "</ul>\n";
69 69
         $html .= "<br>\n";
70
-        $html .= constant('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC') . "\n";
70
+        $html .= constant('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC')."\n";
71 71
         $html .= '</div>';
72 72
         $html .= '</fieldset><br>';
73 73
 
Please login to merge, or discard this patch.
class/Form/FormRecurRules.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -67,45 +67,45 @@  discard block
 block discarded – undo
67 67
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
68 68
         $formObject->addOption('none', _MD_EXTCAL_NO_RECCUR_EVENT);
69 69
         $ret .= $formObject->render();
70
-        $ret .= '<br><br><fieldset><legend>' . _MD_EXTCAL_RECCUR_POLICY . '</legend><fieldset><legend>';
70
+        $ret .= '<br><br><fieldset><legend>'._MD_EXTCAL_RECCUR_POLICY.'</legend><fieldset><legend>';
71 71
 
72 72
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
73 73
         $formObject->addOption('daily', _MD_EXTCAL_DAILY);
74 74
         $ret .= $formObject->render();
75
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
75
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
76 76
 
77 77
         $formObject = new \XoopsFormText('', 'rrule_daily_interval', 3, 2, $this->_rrule_daily_interval);
78 78
         $ret        .= $formObject->render();
79
-        $ret        .= ' ' . _MD_EXTCAL_DAYS . '</fieldset><br><fieldset><legend>';
79
+        $ret        .= ' '._MD_EXTCAL_DAYS.'</fieldset><br><fieldset><legend>';
80 80
 
81 81
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
82 82
         $formObject->addOption('weekly', _MD_EXTCAL_WEEKLY);
83 83
         $ret .= $formObject->render();
84
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
84
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
85 85
 
86 86
         $formObject = new \XoopsFormText('', 'rrule_weekly_interval', 3, 2, $this->_rrule_weekly_interval);
87 87
         $ret        .= $formObject->render();
88
-        $ret        .= ' ' . _MD_EXTCAL_WEEKS . '<br>';
88
+        $ret        .= ' '._MD_EXTCAL_WEEKS.'<br>';
89 89
 
90 90
         $formObject = new \XoopsFormCheckBox('', 'rrule_weekly_bydays', $this->_rrule_weekly_bydays);
91
-        $formObject->addOption('MO', _MD_EXTCAL_MO2 . '&nbsp;');
92
-        $formObject->addOption('TU', _MD_EXTCAL_TU2 . '&nbsp;');
93
-        $formObject->addOption('WE', _MD_EXTCAL_WE2 . '&nbsp;');
94
-        $formObject->addOption('TH', _MD_EXTCAL_TH2 . '&nbsp;');
95
-        $formObject->addOption('FR', _MD_EXTCAL_FR2 . '&nbsp;');
96
-        $formObject->addOption('SA', _MD_EXTCAL_SA2 . '&nbsp;');
97
-        $formObject->addOption('SU', _MD_EXTCAL_SU2 . '&nbsp;');
91
+        $formObject->addOption('MO', _MD_EXTCAL_MO2.'&nbsp;');
92
+        $formObject->addOption('TU', _MD_EXTCAL_TU2.'&nbsp;');
93
+        $formObject->addOption('WE', _MD_EXTCAL_WE2.'&nbsp;');
94
+        $formObject->addOption('TH', _MD_EXTCAL_TH2.'&nbsp;');
95
+        $formObject->addOption('FR', _MD_EXTCAL_FR2.'&nbsp;');
96
+        $formObject->addOption('SA', _MD_EXTCAL_SA2.'&nbsp;');
97
+        $formObject->addOption('SU', _MD_EXTCAL_SU2.'&nbsp;');
98 98
         $ret .= $formObject->render();
99 99
         $ret .= '</fieldset><br><fieldset><legend>';
100 100
 
101 101
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
102 102
         $formObject->addOption('monthly', _MD_EXTCAL_MONTHLY);
103 103
         $ret .= $formObject->render();
104
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
104
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
105 105
 
106 106
         $formObject = new \XoopsFormText('', 'rrule_monthly_interval', 3, 2, $this->_rrule_monthly_interval);
107 107
         $ret        .= $formObject->render();
108
-        $ret        .= ' ' . _MD_EXTCAL_MONTH . ', ' . _MD_EXTCAL_ON . ' ';
108
+        $ret        .= ' '._MD_EXTCAL_MONTH.', '._MD_EXTCAL_ON.' ';
109 109
 
110 110
         $formObject = new \XoopsFormSelect('', 'rrule_monthly_byday', $this->_rrule_monthly_byday);
111 111
         $formObject->addOption('', '&nbsp;');
@@ -145,20 +145,20 @@  discard block
 block discarded – undo
145 145
         $formObject->addOption('-1SA', _MD_EXTCAL_LAST_SA);
146 146
         $formObject->addOption('-1SU', _MD_EXTCAL_LAST_SU);
147 147
         $ret .= $formObject->render();
148
-        $ret .= ' ' . _MD_EXTCAL_OR_THE . ' ';
148
+        $ret .= ' '._MD_EXTCAL_OR_THE.' ';
149 149
 
150 150
         $formObject = new \XoopsFormText('', 'rrule_bymonthday', 3, 2, $this->_rrule_bymonthday);
151 151
         $ret        .= $formObject->render();
152
-        $ret        .= ' ' . _MD_EXTCAL_DAY_NUM_MONTH . '</fieldset><br><fieldset><legend>';
152
+        $ret        .= ' '._MD_EXTCAL_DAY_NUM_MONTH.'</fieldset><br><fieldset><legend>';
153 153
 
154 154
         $formObject = new \XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq);
155 155
         $formObject->addOption('yearly', _MD_EXTCAL_YEARLY);
156 156
         $ret .= $formObject->render();
157
-        $ret .= '</legend>' . _MD_EXTCAL_DURING . ' ';
157
+        $ret .= '</legend>'._MD_EXTCAL_DURING.' ';
158 158
 
159 159
         $formObject = new \XoopsFormText('', 'rrule_yearly_interval', 3, 2, $this->_rrule_yearly_interval);
160 160
         $ret        .= $formObject->render();
161
-        $ret        .= ' ' . _MD_EXTCAL_YEARS . '<br>';
161
+        $ret        .= ' '._MD_EXTCAL_YEARS.'<br>';
162 162
 
163 163
         $formObject = new Extcal\Form\FormRRuleCheckBox('', 'rrule_yearly_bymonths', $this->_rrule_yearly_bymonths);
164 164
         $formObject->addOption('1', _MD_EXTCAL_JAN);
Please login to merge, or discard this patch.
class/Form/FormRRuleCheckBox.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,18 +42,18 @@
 block discarded – undo
42 42
         $ret = '<table><tr>';
43 43
         $i   = 0;
44 44
         if (count($this->getOptions()) > 1 && '[]' !== substr($this->getName(), -2, 2)) {
45
-            $newname = $this->getName() . '[]';
45
+            $newname = $this->getName().'[]';
46 46
             $this->setName($newname);
47 47
         }
48 48
         foreach ($this->getOptions() as $value => $name) {
49 49
             if (0 == (++$i) % 6) {
50 50
                 $ret .= '</tr><tr>';
51 51
             }
52
-            $ret .= "<td><input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
52
+            $ret .= "<td><input type='checkbox' name='".$this->getName()."' value='".$value."'";
53 53
             if (count($this->getValue()) > 0 && in_array($value, $this->getValue())) {
54 54
                 $ret .= ' checked';
55 55
             }
56
-            $ret .= $this->getExtra() . '>' . $name . "</td>\n";
56
+            $ret .= $this->getExtra().'>'.$name."</td>\n";
57 57
         }
58 58
         $ret .= '</tr></table>';
59 59
 
Please login to merge, or discard this patch.
class/Form/FormFileCheckBox.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
     {
44 44
         $ret = '';
45 45
         if (count($this->getOptions()) > 1 && '[]' !== substr($this->getName(), -2, 2)) {
46
-            $newname = $this->getName() . '[]';
46
+            $newname = $this->getName().'[]';
47 47
             $this->setName($newname);
48 48
         }
49 49
         foreach ($this->getOptions() as $value => $name) {
50
-            $ret .= "<input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
50
+            $ret .= "<input type='checkbox' name='".$this->getName()."' value='".$value."'";
51 51
             $ret .= ' checked';
52
-            $ret .= $this->getExtra() . '>' . $name . "<br>\n";
52
+            $ret .= $this->getExtra().'>'.$name."<br>\n";
53 53
         }
54 54
 
55 55
         return $ret;
Please login to merge, or discard this patch.
class/Form/Spin/FormSpin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function setMin($min)
203 203
     {
204
-        $this->_min = (int)$min;
204
+        $this->_min = (int) $min;
205 205
     }
206 206
     /*-----------------------------------------------------------------*/
207 207
     /**
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function setMax($max)
221 221
     {
222
-        $this->_max = (int)$max;
222
+        $this->_max = (int) $max;
223 223
     }
224 224
 
225 225
     /*-----------------------------------------------------------------*/
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     public function setSmallIncrement($smallIncrement)
243 243
     {
244
-        $this->_smallIncrement = (int)$smallIncrement;
244
+        $this->_smallIncrement = (int) $smallIncrement;
245 245
         if (0 == $this->_smallIncrement) {
246 246
             $this->_smallIncrement = 1;
247 247
         }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     public function setLargeIncrement($largeIncrement)
265 265
     {
266
-        $this->_largeIncrement = (int)$largeIncrement;
266
+        $this->_largeIncrement = (int) $largeIncrement;
267 267
         if (0 == $this->_largeIncrement) {
268 268
             $this->_largeIncrement = 10;
269 269
         }
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
405 405
 
406 406
         $prefixe  = $this->getName();
407
-        $prefixe2 = 'spin' . $prefixe;
407
+        $prefixe2 = 'spin'.$prefixe;
408 408
 
409 409
         $smallIncrement = $this->getSmallIncrement();
410 410
         $largeIncrement = $this->getLargeIncrement();
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
         $t = [];
424 424
 
425 425
         if ($this->_loadJS) {
426
-            $js  = $sSpinFolder . '/js/spin.js';
426
+            $js  = $sSpinFolder.'/js/spin.js';
427 427
             $t[] = "<script src='{$js}' type='text/javascript'></script>";
428 428
         }
429 429
 
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         //-------------------------------------------------------
469 469
 
470 470
         $t[] = '  </tr>';
471
-        $t[] = '</table>' . "\n";
471
+        $t[] = '</table>'."\n";
472 472
         $t[] = '</div>';
473 473
         //-------------------------------------------
474 474
         $html = implode("\n", $t);
Please login to merge, or discard this patch.
class/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     {
71 71
         $ret   = false;
72 72
         $db    = \XoopsDatabaseFactory::getDatabaseConnection();
73
-        $class = '\\XoopsModules\\' . ucfirst(strtolower(basename(dirname(__DIR__)))) . '\\' . $name . 'Handler';
73
+        $class = '\\XoopsModules\\'.ucfirst(strtolower(basename(dirname(__DIR__)))).'\\'.$name.'Handler';
74 74
         $ret   = new $class($db);
75 75
         return $ret;
76 76
     }
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once __DIR__ . '/../../../include/cp_header.php';
22
+require_once __DIR__.'/../../../include/cp_header.php';
23 23
 require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
24
-require_once __DIR__ . '/../include/constantes.php';
24
+require_once __DIR__.'/../include/constantes.php';
25 25
 
26
-include __DIR__ . '/../preloads/autoloader.php';
26
+include __DIR__.'/../preloads/autoloader.php';
27 27
 
28 28
 $moduleDirName = basename(dirname(__DIR__));
29 29
 
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,33 +29,33 @@
 block discarded – undo
29 29
 $adminmenu[] = [
30 30
     'title' => _MI_EXTCAL_INDEX,
31 31
     'link'  => 'admin/index.php',
32
-    'icon'  => $pathIcon32 . '/home.png'
32
+    'icon'  => $pathIcon32.'/home.png'
33 33
 ];
34 34
 
35 35
 $adminmenu[] = [
36 36
     'title' => _MI_EXTCAL_CATEGORY,
37 37
     'link'  => 'admin/cat.php',
38
-    'icon'  => $pathIcon32 . '/category.png'
38
+    'icon'  => $pathIcon32.'/category.png'
39 39
 ];
40 40
 
41 41
 $adminmenu[] = [
42 42
     'title' => _MI_EXTCAL_EVENT,
43 43
     'link'  => 'admin/event.php',
44
-    'icon'  => $pathIcon32 . '/event.png'
44
+    'icon'  => $pathIcon32.'/event.png'
45 45
 ];
46 46
 $adminmenu[] = [
47 47
     'title' => _MI_EXTCAL_ETABLISSEMENTS,
48 48
     'link'  => 'admin/etablissement.php',
49
-    'icon'  => $pathModIcon32 . '/etablissement.png'
49
+    'icon'  => $pathModIcon32.'/etablissement.png'
50 50
 ];
51 51
 $adminmenu[] = [
52 52
     'title' => _MI_EXTCAL_PERMISSIONS,
53 53
     'link'  => 'admin/permissions.php',
54
-    'icon'  => $pathIcon32 . '/permissions.png'
54
+    'icon'  => $pathIcon32.'/permissions.png'
55 55
 ];
56 56
 
57 57
 $adminmenu[] = [
58 58
     'title' => _MI_EXTCAL_ABOUT,
59 59
     'link'  => 'admin/about.php',
60
-    'icon'  => $pathIcon32 . '/about.png'
60
+    'icon'  => $pathIcon32.'/about.png'
61 61
 ];
Please login to merge, or discard this patch.
print.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-include __DIR__ . '/../../mainfile.php';
23
-require_once __DIR__ . '/include/constantes.php';
22
+include __DIR__.'/../../mainfile.php';
23
+require_once __DIR__.'/include/constantes.php';
24 24
 
25
-require_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php';
25
+require_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php';
26 26
 
27 27
 if (!isset($_GET['event'])) {
28 28
     $eventId = 0;
29 29
 } else {
30
-    $eventId = (int)$_GET['event'];
30
+    $eventId = (int) $_GET['event'];
31 31
 }
32 32
 $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT);
33 33
 $event        = $eventHandler->objectToArray($eventHandler->getEvent($eventId), ['cat_id']);
@@ -42,136 +42,136 @@  discard block
 block discarded – undo
42 42
 // Adding formated date for start and end event
43 43
 $eventHandler->formatEventDate($event, $xoopsModuleConfig['event_date_event']);
44 44
 
45
-echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
46
-echo '<html xmlns="http://www.w3.org/1999/xhtml">' . "\n";
47
-echo '<head>' . "\n";
48
-echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '">' . "\n";
49
-echo '<title>' . $event['cat']['cat_name'] . ' - ' . $event['event_title'] . '</title>' . "\n";
50
-echo '</head>' . "\n";
51
-echo '<body onload="window.print()">' . "\n";
52
-echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">' . "\n";
53
-echo '<tr>' . "\n";
54
-echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">' . "\n";
55
-echo $event['event_title'] . "\n";
56
-echo '</td>' . "\n";
57
-echo '</tr>' . "\n";
58
-echo '<tr>' . "\n";
59
-echo '<td style="width:50%; border:1px solid black;">' . "\n";
60
-echo '<b>' . $event['cat']['cat_name'] . '</b><br>' . "\n";
61
-echo '<span style="font-weight:normal;">' . $event['cat']['cat_desc'] . '</span>' . "\n";
62
-echo '</td>' . "\n";
63
-echo '<td style="border:1px solid black;">' . "\n";
45
+echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
46
+echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
47
+echo '<head>'."\n";
48
+echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'">'."\n";
49
+echo '<title>'.$event['cat']['cat_name'].' - '.$event['event_title'].'</title>'."\n";
50
+echo '</head>'."\n";
51
+echo '<body onload="window.print()">'."\n";
52
+echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">'."\n";
53
+echo '<tr>'."\n";
54
+echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">'."\n";
55
+echo $event['event_title']."\n";
56
+echo '</td>'."\n";
57
+echo '</tr>'."\n";
58
+echo '<tr>'."\n";
59
+echo '<td style="width:50%; border:1px solid black;">'."\n";
60
+echo '<b>'.$event['cat']['cat_name'].'</b><br>'."\n";
61
+echo '<span style="font-weight:normal;">'.$event['cat']['cat_desc'].'</span>'."\n";
62
+echo '</td>'."\n";
63
+echo '<td style="border:1px solid black;">'."\n";
64 64
 if (!$event['event_isrecur']) {
65
-    echo '<b>' . _MD_EXTCAL_START . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_start'] . '</span><br>' . "\n";
66
-    echo '<b>' . _MD_EXTCAL_END . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_end'] . '</span>' . "\n";
65
+    echo '<b>'._MD_EXTCAL_START.' :</b> <span style="font-weight:normal;">'.$event['formated_event_start'].'</span><br>'."\n";
66
+    echo '<b>'._MD_EXTCAL_END.' :</b> <span style="font-weight:normal;">'.$event['formated_event_end'].'</span>'."\n";
67 67
 } else {
68
-    echo '<b>' . _MD_EXTCAL_RECCUR_RULE . ' :</b> <span style="font-weight:normal;">' . $event['formated_reccur_rule'] . '</span>' . "\n";
68
+    echo '<b>'._MD_EXTCAL_RECCUR_RULE.' :</b> <span style="font-weight:normal;">'.$event['formated_reccur_rule'].'</span>'."\n";
69 69
 }
70
-echo '</td>' . "\n";
71
-echo '</tr>' . "\n";
70
+echo '</td>'."\n";
71
+echo '</tr>'."\n";
72 72
 
73
-echo '<tr>' . "\n";
73
+echo '<tr>'."\n";
74 74
 if ('' != $event['event_desc']) {
75
-    echo '<td style="border:1px solid black;">' . $event['event_desc'] . '</td>' . "\n";
75
+    echo '<td style="border:1px solid black;">'.$event['event_desc'].'</td>'."\n";
76 76
 }
77 77
 if ('' != $event['event_price']) {
78
-    echo '<td style="border:1px solid black;">' . _MD_EXTCAL_ETABLISSEMENT_PRICE . $event['event_price'] . ' ' . _MD_EXTCAL_DEVISE2 . '</td>' . "\n";
78
+    echo '<td style="border:1px solid black;">'._MD_EXTCAL_ETABLISSEMENT_PRICE.$event['event_price'].' '._MD_EXTCAL_DEVISE2.'</td>'."\n";
79 79
 }
80
-echo '</tr>' . "\n";
80
+echo '</tr>'."\n";
81 81
 
82 82
 //show contact info
83 83
 if ('' != $event['event_contact']) {
84
-    echo '<tr>' . "\n";
85
-    echo '<td style="border:1px solid black;">' . "\n";
86
-    echo '<b>' . _MD_EXTCAL_CONTACT_INFO . '</b><br>' . "\n";
87
-    echo '<span style="font-weight:normal;">' . $event['event_organisateur'] . '<br>' . "\n";
88
-    echo '<span style="font-weight:normal;">' . $event['event_contact'] . '<br>' . "\n";
89
-    echo $event['event_address'] . '</span>' . "\n";
90
-    echo '</td>' . "\n";
91
-    echo '<td style="border:1px solid black;">' . "\n";
92
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $event['event_email'] . '">' . $event['event_email'] . '</a><br>' . "\n";
93
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $event['event_url'] . '">' . $event['event_url'] . '</a>' . "\n";
94
-    echo '</td>' . "\n";
95
-    echo '</tr>' . "\n";
84
+    echo '<tr>'."\n";
85
+    echo '<td style="border:1px solid black;">'."\n";
86
+    echo '<b>'._MD_EXTCAL_CONTACT_INFO.'</b><br>'."\n";
87
+    echo '<span style="font-weight:normal;">'.$event['event_organisateur'].'<br>'."\n";
88
+    echo '<span style="font-weight:normal;">'.$event['event_contact'].'<br>'."\n";
89
+    echo $event['event_address'].'</span>'."\n";
90
+    echo '</td>'."\n";
91
+    echo '<td style="border:1px solid black;">'."\n";
92
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$event['event_email'].'">'.$event['event_email'].'</a><br>'."\n";
93
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$event['event_url'].'">'.$event['event_url'].'</a>'."\n";
94
+    echo '</td>'."\n";
95
+    echo '</tr>'."\n";
96 96
 }
97 97
 
98 98
 //show location
99 99
 if ($event['event_etablissement'] = 0) {
100
-    echo '<tr>' . "\n";
100
+    echo '<tr>'."\n";
101 101
 
102 102
     //    echo($location['nom']);
103 103
     //    var_dump($location);
104 104
     //    var_dump($event);
105 105
 
106
-    echo '<td style="border:1px solid black;">' . "\n";
107
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT . '</b>' . "\n";
106
+    echo '<td style="border:1px solid black;">'."\n";
107
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT.'</b>'."\n";
108 108
     if ('' != $location['categorie']) {
109
-        echo '<span style="font-weight:normal;"> (' . $location['categorie'] . ') <br>' . "\n";
109
+        echo '<span style="font-weight:normal;"> ('.$location['categorie'].') <br>'."\n";
110 110
     }
111 111
     if ('' != $location['logo']) {
112
-        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/etablissement/' . $location['logo'] . ' height="75px">' . '' . "\n";
112
+        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/etablissement/'.$location['logo'].' height="75px">'.''."\n";
113 113
     }
114 114
 
115
-    echo '<span style="font-weight:normal;">' . $location['nom'] . '<br>' . "\n";
116
-    echo $location['description'] . '<br>' . "\n";
117
-    echo $location['adresse'] . '</span> <br>' . "\n";
115
+    echo '<span style="font-weight:normal;">'.$location['nom'].'<br>'."\n";
116
+    echo $location['description'].'<br>'."\n";
117
+    echo $location['adresse'].'</span> <br>'."\n";
118 118
     if ('' != $location['adresse2']) {
119
-        echo $location['adresse2'] . '</span> <br>' . "\n";
119
+        echo $location['adresse2'].'</span> <br>'."\n";
120 120
     }
121
-    echo $location['ville'] . "\n";
122
-    echo $location['cp'] . '<br>' . "\n";
121
+    echo $location['ville']."\n";
122
+    echo $location['cp'].'<br>'."\n";
123 123
 
124 124
     if ('' != $location['horaires']) {
125
-        echo $location['horaires'] . '</span> <br>' . "\n";
125
+        echo $location['horaires'].'</span> <br>'."\n";
126 126
     }
127 127
 
128 128
     if ('' != $location['divers']) {
129
-        echo $location['divers'] . '</span> <br>' . "\n";
129
+        echo $location['divers'].'</span> <br>'."\n";
130 130
     }
131 131
 
132 132
     if ('' != $location['tarifs']) {
133
-        echo $location['tarifs'] . '</span> ' . _MD_EXTCAL_DEVISE2 . "\n";
133
+        echo $location['tarifs'].'</span> '._MD_EXTCAL_DEVISE2."\n";
134 134
     }
135 135
 
136
-    echo '</td>' . "\n";
137
-    echo '<td style="border:1px solid black;">' . "\n";
136
+    echo '</td>'."\n";
137
+    echo '<td style="border:1px solid black;">'."\n";
138 138
 
139 139
     if ('' != $location['tel_fixe']) {
140
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_FIXE . ' :</b>' . $location['tel_fixe'] . '<br>' . "\n";
140
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_FIXE.' :</b>'.$location['tel_fixe'].'<br>'."\n";
141 141
     }
142 142
     if ('' != $location['tel_portable']) {
143
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE . ' :</b>' . $location['tel_portable'] . '<br>' . "\n";
143
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE.' :</b>'.$location['tel_portable'].'<br>'."\n";
144 144
     }
145 145
 
146
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $location['mail'] . '">' . $location['mail'] . '</a><br>' . "\n";
147
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $location['site'] . '">' . $location['site'] . '</a>' . '<br>' . "\n";
148
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_MAP . ' :</b> <a href="' . $location['map'] . '">' . _MD_EXTCAL_ETABLISSEMENT_MAP2 . '</a>' . "\n";
146
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$location['mail'].'">'.$location['mail'].'</a><br>'."\n";
147
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$location['site'].'">'.$location['site'].'</a>'.'<br>'."\n";
148
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT_MAP.' :</b> <a href="'.$location['map'].'">'._MD_EXTCAL_ETABLISSEMENT_MAP2.'</a>'."\n";
149 149
 
150
-    echo '</td>' . "\n";
151
-    echo '</tr>' . "\n";
150
+    echo '</td>'."\n";
151
+    echo '</tr>'."\n";
152 152
 }
153 153
 //show images
154 154
 
155 155
 if (('' != $event['event_picture1']) || ('' != $event['event_picture2'])) {
156
-    echo '<tr>' . "\n";
156
+    echo '<tr>'."\n";
157 157
     if ('' != $event['event_picture1']) {
158
-        echo '<td style="border:1px solid black;">' . "\n";
159
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture1'] . ' height="100px">' . '' . "\n";
160
-        echo '</td>' . "\n";
158
+        echo '<td style="border:1px solid black;">'."\n";
159
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture1'].' height="100px">'.''."\n";
160
+        echo '</td>'."\n";
161 161
     }
162 162
     if ('' != $event['event_picture2']) {
163
-        echo '<td style="border:1px solid black;">' . "\n";
164
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture2'] . ' height="100px">' . '' . "\n";
165
-        echo '</td>' . "\n";
163
+        echo '<td style="border:1px solid black;">'."\n";
164
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture2'].' height="100px">'.''."\n";
165
+        echo '</td>'."\n";
166 166
     }
167
-    echo '</tr>' . "\n";
167
+    echo '</tr>'."\n";
168 168
 }
169 169
 //--------------------
170 170
 
171
-echo '</table><br>' . "\n";
171
+echo '</table><br>'."\n";
172 172
 echo '<div style="text-align:center; width:640px;">';
173
-echo $xoopsConfig['sitename'] . ' - ' . $xoopsConfig['slogan'] . '<br>';
174
-echo '<a href="' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '">' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '</a>';
173
+echo $xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'].'<br>';
174
+echo '<a href="'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'">'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'</a>';
175 175
 echo '</div>';
176
-echo '</body>' . "\n";
177
-echo '</html>' . "\n";
176
+echo '</body>'."\n";
177
+echo '</html>'."\n";
Please login to merge, or discard this patch.