@@ -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'; |
@@ -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_post.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +include XOOPS_ROOT_PATH.'/include/comment_post.php'; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../include/constantes.php'; |
|
3 | +require_once __DIR__.'/../include/constantes.php'; |
|
4 | 4 | |
5 | 5 | //--------------------------------------------------------------------- |
6 | 6 |
@@ -19,6 +19,6 @@ |
||
19 | 19 | **/ |
20 | 20 | |
21 | 21 | $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32); |
22 | -echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . " </div>\n" . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>'; |
|
22 | +echo "<div class='adminfooter'>\n"." <div style='text-align: center;'>\n"." <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"." </div>\n".' '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>'; |
|
23 | 23 | |
24 | 24 | xoops_cp_footer(); |
@@ -87,27 +87,27 @@ |
||
87 | 87 | $fromemail = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E'); |
88 | 88 | $subjectCaption = _AM_EXTCAL_SUBJECT . "<br><br><span style='font-size:x-small;font-weight:bold;'>" . _AM_EXTCAL_USEFUL_TAGS . "</span><br><span style='font-size:x-small;font-weight:normal;'>" . _AM_EXTCAL_MAILTAGS6 . '<br>' . _AM_EXTCAL_MAILTAGS2 . '</span> '; |
89 | 89 | $bodyCaption = _AM_EXTCAL_BODY |
90 | - . "<br><br><span style='font-size:x-small;font-weight:bold;'>" |
|
91 | - . _AM_EXTCAL_USEFUL_TAGS |
|
92 | - . "</span><br><span style='font-size:x-small;font-weight:normal;'>" |
|
93 | - . _AM_EXTCAL_MAILTAGS1 |
|
94 | - . '<br>' |
|
95 | - . _AM_EXTCAL_MAILTAGS2 |
|
96 | - . '<br>' |
|
97 | - . _AM_EXTCAL_MAILTAGS3 |
|
98 | - . '<br>' |
|
99 | - . _AM_EXTCAL_MAILTAGS4 |
|
100 | - . '<br>' |
|
101 | - . _AM_EXTCAL_MAILTAGS5 |
|
102 | - . '<br>' |
|
103 | - . _AM_EXTCAL_MAILTAGS6 |
|
104 | - . '<br>' |
|
105 | - . _AM_EXTCAL_MAILTAGS7 |
|
106 | - . '<br>' |
|
107 | - . _AM_EXTCAL_MAILTAGS8 |
|
108 | - . '<br>' |
|
109 | - . _AM_EXTCAL_MAILTAGS9 |
|
110 | - . '</span> '; |
|
90 | + . "<br><br><span style='font-size:x-small;font-weight:bold;'>" |
|
91 | + . _AM_EXTCAL_USEFUL_TAGS |
|
92 | + . "</span><br><span style='font-size:x-small;font-weight:normal;'>" |
|
93 | + . _AM_EXTCAL_MAILTAGS1 |
|
94 | + . '<br>' |
|
95 | + . _AM_EXTCAL_MAILTAGS2 |
|
96 | + . '<br>' |
|
97 | + . _AM_EXTCAL_MAILTAGS3 |
|
98 | + . '<br>' |
|
99 | + . _AM_EXTCAL_MAILTAGS4 |
|
100 | + . '<br>' |
|
101 | + . _AM_EXTCAL_MAILTAGS5 |
|
102 | + . '<br>' |
|
103 | + . _AM_EXTCAL_MAILTAGS6 |
|
104 | + . '<br>' |
|
105 | + . _AM_EXTCAL_MAILTAGS7 |
|
106 | + . '<br>' |
|
107 | + . _AM_EXTCAL_MAILTAGS8 |
|
108 | + . '<br>' |
|
109 | + . _AM_EXTCAL_MAILTAGS9 |
|
110 | + . '</span> '; |
|
111 | 111 | $toCheckBbox = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail'); |
112 | 112 | $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL); |
113 | 113 | $toCheckBox->addOption('pm', _AM_EXTCAL_PM); |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | switch ($op) { |
36 | - case 'notification': |
|
37 | - switch ($fct) { |
|
36 | + case 'notification': |
|
37 | + switch ($fct) { |
|
38 | 38 | case 'send': |
39 | 39 | if (!$GLOBALS['xoopsSecurity']->check()) { |
40 | 40 | redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
@@ -130,78 +130,78 @@ discard block |
||
130 | 130 | xoops_cp_footer(); |
131 | 131 | |
132 | 132 | break; |
133 | - } |
|
133 | + } |
|
134 | 134 | break; |
135 | 135 | |
136 | - default: |
|
137 | - case 'default': |
|
138 | - // @author Gregory Mage (Aka Mage) |
|
139 | - //*************************************************************************************** |
|
140 | - xoops_cp_header(); |
|
141 | - // require_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php"; |
|
142 | - // $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE); |
|
143 | - // $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
|
144 | - $adminObject = \Xmf\Module\Admin::getInstance(); |
|
145 | - $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD); |
|
146 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount()), '', 'Green'); |
|
147 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1))), '', 'Green'); |
|
148 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0))), '', 'Red'); |
|
149 | - $criteriaCompo = new CriteriaCompo(); |
|
150 | - $criteriaCompo->add(new Criteria('event_approved', 1)); |
|
151 | - $criteriaCompo->add(new Criteria('event_start', time(), '>=')); |
|
152 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>'), '', 'Green'); |
|
153 | - |
|
154 | - $adminObject->addConfigBoxLine(); |
|
155 | - $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH); |
|
156 | - $adminObject->addConfigBoxLine(_EXTCAL_PEAR_ROOT, 'folder'); |
|
157 | - |
|
158 | - //JJD |
|
159 | - // $adminObject->addConfigBoxLine(XOOPS_ROOT_PATH,'folder'); |
|
160 | - |
|
161 | - // $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php'); |
|
162 | - // $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops'); |
|
163 | - $adminObject->displayNavigation(basename(__FILE__)); |
|
164 | - $adminObject->displayIndex(); |
|
165 | - //*************************************************************************************** |
|
166 | - $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), ['cat_id']); |
|
167 | - $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y'); |
|
168 | - |
|
169 | - echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>'; |
|
170 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
171 | - // echo '<img src="../assets/images/icons/on.png" > '._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>'; |
|
172 | - echo '<img src=' . $pathIcon16 . '/edit.png> ' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>'; |
|
173 | - echo '<img src=' . $pathIcon16 . '/delete.png> ' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>'; |
|
174 | - echo '</fieldset><br>'; |
|
175 | - |
|
176 | - echo '<table class="outer" style="width:100%;">'; |
|
177 | - echo '<tr style="text-align:center;">'; |
|
178 | - echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>'; |
|
179 | - echo '<th>' . _AM_EXTCAL_TITLE . '</th>'; |
|
180 | - echo '<th>' . _AM_EXTCAL_START_DATE . '</th>'; |
|
181 | - echo '<th>' . _AM_EXTCAL_ACTION . '</th>'; |
|
182 | - echo '</tr>'; |
|
183 | - |
|
184 | - if (count($pendingEvent) > 0) { |
|
185 | - $i = 0; |
|
186 | - foreach ($pendingEvent as $event) { |
|
187 | - $class = (0 == ++$i % 2) ? 'even' : 'odd'; |
|
188 | - echo '<tr style="text-align:center;" class="' . $class . '">'; |
|
189 | - echo '<td>' . $event['cat']['cat_name'] . '</td>'; |
|
190 | - echo '<td>' . $event['event_title'] . '</td>'; |
|
191 | - echo '<td>' . $event['formated_event_start'] . '</td>'; |
|
192 | - echo '<td style="width:10%; text-align:center;">'; |
|
193 | - echo '<a href="event.php?op=modify&event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a> '; |
|
194 | - echo '<a href="event.php?op=delete&event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>'; |
|
195 | - echo '</td>'; |
|
196 | - echo '</tr>'; |
|
136 | + default: |
|
137 | + case 'default': |
|
138 | + // @author Gregory Mage (Aka Mage) |
|
139 | + //*************************************************************************************** |
|
140 | + xoops_cp_header(); |
|
141 | + // require_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php"; |
|
142 | + // $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE); |
|
143 | + // $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
|
144 | + $adminObject = \Xmf\Module\Admin::getInstance(); |
|
145 | + $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD); |
|
146 | + $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount()), '', 'Green'); |
|
147 | + $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1))), '', 'Green'); |
|
148 | + $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0))), '', 'Red'); |
|
149 | + $criteriaCompo = new CriteriaCompo(); |
|
150 | + $criteriaCompo->add(new Criteria('event_approved', 1)); |
|
151 | + $criteriaCompo->add(new Criteria('event_start', time(), '>=')); |
|
152 | + $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>'), '', 'Green'); |
|
153 | + |
|
154 | + $adminObject->addConfigBoxLine(); |
|
155 | + $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH); |
|
156 | + $adminObject->addConfigBoxLine(_EXTCAL_PEAR_ROOT, 'folder'); |
|
157 | + |
|
158 | + //JJD |
|
159 | + // $adminObject->addConfigBoxLine(XOOPS_ROOT_PATH,'folder'); |
|
160 | + |
|
161 | + // $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php'); |
|
162 | + // $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops'); |
|
163 | + $adminObject->displayNavigation(basename(__FILE__)); |
|
164 | + $adminObject->displayIndex(); |
|
165 | + //*************************************************************************************** |
|
166 | + $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), ['cat_id']); |
|
167 | + $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y'); |
|
168 | + |
|
169 | + echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>'; |
|
170 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
171 | + // echo '<img src="../assets/images/icons/on.png" > '._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>'; |
|
172 | + echo '<img src=' . $pathIcon16 . '/edit.png> ' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>'; |
|
173 | + echo '<img src=' . $pathIcon16 . '/delete.png> ' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>'; |
|
174 | + echo '</fieldset><br>'; |
|
175 | + |
|
176 | + echo '<table class="outer" style="width:100%;">'; |
|
177 | + echo '<tr style="text-align:center;">'; |
|
178 | + echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>'; |
|
179 | + echo '<th>' . _AM_EXTCAL_TITLE . '</th>'; |
|
180 | + echo '<th>' . _AM_EXTCAL_START_DATE . '</th>'; |
|
181 | + echo '<th>' . _AM_EXTCAL_ACTION . '</th>'; |
|
182 | + echo '</tr>'; |
|
183 | + |
|
184 | + if (count($pendingEvent) > 0) { |
|
185 | + $i = 0; |
|
186 | + foreach ($pendingEvent as $event) { |
|
187 | + $class = (0 == ++$i % 2) ? 'even' : 'odd'; |
|
188 | + echo '<tr style="text-align:center;" class="' . $class . '">'; |
|
189 | + echo '<td>' . $event['cat']['cat_name'] . '</td>'; |
|
190 | + echo '<td>' . $event['event_title'] . '</td>'; |
|
191 | + echo '<td>' . $event['formated_event_start'] . '</td>'; |
|
192 | + echo '<td style="width:10%; text-align:center;">'; |
|
193 | + echo '<a href="event.php?op=modify&event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a> '; |
|
194 | + echo '<a href="event.php?op=delete&event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>'; |
|
195 | + echo '</td>'; |
|
196 | + echo '</tr>'; |
|
197 | + } |
|
198 | + } else { |
|
199 | + echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>'; |
|
197 | 200 | } |
198 | - } else { |
|
199 | - echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>'; |
|
200 | - } |
|
201 | 201 | |
202 | - echo '</table></fieldset><br>'; |
|
202 | + echo '</table></fieldset><br>'; |
|
203 | 203 | |
204 | - require_once __DIR__ . '/admin_footer.php'; |
|
204 | + require_once __DIR__ . '/admin_footer.php'; |
|
205 | 205 | |
206 | - break; |
|
206 | + break; |
|
207 | 207 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
4 | -include __DIR__ . '/../../../class/xoopsformloader.php'; |
|
5 | -require_once __DIR__ . '/admin_header.php'; |
|
3 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
4 | +include __DIR__.'/../../../class/xoopsformloader.php'; |
|
5 | +require_once __DIR__.'/admin_header.php'; |
|
6 | 6 | |
7 | 7 | function extgalleryLastVersion() |
8 | 8 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | switch ($fct) { |
38 | 38 | case 'send': |
39 | 39 | if (!$GLOBALS['xoopsSecurity']->check()) { |
40 | - redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
40 | + redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
41 | 41 | } |
42 | 42 | xoops_cp_header(); |
43 | 43 | adminMenu(1); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | 'EV_TITLE' => $event->getVar('event_title'), |
71 | 71 | 'EV_START' => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_start')), |
72 | 72 | 'EV_END' => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_end')), |
73 | - 'EV_LINK' => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'), |
|
73 | + 'EV_LINK' => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'), |
|
74 | 74 | ]; |
75 | 75 | $xoopsMailer->assign($tag); |
76 | 76 | $xoopsMailer->send(true); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | default: |
86 | 86 | xoops_cp_header(); |
87 | 87 | $fromemail = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E'); |
88 | - $subjectCaption = _AM_EXTCAL_SUBJECT . "<br><br><span style='font-size:x-small;font-weight:bold;'>" . _AM_EXTCAL_USEFUL_TAGS . "</span><br><span style='font-size:x-small;font-weight:normal;'>" . _AM_EXTCAL_MAILTAGS6 . '<br>' . _AM_EXTCAL_MAILTAGS2 . '</span> '; |
|
88 | + $subjectCaption = _AM_EXTCAL_SUBJECT."<br><br><span style='font-size:x-small;font-weight:bold;'>"._AM_EXTCAL_USEFUL_TAGS."</span><br><span style='font-size:x-small;font-weight:normal;'>"._AM_EXTCAL_MAILTAGS6.'<br>'._AM_EXTCAL_MAILTAGS2.'</span> '; |
|
89 | 89 | $bodyCaption = _AM_EXTCAL_BODY |
90 | 90 | . "<br><br><span style='font-size:x-small;font-weight:bold;'>" |
91 | 91 | . _AM_EXTCAL_USEFUL_TAGS |
@@ -108,12 +108,12 @@ discard block |
||
108 | 108 | . '<br>' |
109 | 109 | . _AM_EXTCAL_MAILTAGS9 |
110 | 110 | . '</span> '; |
111 | - $toCheckBbox = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail'); |
|
111 | + $toCheckBbox = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail'); |
|
112 | 112 | $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL); |
113 | 113 | $toCheckBox->addOption('pm', _AM_EXTCAL_PM); |
114 | 114 | |
115 | - echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>'; |
|
116 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
115 | + echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>'; |
|
116 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>'; |
|
117 | 117 | echo _AM_EXTCAL_INFO_SEND_NOTIF; |
118 | 118 | echo '</fieldset><br>'; |
119 | 119 | $form = new XoopsThemeForm(_AM_EXTCAL_SEND_NOTIFICATION, 'mailusers', 'index.php?op=notification&fct=send', 'post', true); |
@@ -143,13 +143,13 @@ discard block |
||
143 | 143 | // $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
144 | 144 | $adminObject = \Xmf\Module\Admin::getInstance(); |
145 | 145 | $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD); |
146 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount()), '', 'Green'); |
|
147 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1))), '', 'Green'); |
|
148 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0))), '', 'Red'); |
|
146 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount()), '', 'Green'); |
|
147 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1))), '', 'Green'); |
|
148 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0))), '', 'Red'); |
|
149 | 149 | $criteriaCompo = new CriteriaCompo(); |
150 | 150 | $criteriaCompo->add(new Criteria('event_approved', 1)); |
151 | 151 | $criteriaCompo->add(new Criteria('event_start', time(), '>=')); |
152 | - $adminObject->addInfoBoxLine(sprintf( '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>'), '', 'Green'); |
|
152 | + $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>'), '', 'Green'); |
|
153 | 153 | |
154 | 154 | $adminObject->addConfigBoxLine(); |
155 | 155 | $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH); |
@@ -166,42 +166,42 @@ discard block |
||
166 | 166 | $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), ['cat_id']); |
167 | 167 | $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y'); |
168 | 168 | |
169 | - echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>'; |
|
170 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
169 | + echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>'; |
|
170 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>'; |
|
171 | 171 | // echo '<img src="../assets/images/icons/on.png" > '._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>'; |
172 | - echo '<img src=' . $pathIcon16 . '/edit.png> ' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>'; |
|
173 | - echo '<img src=' . $pathIcon16 . '/delete.png> ' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>'; |
|
172 | + echo '<img src='.$pathIcon16.'/edit.png> '._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>'; |
|
173 | + echo '<img src='.$pathIcon16.'/delete.png> '._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>'; |
|
174 | 174 | echo '</fieldset><br>'; |
175 | 175 | |
176 | 176 | echo '<table class="outer" style="width:100%;">'; |
177 | 177 | echo '<tr style="text-align:center;">'; |
178 | - echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>'; |
|
179 | - echo '<th>' . _AM_EXTCAL_TITLE . '</th>'; |
|
180 | - echo '<th>' . _AM_EXTCAL_START_DATE . '</th>'; |
|
181 | - echo '<th>' . _AM_EXTCAL_ACTION . '</th>'; |
|
178 | + echo '<th>'._AM_EXTCAL_CATEGORY.'</th>'; |
|
179 | + echo '<th>'._AM_EXTCAL_TITLE.'</th>'; |
|
180 | + echo '<th>'._AM_EXTCAL_START_DATE.'</th>'; |
|
181 | + echo '<th>'._AM_EXTCAL_ACTION.'</th>'; |
|
182 | 182 | echo '</tr>'; |
183 | 183 | |
184 | 184 | if (count($pendingEvent) > 0) { |
185 | 185 | $i = 0; |
186 | 186 | foreach ($pendingEvent as $event) { |
187 | 187 | $class = (0 == ++$i % 2) ? 'even' : 'odd'; |
188 | - echo '<tr style="text-align:center;" class="' . $class . '">'; |
|
189 | - echo '<td>' . $event['cat']['cat_name'] . '</td>'; |
|
190 | - echo '<td>' . $event['event_title'] . '</td>'; |
|
191 | - echo '<td>' . $event['formated_event_start'] . '</td>'; |
|
188 | + echo '<tr style="text-align:center;" class="'.$class.'">'; |
|
189 | + echo '<td>'.$event['cat']['cat_name'].'</td>'; |
|
190 | + echo '<td>'.$event['event_title'].'</td>'; |
|
191 | + echo '<td>'.$event['formated_event_start'].'</td>'; |
|
192 | 192 | echo '<td style="width:10%; text-align:center;">'; |
193 | - echo '<a href="event.php?op=modify&event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a> '; |
|
194 | - echo '<a href="event.php?op=delete&event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>'; |
|
193 | + echo '<a href="event.php?op=modify&event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png></a> '; |
|
194 | + echo '<a href="event.php?op=delete&event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png></a>'; |
|
195 | 195 | echo '</td>'; |
196 | 196 | echo '</tr>'; |
197 | 197 | } |
198 | 198 | } else { |
199 | - echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>'; |
|
199 | + echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>'; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | echo '</table></fieldset><br>'; |
203 | 203 | |
204 | - require_once __DIR__ . '/admin_footer.php'; |
|
204 | + require_once __DIR__.'/admin_footer.php'; |
|
205 | 205 | |
206 | 206 | break; |
207 | 207 | } |
@@ -9,15 +9,15 @@ |
||
9 | 9 | { |
10 | 10 | |
11 | 11 | // Create eXtCal upload directory |
12 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal'; |
|
12 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal'; |
|
13 | 13 | if (!is_dir($dir)) { |
14 | 14 | mkdir($dir); |
15 | - mkdir($dir . '/etablissement'); |
|
15 | + mkdir($dir.'/etablissement'); |
|
16 | 16 | |
17 | 17 | // Copy index.html files on uploads folders |
18 | - $indexFile = __DIR__ . '/index.html'; |
|
19 | - copy($indexFile, $dir . '/index.html'); |
|
20 | - copy($indexFile, $dir . '/etablissement/index.html'); |
|
18 | + $indexFile = __DIR__.'/index.html'; |
|
19 | + copy($indexFile, $dir.'/index.html'); |
|
20 | + copy($indexFile, $dir.'/etablissement/index.html'); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | $moduleId = $xoopsModule->getVar('mid'); |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/formdatetime.php'; |
|
4 | -include __DIR__ . '/formrecurrules.php'; |
|
5 | -include __DIR__ . '/formfilecheckbox.php'; |
|
6 | -include __DIR__ . '/formrrulecheckbox.php'; |
|
3 | +include __DIR__.'/formdatetime.php'; |
|
4 | +include __DIR__.'/formrecurrules.php'; |
|
5 | +include __DIR__.'/formfilecheckbox.php'; |
|
6 | +include __DIR__.'/formrrulecheckbox.php'; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class ExtcalThemeForm. |
@@ -66,45 +66,45 @@ discard block |
||
66 | 66 | $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq); |
67 | 67 | $formObject->addOption('none', _MD_EXTCAL_NO_RECCUR_EVENT); |
68 | 68 | $ret .= $formObject->render(); |
69 | - $ret .= '<br><br><fieldset><legend>' . _MD_EXTCAL_RECCUR_POLICY . '</legend><fieldset><legend>'; |
|
69 | + $ret .= '<br><br><fieldset><legend>'._MD_EXTCAL_RECCUR_POLICY.'</legend><fieldset><legend>'; |
|
70 | 70 | |
71 | 71 | $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq); |
72 | 72 | $formObject->addOption('daily', _MD_EXTCAL_DAILY); |
73 | 73 | $ret .= $formObject->render(); |
74 | - $ret .= '</legend>' . _MD_EXTCAL_DURING . ' '; |
|
74 | + $ret .= '</legend>'._MD_EXTCAL_DURING.' '; |
|
75 | 75 | |
76 | 76 | $formObject = new XoopsFormText('', 'rrule_daily_interval', 3, 2, $this->_rrule_daily_interval); |
77 | 77 | $ret .= $formObject->render(); |
78 | - $ret .= ' ' . _MD_EXTCAL_DAYS . '</fieldset><br><fieldset><legend>'; |
|
78 | + $ret .= ' '._MD_EXTCAL_DAYS.'</fieldset><br><fieldset><legend>'; |
|
79 | 79 | |
80 | 80 | $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq); |
81 | 81 | $formObject->addOption('weekly', _MD_EXTCAL_WEEKLY); |
82 | 82 | $ret .= $formObject->render(); |
83 | - $ret .= '</legend>' . _MD_EXTCAL_DURING . ' '; |
|
83 | + $ret .= '</legend>'._MD_EXTCAL_DURING.' '; |
|
84 | 84 | |
85 | 85 | $formObject = new XoopsFormText('', 'rrule_weekly_interval', 3, 2, $this->_rrule_weekly_interval); |
86 | 86 | $ret .= $formObject->render(); |
87 | - $ret .= ' ' . _MD_EXTCAL_WEEKS . '<br>'; |
|
87 | + $ret .= ' '._MD_EXTCAL_WEEKS.'<br>'; |
|
88 | 88 | |
89 | 89 | $formObject = new XoopsFormCheckBox('', 'rrule_weekly_bydays', $this->_rrule_weekly_bydays); |
90 | - $formObject->addOption('MO', _MD_EXTCAL_MO2 . ' '); |
|
91 | - $formObject->addOption('TU', _MD_EXTCAL_TU2 . ' '); |
|
92 | - $formObject->addOption('WE', _MD_EXTCAL_WE2 . ' '); |
|
93 | - $formObject->addOption('TH', _MD_EXTCAL_TH2 . ' '); |
|
94 | - $formObject->addOption('FR', _MD_EXTCAL_FR2 . ' '); |
|
95 | - $formObject->addOption('SA', _MD_EXTCAL_SA2 . ' '); |
|
96 | - $formObject->addOption('SU', _MD_EXTCAL_SU2 . ' '); |
|
90 | + $formObject->addOption('MO', _MD_EXTCAL_MO2.' '); |
|
91 | + $formObject->addOption('TU', _MD_EXTCAL_TU2.' '); |
|
92 | + $formObject->addOption('WE', _MD_EXTCAL_WE2.' '); |
|
93 | + $formObject->addOption('TH', _MD_EXTCAL_TH2.' '); |
|
94 | + $formObject->addOption('FR', _MD_EXTCAL_FR2.' '); |
|
95 | + $formObject->addOption('SA', _MD_EXTCAL_SA2.' '); |
|
96 | + $formObject->addOption('SU', _MD_EXTCAL_SU2.' '); |
|
97 | 97 | $ret .= $formObject->render(); |
98 | 98 | $ret .= '</fieldset><br><fieldset><legend>'; |
99 | 99 | |
100 | 100 | $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq); |
101 | 101 | $formObject->addOption('monthly', _MD_EXTCAL_MONTHLY); |
102 | 102 | $ret .= $formObject->render(); |
103 | - $ret .= '</legend>' . _MD_EXTCAL_DURING . ' '; |
|
103 | + $ret .= '</legend>'._MD_EXTCAL_DURING.' '; |
|
104 | 104 | |
105 | 105 | $formObject = new XoopsFormText('', 'rrule_monthly_interval', 3, 2, $this->_rrule_monthly_interval); |
106 | 106 | $ret .= $formObject->render(); |
107 | - $ret .= ' ' . _MD_EXTCAL_MONTH . ', ' . _MD_EXTCAL_ON . ' '; |
|
107 | + $ret .= ' '._MD_EXTCAL_MONTH.', '._MD_EXTCAL_ON.' '; |
|
108 | 108 | |
109 | 109 | $formObject = new XoopsFormSelect('', 'rrule_monthly_byday', $this->_rrule_monthly_byday); |
110 | 110 | $formObject->addOption('', ' '); |
@@ -144,20 +144,20 @@ discard block |
||
144 | 144 | $formObject->addOption('-1SA', _MD_EXTCAL_LAST_SA); |
145 | 145 | $formObject->addOption('-1SU', _MD_EXTCAL_LAST_SU); |
146 | 146 | $ret .= $formObject->render(); |
147 | - $ret .= ' ' . _MD_EXTCAL_OR_THE . ' '; |
|
147 | + $ret .= ' '._MD_EXTCAL_OR_THE.' '; |
|
148 | 148 | |
149 | 149 | $formObject = new XoopsFormText('', 'rrule_bymonthday', 3, 2, $this->_rrule_bymonthday); |
150 | 150 | $ret .= $formObject->render(); |
151 | - $ret .= ' ' . _MD_EXTCAL_DAY_NUM_MONTH . '</fieldset><br><fieldset><legend>'; |
|
151 | + $ret .= ' '._MD_EXTCAL_DAY_NUM_MONTH.'</fieldset><br><fieldset><legend>'; |
|
152 | 152 | |
153 | 153 | $formObject = new XoopsFormRadio('', 'rrule_freq', $this->_rrule_freq); |
154 | 154 | $formObject->addOption('yearly', _MD_EXTCAL_YEARLY); |
155 | 155 | $ret .= $formObject->render(); |
156 | - $ret .= '</legend>' . _MD_EXTCAL_DURING . ' '; |
|
156 | + $ret .= '</legend>'._MD_EXTCAL_DURING.' '; |
|
157 | 157 | |
158 | 158 | $formObject = new XoopsFormText('', 'rrule_yearly_interval', 3, 2, $this->_rrule_yearly_interval); |
159 | 159 | $ret .= $formObject->render(); |
160 | - $ret .= ' ' . _MD_EXTCAL_YEARS . '<br>'; |
|
160 | + $ret .= ' '._MD_EXTCAL_YEARS.'<br>'; |
|
161 | 161 | |
162 | 162 | $formObject = new ExtcalFormRRuleCheckBox('', 'rrule_yearly_bymonths', $this->_rrule_yearly_bymonths); |
163 | 163 | $formObject->addOption('1', _MD_EXTCAL_JAN); |
@@ -138,7 +138,7 @@ |
||
138 | 138 | global $g_pcl_error_string; |
139 | 139 | global $g_pcl_error_code; |
140 | 140 | |
141 | - return $g_pcl_error_string . " [code $g_pcl_error_code]"; |
|
141 | + return $g_pcl_error_string." [code $g_pcl_error_code]"; |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | // -------------------------------------------------------------------------------- |