@@ -17,28 +17,28 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -require_once __DIR__ . '/include/constantes.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +require_once __DIR__.'/include/constantes.php'; |
|
22 | 22 | $params = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT]; |
23 | 23 | $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl'; |
24 | -require_once __DIR__ . '/header.php'; |
|
24 | +require_once __DIR__.'/header.php'; |
|
25 | 25 | |
26 | 26 | //exit; |
27 | 27 | |
28 | -include XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
28 | +include XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
29 | 29 | |
30 | 30 | if (!isset($_GET['event'])) { |
31 | 31 | $eventId = 0; |
32 | 32 | } else { |
33 | - $eventId = (int)$_GET['event']; |
|
33 | + $eventId = (int) $_GET['event']; |
|
34 | 34 | } |
35 | 35 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
36 | 36 | $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE); |
37 | 37 | $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE); |
38 | 38 | $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE); |
39 | 39 | $permHandler = ExtcalPerm::getHandler(); |
40 | -require_once __DIR__ . '/class/etablissement.php'; |
|
41 | -require_once __DIR__ . '/class/utility.php'; |
|
40 | +require_once __DIR__.'/class/etablissement.php'; |
|
41 | +require_once __DIR__.'/class/utility.php'; |
|
42 | 42 | $myts = MyTextSanitizer::getInstance(); // MyTextSanitizer object |
43 | 43 | |
44 | 44 | if (!function_exists('clear_unicodeslashes')) { |
@@ -228,4 +228,4 @@ discard block |
||
228 | 228 | |
229 | 229 | //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array()); |
230 | 230 | |
231 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
231 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,22 +1,22 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -require_once __DIR__ . '/include/constantes.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +require_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $params = ['view' => _EXTCAL_NAV_AGENDA_WEEK, 'file' => _EXTCAL_FILE_AGENDA_WEEK]; |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
7 | -require_once __DIR__ . '/header.php'; |
|
7 | +require_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | /* ========================================================================== */ |
10 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
11 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
12 | -$day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
13 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
11 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
12 | +$day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
13 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
14 | 14 | |
15 | 15 | // Validate the date (day, month and year) |
16 | 16 | $dayTS = mktime(0, 0, 0, $month, $day, $year); |
17 | 17 | //$offset = date('w', $dayTS) - $xoopsModuleConfig['week_start_day']; |
18 | 18 | $offset = date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] < 7 ? date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] : 0; |
19 | -$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
19 | +$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
20 | 20 | $year = date('Y', $dayTS); |
21 | 21 | $month = date('n', $dayTS); |
22 | 22 | $day = date('j', $dayTS); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | 'nbJours' => $nbJours, |
50 | 50 | 'externalKeys' => 'cat_id', |
51 | 51 | ]; |
52 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
52 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
53 | 53 | /**********************************************************************/ |
54 | 54 | $eventsArray = $events; |
55 | 55 | // Formating date |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | //------------------------------------------------------------------- |
82 | 82 | |
83 | 83 | //$params['colJourWidth'] = (int)((((500-50)/$nbJours)/500*100)+.5); |
84 | -$params['colJourWidth'] = (int)((((500 - 50) / $nbJours) / 500 * 100) + .6); |
|
84 | +$params['colJourWidth'] = (int) ((((500 - 50) / $nbJours) / 500 * 100) + .6); |
|
85 | 85 | // echo "agenda_week : {$dayTS}<br>"; |
86 | 86 | $tAgenda = agenda_getEvents($eventsArray, $dayTS, $hStart, $hEnd, $mTranche, $nbJours); |
87 | 87 | //$exp = print_r($eventsArray, true); |
@@ -103,21 +103,21 @@ discard block |
||
103 | 103 | |
104 | 104 | $navig = [ |
105 | 105 | 'prev' => [ |
106 | - 'uri' => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(), |
|
106 | + 'uri' => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(), |
|
107 | 107 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()), |
108 | 108 | ], |
109 | 109 | 'this' => [ |
110 | - 'uri' => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(), |
|
110 | + 'uri' => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(), |
|
111 | 111 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()), |
112 | 112 | ], |
113 | 113 | 'next' => [ |
114 | - 'uri' => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(), |
|
114 | + 'uri' => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(), |
|
115 | 115 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()), |
116 | 116 | ], |
117 | 117 | ]; |
118 | 118 | |
119 | 119 | // Title of the page |
120 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
120 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
121 | 121 | |
122 | 122 | // Assigning navig data to the template |
123 | 123 | $xoopsTpl->assign('navig', $navig); |
@@ -158,4 +158,4 @@ discard block |
||
158 | 158 | $xoopsTpl->assign('lang', $lang); |
159 | 159 | $xoopsTpl->assign('view', 'agendaweek'); |
160 | 160 | |
161 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
161 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalUpcomingShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options)); |
52 | 52 | |
53 | 53 | /* ========================================================================== */ |
54 | - $year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
55 | - $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
56 | - $day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
57 | - $cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
54 | + $year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
55 | + $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
56 | + $day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
57 | + $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
58 | 58 | /* ========================================================================== */ |
59 | 59 | |
60 | 60 | // Validate the date (day, month and year) |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | 'nbEvent' => $nbEvent, |
88 | 88 | 'nbDays' => $nbDays, |
89 | 89 | ]; |
90 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
90 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
91 | 91 | |
92 | 92 | //---------------------------- |
93 | 93 | |
@@ -114,27 +114,27 @@ discard block |
||
114 | 114 | |
115 | 115 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
116 | 116 | |
117 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
118 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
119 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
117 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
118 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
119 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
120 | 120 | |
121 | - $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>'; |
|
121 | + $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>'; |
|
122 | 122 | |
123 | 123 | array_shift($options); |
124 | 124 | array_shift($options); |
125 | 125 | array_shift($options); |
126 | 126 | |
127 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
127 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
128 | 128 | if (array_search(0, $options) === false) { |
129 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
129 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
130 | 130 | } else { |
131 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
131 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
132 | 132 | } |
133 | 133 | foreach ($cats as $cat) { |
134 | 134 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
135 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
135 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
136 | 136 | } else { |
137 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
137 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | $form .= '</select>'; |
@@ -164,7 +164,7 @@ |
||
164 | 164 | new Calendar_Day( |
165 | 165 | date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
166 | 166 | date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
167 | - date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))) |
|
167 | + date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))) |
|
168 | 168 | ), |
169 | 169 | ]; |
170 | 170 |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | */ |
19 | 19 | |
20 | 20 | global $extcalConfig, $xoopsUser; |
21 | -require_once __DIR__ . '/../include/constantes.php'; |
|
22 | -require_once __DIR__ . '/../class/utility.php'; |
|
23 | -require_once __DIR__ . '/../class/tableForm.php'; |
|
21 | +require_once __DIR__.'/../include/constantes.php'; |
|
22 | +require_once __DIR__.'/../class/utility.php'; |
|
23 | +require_once __DIR__.'/../class/tableForm.php'; |
|
24 | 24 | //--------------------------------------------------------------------------- |
25 | 25 | /** |
26 | 26 | * @param $options |
@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | |
34 | 34 | extcal_getDefautminicalOption($options); |
35 | 35 | |
36 | - require_once __DIR__ . '/../class/config.php'; |
|
36 | + require_once __DIR__.'/../class/config.php'; |
|
37 | 37 | |
38 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
39 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
40 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
38 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
39 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
40 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
41 | 41 | // require_once CALENDAR_ROOT . 'Month/Weeks.php'; |
42 | 42 | // require_once CALENDAR_ROOT . 'Day.php'; |
43 | 43 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'cat' => $tCatSelected, |
125 | 125 | 'externalKeys' => 'cat_id', |
126 | 126 | ]; |
127 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
127 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
128 | 128 | } else { |
129 | 129 | $events = []; |
130 | 130 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | 'number' => $dayCalObj->thisDay(), |
190 | 190 | 'isSelected' => $dayCalObj->isSelected(), |
191 | 191 | ]; |
192 | - $day = $dayCalObj->thisDay(); |
|
192 | + $day = $dayCalObj->thisDay(); |
|
193 | 193 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
194 | 194 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
195 | 195 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -219,15 +219,15 @@ discard block |
||
219 | 219 | // Making navig data |
220 | 220 | $navig = [ |
221 | 221 | 'page' => $extcalConfig['start_page'], |
222 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
222 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
223 | 223 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
224 | 224 | ]; |
225 | 225 | |
226 | 226 | $horloge = []; |
227 | 227 | $horloge['display'] = (trim($options[11]) != ''); |
228 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
229 | - $horloge['width'] = $options[12] . 'px'; |
|
230 | - $horloge['height'] = $options[13] . 'px'; |
|
228 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
229 | + $horloge['width'] = $options[12].'px'; |
|
230 | + $horloge['height'] = $options[13].'px'; |
|
231 | 231 | |
232 | 232 | $ret = [ |
233 | 233 | 'imageParam' => $imageParam, |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | */ |
254 | 254 | function bExtcalMinicalEdit($options) |
255 | 255 | { |
256 | - require_once __DIR__ . '/../class/form/spin/formspin.php'; |
|
256 | + require_once __DIR__.'/../class/form/spin/formspin.php'; |
|
257 | 257 | global $xoopsUser; |
258 | 258 | |
259 | 259 | // $t = print_r(get_defined_vars(),true); |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | $imageCatHandler = xoops_getHandler('imagecategory'); |
275 | 275 | |
276 | 276 | //===================================================================== |
277 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
277 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
278 | 278 | |
279 | 279 | $k = 0; |
280 | 280 | $xfValue[$k] = new XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | $xfValue[$k] = new ExtcalFormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = ''); |
316 | 316 | $form->addElement($xfValue[$k], false); |
317 | 317 | //===================================================================== |
318 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
318 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
319 | 319 | |
320 | 320 | $t = [ |
321 | 321 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -354,9 +354,9 @@ discard block |
||
354 | 354 | $form->addElement($xfValue[$k], false); |
355 | 355 | |
356 | 356 | //===================================================================== |
357 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
357 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
358 | 358 | //--------------------------------------------------------------------- |
359 | - $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
359 | + $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
360 | 360 | $t = array_merge([' ' => _NONE], $t); |
361 | 361 | |
362 | 362 | $k = 11; |
@@ -441,12 +441,12 @@ discard block |
||
441 | 441 | // $src = $doc->createElement('src'); |
442 | 442 | $src = clone $tempSrc; |
443 | 443 | $src = $photo->appendChild($src); |
444 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
444 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
445 | 445 | $src->appendChild($value); |
446 | 446 | } |
447 | 447 | |
448 | 448 | // get completed xml document |
449 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
449 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | /**************************************************************************/ |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -require_once __DIR__ . '/include/constantes.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +require_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $params = ['view' => _EXTCAL_NAV_MONTH, 'file' => _EXTCAL_FILE_MONTH]; |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
7 | -require_once __DIR__ . '/header.php'; |
|
7 | +require_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | /* ========================================================================== */ |
10 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
11 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
12 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
11 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
12 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
13 | 13 | /* ========================================================================== */ |
14 | 14 | |
15 | 15 | $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'cat' => $cat, |
32 | 32 | 'externalKeys' => 'cat_id', |
33 | 33 | ]; |
34 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
34 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
35 | 35 | /**********************************************************************/ |
36 | 36 | $eventsArray = $events; |
37 | 37 | |
@@ -88,21 +88,21 @@ discard block |
||
88 | 88 | $nMonthCalObj = $monthCalObj->nextMonth('object'); |
89 | 89 | $navig = [ |
90 | 90 | 'prev' => [ |
91 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
91 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
92 | 92 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
93 | 93 | ], |
94 | 94 | 'this' => [ |
95 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
95 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
96 | 96 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
97 | 97 | ], |
98 | 98 | 'next' => [ |
99 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
99 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
100 | 100 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
101 | 101 | ], |
102 | 102 | ]; |
103 | 103 | |
104 | 104 | // Title of the page |
105 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
105 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
106 | 106 | |
107 | 107 | // Assigning navig data to the template |
108 | 108 | $xoopsTpl->assign('navig', $navig); |
@@ -159,4 +159,4 @@ discard block |
||
159 | 159 | $xoopsTpl->assign('lang', $lang); |
160 | 160 | $xoopsTpl->assign('view', 'month'); |
161 | 161 | |
162 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
162 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,23 +1,23 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -require_once __DIR__ . '/include/constantes.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +require_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $params = ['view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK]; |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
7 | -require_once __DIR__ . '/header.php'; |
|
7 | +require_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | /* ========================================================================== */ |
10 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
11 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
12 | -$day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
13 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
11 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
12 | +$day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
13 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
14 | 14 | /* ========================================================================== */ |
15 | 15 | |
16 | 16 | // Validate the date (day, month and year) |
17 | 17 | $dayTS = mktime(0, 0, 0, $month, $day, $year); |
18 | 18 | //$offset = date('w', $dayTS) - $xoopsModuleConfig['week_start_day']; |
19 | 19 | $offset = date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] < 7 ? date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] : 0; |
20 | -$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
20 | +$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
21 | 21 | $year = date('Y', $dayTS); |
22 | 22 | $month = date('n', $dayTS); |
23 | 23 | $day = date('j', $dayTS); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'cat' => $cat, |
48 | 48 | 'externalKeys' => 'cat_id', |
49 | 49 | ]; |
50 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
50 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
51 | 51 | /**********************************************************************/ |
52 | 52 | //$eventsArray = $events; |
53 | 53 | |
@@ -135,21 +135,21 @@ discard block |
||
135 | 135 | // Making navig data |
136 | 136 | $navig = [ |
137 | 137 | 'prev' => [ |
138 | - 'uri' => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(), |
|
138 | + 'uri' => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(), |
|
139 | 139 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()), |
140 | 140 | ], |
141 | 141 | 'this' => [ |
142 | - 'uri' => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(), |
|
142 | + 'uri' => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(), |
|
143 | 143 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()), |
144 | 144 | ], |
145 | 145 | 'next' => [ |
146 | - 'uri' => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(), |
|
146 | + 'uri' => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(), |
|
147 | 147 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()), |
148 | 148 | ], |
149 | 149 | ]; |
150 | 150 | |
151 | 151 | // Title of the page |
152 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
152 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
153 | 153 | |
154 | 154 | // Assigning navig data to the template |
155 | 155 | $xoopsTpl->assign('navig', $navig); |
@@ -189,4 +189,4 @@ discard block |
||
189 | 189 | $xoopsTpl->assign('lang', $lang); |
190 | 190 | $xoopsTpl->assign('view', 'calweek'); |
191 | 191 | |
192 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
192 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -17,12 +17,12 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | 21 | |
22 | -include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
23 | -include __DIR__ . '/class/form/extcalform.php'; |
|
24 | -include __DIR__ . '/class/perm.php'; |
|
25 | -require_once __DIR__ . '/include/constantes.php'; |
|
22 | +include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
23 | +include __DIR__.'/class/form/extcalform.php'; |
|
24 | +include __DIR__.'/class/perm.php'; |
|
25 | +require_once __DIR__.'/include/constantes.php'; |
|
26 | 26 | |
27 | 27 | $permHandler = ExtcalPerm::getHandler(); |
28 | 28 | $xoopsUser = $xoopsUser ?: null; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $params = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT]; |
36 | 36 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
37 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
37 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
38 | 38 | /* ========================================================================== */ |
39 | 39 | |
40 | 40 | // Tooltips include |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | if (!isset($_GET['event'])) { |
46 | 46 | $eventId = 0; |
47 | 47 | } else { |
48 | - $eventId = (int)$_GET['event']; |
|
48 | + $eventId = (int) $_GET['event']; |
|
49 | 49 | } |
50 | 50 | if (!isset($_GET['action'])) { |
51 | 51 | $action = 'edit'; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | // Getting eXtCal object's handler |
57 | 57 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
58 | 58 | |
59 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
59 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
60 | 60 | |
61 | 61 | // Title of the page |
62 | 62 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -65,4 +65,4 @@ discard block |
||
65 | 65 | $form = $eventHandler->getEventForm('user', $action, ['event_id' => $eventId]); |
66 | 66 | $form->display(); |
67 | 67 | |
68 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
68 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -17,17 +17,17 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -require_once __DIR__ . '/include/constantes.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +require_once __DIR__.'/include/constantes.php'; |
|
22 | 22 | $params = ['view' => _EXTCAL_NAV_WEEK, 'file' => _EXTCAL_FILE_WEEK]; |
23 | 23 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
24 | -require_once __DIR__ . '/header.php'; |
|
24 | +require_once __DIR__.'/header.php'; |
|
25 | 25 | |
26 | 26 | /* ========================================================================== */ |
27 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
28 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
29 | -$day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
30 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
27 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
28 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
29 | +$day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
30 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
31 | 31 | /* ========================================================================== */ |
32 | 32 | |
33 | 33 | // Validate the date (day, month and year) |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | 'cat' => $cat, |
63 | 63 | 'externalKeys' => 'cat_id', |
64 | 64 | ]; |
65 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
65 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
66 | 66 | /**********************************************************************/ |
67 | 67 | $eventsArray = $events; |
68 | 68 | // Formating date |
@@ -103,21 +103,21 @@ discard block |
||
103 | 103 | $nWeekCalObj = $weekCalObj->nextWeek('object'); |
104 | 104 | $navig = [ |
105 | 105 | 'prev' => [ |
106 | - 'uri' => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(), |
|
106 | + 'uri' => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(), |
|
107 | 107 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_week'], $pWeekCalObj->getTimestamp()), |
108 | 108 | ], |
109 | 109 | 'this' => [ |
110 | - 'uri' => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(), |
|
110 | + 'uri' => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(), |
|
111 | 111 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_week'], $weekCalObj->getTimestamp()), |
112 | 112 | ], |
113 | 113 | 'next' => [ |
114 | - 'uri' => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(), |
|
114 | + 'uri' => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(), |
|
115 | 115 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_week'], $nWeekCalObj->getTimestamp()), |
116 | 116 | ], |
117 | 117 | ]; |
118 | 118 | |
119 | 119 | // Title of the page |
120 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
120 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
121 | 121 | |
122 | 122 | // Assigning navig data to the template |
123 | 123 | $xoopsTpl->assign('navig', $navig); |
@@ -177,4 +177,4 @@ discard block |
||
177 | 177 | $xoopsTpl->assign('lang', $lang); |
178 | 178 | $xoopsTpl->assign('view', 'week'); |
179 | 179 | |
180 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
180 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -17,15 +17,15 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -require_once __DIR__ . '/include/constantes.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +require_once __DIR__.'/include/constantes.php'; |
|
22 | 22 | |
23 | -require_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php'; |
|
23 | +require_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php'; |
|
24 | 24 | |
25 | 25 | if (!isset($_GET['event'])) { |
26 | 26 | $eventId = 0; |
27 | 27 | } else { |
28 | - $eventId = (int)$_GET['event']; |
|
28 | + $eventId = (int) $_GET['event']; |
|
29 | 29 | } |
30 | 30 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
31 | 31 | $event = $eventHandler->objectToArray($eventHandler->getEvent($eventId), ['cat_id']); |
@@ -40,136 +40,136 @@ discard block |
||
40 | 40 | // Adding formated date for start and end event |
41 | 41 | $eventHandler->formatEventDate($event, $xoopsModuleConfig['event_date_event']); |
42 | 42 | |
43 | -echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n"; |
|
44 | -echo '<html xmlns="http://www.w3.org/1999/xhtml">' . "\n"; |
|
45 | -echo '<head>' . "\n"; |
|
46 | -echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '">' . "\n"; |
|
47 | -echo '<title>' . $event['cat']['cat_name'] . ' - ' . $event['event_title'] . '</title>' . "\n"; |
|
48 | -echo '</head>' . "\n"; |
|
49 | -echo '<body onload="window.print()">' . "\n"; |
|
50 | -echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">' . "\n"; |
|
51 | -echo '<tr>' . "\n"; |
|
52 | -echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">' . "\n"; |
|
53 | -echo $event['event_title'] . "\n"; |
|
54 | -echo '</td>' . "\n"; |
|
55 | -echo '</tr>' . "\n"; |
|
56 | -echo '<tr>' . "\n"; |
|
57 | -echo '<td style="width:50%; border:1px solid black;">' . "\n"; |
|
58 | -echo '<b>' . $event['cat']['cat_name'] . '</b><br>' . "\n"; |
|
59 | -echo '<span style="font-weight:normal;">' . $event['cat']['cat_desc'] . '</span>' . "\n"; |
|
60 | -echo '</td>' . "\n"; |
|
61 | -echo '<td style="border:1px solid black;">' . "\n"; |
|
43 | +echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n"; |
|
44 | +echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n"; |
|
45 | +echo '<head>'."\n"; |
|
46 | +echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'">'."\n"; |
|
47 | +echo '<title>'.$event['cat']['cat_name'].' - '.$event['event_title'].'</title>'."\n"; |
|
48 | +echo '</head>'."\n"; |
|
49 | +echo '<body onload="window.print()">'."\n"; |
|
50 | +echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">'."\n"; |
|
51 | +echo '<tr>'."\n"; |
|
52 | +echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">'."\n"; |
|
53 | +echo $event['event_title']."\n"; |
|
54 | +echo '</td>'."\n"; |
|
55 | +echo '</tr>'."\n"; |
|
56 | +echo '<tr>'."\n"; |
|
57 | +echo '<td style="width:50%; border:1px solid black;">'."\n"; |
|
58 | +echo '<b>'.$event['cat']['cat_name'].'</b><br>'."\n"; |
|
59 | +echo '<span style="font-weight:normal;">'.$event['cat']['cat_desc'].'</span>'."\n"; |
|
60 | +echo '</td>'."\n"; |
|
61 | +echo '<td style="border:1px solid black;">'."\n"; |
|
62 | 62 | if (!$event['event_isrecur']) { |
63 | - echo '<b>' . _MD_EXTCAL_START . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_start'] . '</span><br>' . "\n"; |
|
64 | - echo '<b>' . _MD_EXTCAL_END . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_end'] . '</span>' . "\n"; |
|
63 | + echo '<b>'._MD_EXTCAL_START.' :</b> <span style="font-weight:normal;">'.$event['formated_event_start'].'</span><br>'."\n"; |
|
64 | + echo '<b>'._MD_EXTCAL_END.' :</b> <span style="font-weight:normal;">'.$event['formated_event_end'].'</span>'."\n"; |
|
65 | 65 | } else { |
66 | - echo '<b>' . _MD_EXTCAL_RECCUR_RULE . ' :</b> <span style="font-weight:normal;">' . $event['formated_reccur_rule'] . '</span>' . "\n"; |
|
66 | + echo '<b>'._MD_EXTCAL_RECCUR_RULE.' :</b> <span style="font-weight:normal;">'.$event['formated_reccur_rule'].'</span>'."\n"; |
|
67 | 67 | } |
68 | -echo '</td>' . "\n"; |
|
69 | -echo '</tr>' . "\n"; |
|
68 | +echo '</td>'."\n"; |
|
69 | +echo '</tr>'."\n"; |
|
70 | 70 | |
71 | -echo '<tr>' . "\n"; |
|
71 | +echo '<tr>'."\n"; |
|
72 | 72 | if ($event['event_desc'] != '') { |
73 | - echo '<td style="border:1px solid black;">' . $event['event_desc'] . '</td>' . "\n"; |
|
73 | + echo '<td style="border:1px solid black;">'.$event['event_desc'].'</td>'."\n"; |
|
74 | 74 | } |
75 | 75 | if ($event['event_price'] != '') { |
76 | - echo '<td style="border:1px solid black;">' . _MD_EXTCAL_ETABLISSEMENT_PRICE . $event['event_price'] . ' ' . _MD_EXTCAL_DEVISE2 . '</td>' . "\n"; |
|
76 | + echo '<td style="border:1px solid black;">'._MD_EXTCAL_ETABLISSEMENT_PRICE.$event['event_price'].' '._MD_EXTCAL_DEVISE2.'</td>'."\n"; |
|
77 | 77 | } |
78 | -echo '</tr>' . "\n"; |
|
78 | +echo '</tr>'."\n"; |
|
79 | 79 | |
80 | 80 | //show contact info |
81 | 81 | if ($event['event_contact'] != '') { |
82 | - echo '<tr>' . "\n"; |
|
83 | - echo '<td style="border:1px solid black;">' . "\n"; |
|
84 | - echo '<b>' . _MD_EXTCAL_CONTACT_INFO . '</b><br>' . "\n"; |
|
85 | - echo '<span style="font-weight:normal;">' . $event['event_organisateur'] . '<br>' . "\n"; |
|
86 | - echo '<span style="font-weight:normal;">' . $event['event_contact'] . '<br>' . "\n"; |
|
87 | - echo $event['event_address'] . '</span>' . "\n"; |
|
88 | - echo '</td>' . "\n"; |
|
89 | - echo '<td style="border:1px solid black;">' . "\n"; |
|
90 | - echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $event['event_email'] . '">' . $event['event_email'] . '</a><br>' . "\n"; |
|
91 | - echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $event['event_url'] . '">' . $event['event_url'] . '</a>' . "\n"; |
|
92 | - echo '</td>' . "\n"; |
|
93 | - echo '</tr>' . "\n"; |
|
82 | + echo '<tr>'."\n"; |
|
83 | + echo '<td style="border:1px solid black;">'."\n"; |
|
84 | + echo '<b>'._MD_EXTCAL_CONTACT_INFO.'</b><br>'."\n"; |
|
85 | + echo '<span style="font-weight:normal;">'.$event['event_organisateur'].'<br>'."\n"; |
|
86 | + echo '<span style="font-weight:normal;">'.$event['event_contact'].'<br>'."\n"; |
|
87 | + echo $event['event_address'].'</span>'."\n"; |
|
88 | + echo '</td>'."\n"; |
|
89 | + echo '<td style="border:1px solid black;">'."\n"; |
|
90 | + echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$event['event_email'].'">'.$event['event_email'].'</a><br>'."\n"; |
|
91 | + echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$event['event_url'].'">'.$event['event_url'].'</a>'."\n"; |
|
92 | + echo '</td>'."\n"; |
|
93 | + echo '</tr>'."\n"; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | //show location |
97 | 97 | if ($event['event_etablissement'] = 0) { |
98 | - echo '<tr>' . "\n"; |
|
98 | + echo '<tr>'."\n"; |
|
99 | 99 | |
100 | 100 | // echo($location['nom']); |
101 | 101 | // var_dump($location); |
102 | 102 | // var_dump($event); |
103 | 103 | |
104 | - echo '<td style="border:1px solid black;">' . "\n"; |
|
105 | - echo '<b>' . _MD_EXTCAL_ETABLISSEMENT . '</b>' . "\n"; |
|
104 | + echo '<td style="border:1px solid black;">'."\n"; |
|
105 | + echo '<b>'._MD_EXTCAL_ETABLISSEMENT.'</b>'."\n"; |
|
106 | 106 | if ($location['categorie'] != '') { |
107 | - echo '<span style="font-weight:normal;"> (' . $location['categorie'] . ') <br>' . "\n"; |
|
107 | + echo '<span style="font-weight:normal;"> ('.$location['categorie'].') <br>'."\n"; |
|
108 | 108 | } |
109 | 109 | if ($location['logo'] != '') { |
110 | - echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/etablissement/' . $location['logo'] . ' height="75px">' . '' . "\n"; |
|
110 | + echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/etablissement/'.$location['logo'].' height="75px">'.''."\n"; |
|
111 | 111 | } |
112 | 112 | |
113 | - echo '<span style="font-weight:normal;">' . $location['nom'] . '<br>' . "\n"; |
|
114 | - echo $location['description'] . '<br>' . "\n"; |
|
115 | - echo $location['adresse'] . '</span> <br>' . "\n"; |
|
113 | + echo '<span style="font-weight:normal;">'.$location['nom'].'<br>'."\n"; |
|
114 | + echo $location['description'].'<br>'."\n"; |
|
115 | + echo $location['adresse'].'</span> <br>'."\n"; |
|
116 | 116 | if ($location['adresse2'] != '') { |
117 | - echo $location['adresse2'] . '</span> <br>' . "\n"; |
|
117 | + echo $location['adresse2'].'</span> <br>'."\n"; |
|
118 | 118 | } |
119 | - echo $location['ville'] . "\n"; |
|
120 | - echo $location['cp'] . '<br>' . "\n"; |
|
119 | + echo $location['ville']."\n"; |
|
120 | + echo $location['cp'].'<br>'."\n"; |
|
121 | 121 | |
122 | 122 | if ($location['horaires'] != '') { |
123 | - echo $location['horaires'] . '</span> <br>' . "\n"; |
|
123 | + echo $location['horaires'].'</span> <br>'."\n"; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | if ($location['divers'] != '') { |
127 | - echo $location['divers'] . '</span> <br>' . "\n"; |
|
127 | + echo $location['divers'].'</span> <br>'."\n"; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | if ($location['tarifs'] != '') { |
131 | - echo $location['tarifs'] . '</span> ' . _MD_EXTCAL_DEVISE2 . "\n"; |
|
131 | + echo $location['tarifs'].'</span> '._MD_EXTCAL_DEVISE2."\n"; |
|
132 | 132 | } |
133 | 133 | |
134 | - echo '</td>' . "\n"; |
|
135 | - echo '<td style="border:1px solid black;">' . "\n"; |
|
134 | + echo '</td>'."\n"; |
|
135 | + echo '<td style="border:1px solid black;">'."\n"; |
|
136 | 136 | |
137 | 137 | if ($location['tel_fixe'] != '') { |
138 | - echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_FIXE . ' :</b>' . $location['tel_fixe'] . '<br>' . "\n"; |
|
138 | + echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_FIXE.' :</b>'.$location['tel_fixe'].'<br>'."\n"; |
|
139 | 139 | } |
140 | 140 | if ($location['tel_portable'] != '') { |
141 | - echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE . ' :</b>' . $location['tel_portable'] . '<br>' . "\n"; |
|
141 | + echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE.' :</b>'.$location['tel_portable'].'<br>'."\n"; |
|
142 | 142 | } |
143 | 143 | |
144 | - echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $location['mail'] . '">' . $location['mail'] . '</a><br>' . "\n"; |
|
145 | - echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $location['site'] . '">' . $location['site'] . '</a>' . '<br>' . "\n"; |
|
146 | - echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_MAP . ' :</b> <a href="' . $location['map'] . '">' . _MD_EXTCAL_ETABLISSEMENT_MAP2 . '</a>' . "\n"; |
|
144 | + echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$location['mail'].'">'.$location['mail'].'</a><br>'."\n"; |
|
145 | + echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$location['site'].'">'.$location['site'].'</a>'.'<br>'."\n"; |
|
146 | + echo '<b>'._MD_EXTCAL_ETABLISSEMENT_MAP.' :</b> <a href="'.$location['map'].'">'._MD_EXTCAL_ETABLISSEMENT_MAP2.'</a>'."\n"; |
|
147 | 147 | |
148 | - echo '</td>' . "\n"; |
|
149 | - echo '</tr>' . "\n"; |
|
148 | + echo '</td>'."\n"; |
|
149 | + echo '</tr>'."\n"; |
|
150 | 150 | } |
151 | 151 | //show images |
152 | 152 | |
153 | 153 | if (($event['event_picture1'] != '') || ($event['event_picture2'] != '')) { |
154 | - echo '<tr>' . "\n"; |
|
154 | + echo '<tr>'."\n"; |
|
155 | 155 | if ($event['event_picture1'] != '') { |
156 | - echo '<td style="border:1px solid black;">' . "\n"; |
|
157 | - echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture1'] . ' height="100px">' . '' . "\n"; |
|
158 | - echo '</td>' . "\n"; |
|
156 | + echo '<td style="border:1px solid black;">'."\n"; |
|
157 | + echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture1'].' height="100px">'.''."\n"; |
|
158 | + echo '</td>'."\n"; |
|
159 | 159 | } |
160 | 160 | if ($event['event_picture2'] != '') { |
161 | - echo '<td style="border:1px solid black;">' . "\n"; |
|
162 | - echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture2'] . ' height="100px">' . '' . "\n"; |
|
163 | - echo '</td>' . "\n"; |
|
161 | + echo '<td style="border:1px solid black;">'."\n"; |
|
162 | + echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture2'].' height="100px">'.''."\n"; |
|
163 | + echo '</td>'."\n"; |
|
164 | 164 | } |
165 | - echo '</tr>' . "\n"; |
|
165 | + echo '</tr>'."\n"; |
|
166 | 166 | } |
167 | 167 | //-------------------- |
168 | 168 | |
169 | -echo '</table><br>' . "\n"; |
|
169 | +echo '</table><br>'."\n"; |
|
170 | 170 | echo '<div style="text-align:center; width:640px;">'; |
171 | -echo $xoopsConfig['sitename'] . ' - ' . $xoopsConfig['slogan'] . '<br>'; |
|
172 | -echo '<a href="' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '">' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '</a>'; |
|
171 | +echo $xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'].'<br>'; |
|
172 | +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 | 173 | echo '</div>'; |
174 | -echo '</body>' . "\n"; |
|
175 | -echo '</html>' . "\n"; |
|
174 | +echo '</body>'."\n"; |
|
175 | +echo '</html>'."\n"; |