@@ -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 = array('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 = array( |
105 | 105 | 'prev' => array( |
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' => array( |
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' => array( |
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'; |
@@ -1,19 +1,19 @@ |
||
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 | |
6 | 6 | if (!isset($_GET['file'])) { |
7 | 7 | $fileId = 0; |
8 | 8 | } else { |
9 | - $fileId = (int)$_GET['file']; |
|
9 | + $fileId = (int) $_GET['file']; |
|
10 | 10 | } |
11 | 11 | /** @var ExtcalFileHandler $fileHandler */ |
12 | 12 | $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE); |
13 | 13 | |
14 | 14 | $file = $fileHandler->getFile($fileId); |
15 | 15 | |
16 | -header('Content-Type: ' . $file->getVar('file_mimetype') . ''); |
|
17 | -header('Content-Disposition: attachment; filename="' . $file->getVar('file_nicename') . '"'); |
|
16 | +header('Content-Type: '.$file->getVar('file_mimetype').''); |
|
17 | +header('Content-Disposition: attachment; filename="'.$file->getVar('file_nicename').'"'); |
|
18 | 18 | |
19 | -readfile(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name')); |
|
19 | +readfile(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name')); |
@@ -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), array('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"; |
@@ -1,10 +1,10 @@ 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 = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT); |
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 | 10 | //ext_echoArray($_GET); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | //exit; |
18 | 18 | if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) { |
19 | - include XOOPS_ROOT_PATH . '/header.php'; |
|
19 | + include XOOPS_ROOT_PATH.'/header.php'; |
|
20 | 20 | |
21 | 21 | // Title of the page |
22 | 22 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $xoopsTpl->assign('lang', $lang); |
59 | 59 | $xoopsTpl->assign('view', 'newevent'); |
60 | 60 | |
61 | - include XOOPS_ROOT_PATH . '/footer.php'; |
|
61 | + include XOOPS_ROOT_PATH.'/footer.php'; |
|
62 | 62 | } else { |
63 | 63 | redirect_header('index.php', 3); |
64 | 64 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | 4 | |
5 | 5 | //modif JJD |
6 | -require_once __DIR__ . '/include/constantes.php'; |
|
6 | +require_once __DIR__.'/include/constantes.php'; |
|
7 | 7 | |
8 | 8 | header("Location: {$xoopsModuleConfig['start_page']}"); |
@@ -1,35 +1,35 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; |
|
3 | +require_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php'; |
|
4 | 4 | define('_MD_CLEAR_CRITERIA', 'clear criteria'); |
5 | -define('_MD_EXTCAL_1_FR', '1st ' . _CAL_FRIDAY); |
|
6 | -define('_MD_EXTCAL_1_MO', '1st ' . _CAL_MONDAY); |
|
7 | -define('_MD_EXTCAL_1_SA', '1st ' . _CAL_SATURDAY); |
|
8 | -define('_MD_EXTCAL_1_SU', '1st ' . _CAL_SUNDAY); |
|
9 | -define('_MD_EXTCAL_1_TH', '1st ' . _CAL_THURSDAY); |
|
10 | -define('_MD_EXTCAL_1_TU', '1st ' . _CAL_TUESDAY); |
|
11 | -define('_MD_EXTCAL_1_WE', '1st ' . _CAL_WEDNESDAY); |
|
12 | -define('_MD_EXTCAL_2_FR', '2nd ' . _CAL_FRIDAY); |
|
13 | -define('_MD_EXTCAL_2_MO', '2nd ' . _CAL_MONDAY); |
|
14 | -define('_MD_EXTCAL_2_SA', '2nd ' . _CAL_SATURDAY); |
|
15 | -define('_MD_EXTCAL_2_SU', '2nd ' . _CAL_SUNDAY); |
|
16 | -define('_MD_EXTCAL_2_TH', '2nd ' . _CAL_THURSDAY); |
|
17 | -define('_MD_EXTCAL_2_TU', '2nd ' . _CAL_TUESDAY); |
|
18 | -define('_MD_EXTCAL_2_WE', '2nd ' . _CAL_WEDNESDAY); |
|
19 | -define('_MD_EXTCAL_3_FR', '3rd ' . _CAL_FRIDAY); |
|
20 | -define('_MD_EXTCAL_3_MO', '3rd ' . _CAL_MONDAY); |
|
21 | -define('_MD_EXTCAL_3_SA', '3rd ' . _CAL_SATURDAY); |
|
22 | -define('_MD_EXTCAL_3_SU', '3rd ' . _CAL_SUNDAY); |
|
23 | -define('_MD_EXTCAL_3_TH', '3rd ' . _CAL_THURSDAY); |
|
24 | -define('_MD_EXTCAL_3_TU', '3rd ' . _CAL_TUESDAY); |
|
25 | -define('_MD_EXTCAL_3_WE', '3rd ' . _CAL_WEDNESDAY); |
|
26 | -define('_MD_EXTCAL_4_FR', '4th ' . _CAL_FRIDAY); |
|
27 | -define('_MD_EXTCAL_4_MO', '4th ' . _CAL_MONDAY); |
|
28 | -define('_MD_EXTCAL_4_SA', '4th ' . _CAL_SATURDAY); |
|
29 | -define('_MD_EXTCAL_4_SU', '4th ' . _CAL_SUNDAY); |
|
30 | -define('_MD_EXTCAL_4_TH', '4th ' . _CAL_THURSDAY); |
|
31 | -define('_MD_EXTCAL_4_TU', '4th ' . _CAL_TUESDAY); |
|
32 | -define('_MD_EXTCAL_4_WE', '4th ' . _CAL_WEDNESDAY); |
|
5 | +define('_MD_EXTCAL_1_FR', '1st '._CAL_FRIDAY); |
|
6 | +define('_MD_EXTCAL_1_MO', '1st '._CAL_MONDAY); |
|
7 | +define('_MD_EXTCAL_1_SA', '1st '._CAL_SATURDAY); |
|
8 | +define('_MD_EXTCAL_1_SU', '1st '._CAL_SUNDAY); |
|
9 | +define('_MD_EXTCAL_1_TH', '1st '._CAL_THURSDAY); |
|
10 | +define('_MD_EXTCAL_1_TU', '1st '._CAL_TUESDAY); |
|
11 | +define('_MD_EXTCAL_1_WE', '1st '._CAL_WEDNESDAY); |
|
12 | +define('_MD_EXTCAL_2_FR', '2nd '._CAL_FRIDAY); |
|
13 | +define('_MD_EXTCAL_2_MO', '2nd '._CAL_MONDAY); |
|
14 | +define('_MD_EXTCAL_2_SA', '2nd '._CAL_SATURDAY); |
|
15 | +define('_MD_EXTCAL_2_SU', '2nd '._CAL_SUNDAY); |
|
16 | +define('_MD_EXTCAL_2_TH', '2nd '._CAL_THURSDAY); |
|
17 | +define('_MD_EXTCAL_2_TU', '2nd '._CAL_TUESDAY); |
|
18 | +define('_MD_EXTCAL_2_WE', '2nd '._CAL_WEDNESDAY); |
|
19 | +define('_MD_EXTCAL_3_FR', '3rd '._CAL_FRIDAY); |
|
20 | +define('_MD_EXTCAL_3_MO', '3rd '._CAL_MONDAY); |
|
21 | +define('_MD_EXTCAL_3_SA', '3rd '._CAL_SATURDAY); |
|
22 | +define('_MD_EXTCAL_3_SU', '3rd '._CAL_SUNDAY); |
|
23 | +define('_MD_EXTCAL_3_TH', '3rd '._CAL_THURSDAY); |
|
24 | +define('_MD_EXTCAL_3_TU', '3rd '._CAL_TUESDAY); |
|
25 | +define('_MD_EXTCAL_3_WE', '3rd '._CAL_WEDNESDAY); |
|
26 | +define('_MD_EXTCAL_4_FR', '4th '._CAL_FRIDAY); |
|
27 | +define('_MD_EXTCAL_4_MO', '4th '._CAL_MONDAY); |
|
28 | +define('_MD_EXTCAL_4_SA', '4th '._CAL_SATURDAY); |
|
29 | +define('_MD_EXTCAL_4_SU', '4th '._CAL_SUNDAY); |
|
30 | +define('_MD_EXTCAL_4_TH', '4th '._CAL_THURSDAY); |
|
31 | +define('_MD_EXTCAL_4_TU', '4th '._CAL_TUESDAY); |
|
32 | +define('_MD_EXTCAL_4_WE', '4th '._CAL_WEDNESDAY); |
|
33 | 33 | define('_MD_EXTCAL_ABSENT', 'Absent'); |
34 | 34 | define('_MD_EXTCAL_ACTION_COME', 'Register'); |
35 | 35 | define('_MD_EXTCAL_ACTION_DELEGATION', 'Delegate'); |
@@ -110,13 +110,13 @@ discard block |
||
110 | 110 | define('_MD_EXTCAL_JAN', 'Jan'); |
111 | 111 | define('_MD_EXTCAL_JUL', 'Jul'); |
112 | 112 | define('_MD_EXTCAL_JUN', 'Jun'); |
113 | -define('_MD_EXTCAL_LAST_FR', 'Last ' . _CAL_FRIDAY); |
|
114 | -define('_MD_EXTCAL_LAST_MO', 'Last ' . _CAL_MONDAY); |
|
115 | -define('_MD_EXTCAL_LAST_SA', 'Last ' . _CAL_SATURDAY); |
|
116 | -define('_MD_EXTCAL_LAST_SU', 'Last ' . _CAL_SUNDAY); |
|
117 | -define('_MD_EXTCAL_LAST_TH', 'Last ' . _CAL_THURSDAY); |
|
118 | -define('_MD_EXTCAL_LAST_TU', 'Last ' . _CAL_TUESDAY); |
|
119 | -define('_MD_EXTCAL_LAST_WE', 'Last ' . _CAL_WEDNESDAY); |
|
113 | +define('_MD_EXTCAL_LAST_FR', 'Last '._CAL_FRIDAY); |
|
114 | +define('_MD_EXTCAL_LAST_MO', 'Last '._CAL_MONDAY); |
|
115 | +define('_MD_EXTCAL_LAST_SA', 'Last '._CAL_SATURDAY); |
|
116 | +define('_MD_EXTCAL_LAST_SU', 'Last '._CAL_SUNDAY); |
|
117 | +define('_MD_EXTCAL_LAST_TH', 'Last '._CAL_THURSDAY); |
|
118 | +define('_MD_EXTCAL_LAST_TU', 'Last '._CAL_TUESDAY); |
|
119 | +define('_MD_EXTCAL_LAST_WE', 'Last '._CAL_WEDNESDAY); |
|
120 | 120 | define('_MD_EXTCAL_LIB_COME', 'Register'); |
121 | 121 | define('_MD_EXTCAL_LIB_NONE', 'None'); |
122 | 122 | define('_MD_EXTCAL_LIB_NOTCOME', 'Unsubscribe'); |
@@ -157,10 +157,10 @@ |
||
157 | 157 | |
158 | 158 | define('_MI_EXTCAL_EDITOR_ADMIN', 'Editor to use (admin):'); |
159 | 159 | define('_MI_EXTCAL_EDITOR_ADMIN_DESC', |
160 | - "Select the editor to use for admin side. If you have a 'simple' install (e.g you use only XOOPS core editor class, provided in the standard xoops core package), then you can just select DHTML and Compact"); |
|
160 | + "Select the editor to use for admin side. If you have a 'simple' install (e.g you use only XOOPS core editor class, provided in the standard xoops core package), then you can just select DHTML and Compact"); |
|
161 | 161 | define('_MI_EXTCAL_EDITOR_USER', 'Editor to use (user):'); |
162 | 162 | define('_MI_EXTCAL_EDITOR_USER_DESC', |
163 | - "Select the editor to use for user side. If you have a 'simple' install (e.g you use only XOOPS core editor class, provided in the standard xoops core package), then you can just select DHTML and Compact"); |
|
163 | + "Select the editor to use for user side. If you have a 'simple' install (e.g you use only XOOPS core editor class, provided in the standard xoops core package), then you can just select DHTML and Compact"); |
|
164 | 164 | |
165 | 165 | //Help |
166 | 166 | define('_MI_EXTCAL_DIRNAME', basename(dirname(dirname(__DIR__)))); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../../include/constantes.php'; |
|
3 | +require_once __DIR__.'/../../include/constantes.php'; |
|
4 | 4 | define('_MI_EXTCAL_NAME', 'eXtCal'); |
5 | 5 | define('_MI_EXTCAL_ABOUT', 'About'); |
6 | 6 | define('_MI_EXTCAL_AFTER', 'After'); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | define('_MI_EXTCAL_START_PAGE', 'Module home page'); |
136 | 136 | define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event'); |
137 | 137 | define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs'); |
138 | -define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line'); |
|
138 | +define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line'); |
|
139 | 139 | define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.'); |
140 | 140 | define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab'); |
141 | 141 | define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day'); |
@@ -164,6 +164,6 @@ discard block |
||
164 | 164 | |
165 | 165 | //Help |
166 | 166 | define('_MI_EXTCAL_DIRNAME', basename(dirname(dirname(__DIR__)))); |
167 | -define('_MI_EXTCAL_HELP_HEADER', __DIR__ . '/help/helpheader.html'); |
|
167 | +define('_MI_EXTCAL_HELP_HEADER', __DIR__.'/help/helpheader.html'); |
|
168 | 168 | define('_MI_EXTCAL_BACK_2_ADMIN', 'Back to Administration of '); |
169 | 169 | define('_MI_EXTCAL_OVERVIEW', 'Overview'); |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -include XOOPS_ROOT_PATH . '/include/comment_edit.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +include XOOPS_ROOT_PATH.'/include/comment_edit.php'; |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -include XOOPS_ROOT_PATH . '/include/comment_delete.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +include XOOPS_ROOT_PATH.'/include/comment_delete.php'; |