@@ -144,8 +144,8 @@ |
||
| 144 | 144 | // Flag current day |
| 145 | 145 | $selectedDays = array( |
| 146 | 146 | new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
| 147 | - date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
|
| 148 | - date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 147 | + date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
|
| 148 | + date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 149 | 149 | ); |
| 150 | 150 | |
| 151 | 151 | // Build calendar object |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | define('_AM_EXTCAL_MD_FILE_DONT_EXIST_SHORT', "Module files don't exist"); |
| 94 | 94 | define('_AM_EXTCAL_MODULE_ADMIN_SUMMARY', 'eXtCal Administration Summary'); |
| 95 | 95 | define('_AM_EXTCAL_MULTIUPLOADS_NOT_OK', |
| 96 | - "The multiuploads component is not installed.<br><br><a href='http://xoops.kiolo.com/modules/mydownloads/'>Download here the multiuploads component</a><br><br>and install it in the folder 'class/xoopsform/'"); |
|
| 96 | + "The multiuploads component is not installed.<br><br><a href='http://xoops.kiolo.com/modules/mydownloads/'>Download here the multiuploads component</a><br><br>and install it in the folder 'class/xoopsform/'"); |
|
| 97 | 97 | define('_AM_EXTCAL_NAME', 'Name'); |
| 98 | 98 | define('_AM_EXTCAL_NOPERMSSET', 'Permission cannot be set: There are no Categories created yet! Please create a Category first.'); |
| 99 | 99 | define('_AM_EXTCAL_PENDING', 'Pending'); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | define('_AM_EXTCAL_PREFERENCES', 'Preferences'); |
| 104 | 104 | define('_AM_EXTCAL_PUBLIC_PERM_MASK', 'Public permissions mask'); |
| 105 | 105 | define('_AM_EXTCAL_PUBLIC_PERM_MASK_INFO', |
| 106 | - "You can set here the default mask permission who will be apply to new category. Be careful to don't give excessive permissions here because all new category will give them."); |
|
| 106 | + "You can set here the default mask permission who will be apply to new category. Be careful to don't give excessive permissions here because all new category will give them."); |
|
| 107 | 107 | define('_AM_EXTCAL_REDIRECT_DELOK', 'successfully deleted'); |
| 108 | 108 | define('_AM_EXTCAL_START_DATE', 'Start Date'); |
| 109 | 109 | define('_AM_EXTCAL_SUBMIT_PERMISSION', 'Submit permission'); |
@@ -2314,7 +2314,7 @@ discard block |
||
| 2314 | 2314 | $p_tar_mode |
| 2315 | 2315 | ) { |
| 2316 | 2316 | TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtractByIndexList', |
| 2317 | - "archive='$p_tarname', index_string='$p_index_string', list, path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode"); |
|
| 2317 | + "archive='$p_tarname', index_string='$p_index_string', list, path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode"); |
|
| 2318 | 2318 | $v_result = 1; |
| 2319 | 2319 | $v_nb = 0; |
| 2320 | 2320 | |
@@ -2425,7 +2425,7 @@ discard block |
||
| 2425 | 2425 | $p_tar_mode |
| 2426 | 2426 | ) { |
| 2427 | 2427 | TrFctStart(__FILE__, __LINE__, 'PclTarHandleExtractByIndex', |
| 2428 | - "archive_descr='$p_tar', index_current=$p_index_current, index_start='$p_index_start', index_stop='$p_index_stop', list, path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode"); |
|
| 2428 | + "archive_descr='$p_tar', index_current=$p_index_current, index_start='$p_index_start', index_stop='$p_index_stop', list, path=$p_path, remove_path='$p_remove_path', tar_mode=$p_tar_mode"); |
|
| 2429 | 2429 | $v_result = 1; |
| 2430 | 2430 | $v_nb = 0; |
| 2431 | 2431 | |
@@ -85,26 +85,26 @@ discard block |
||
| 85 | 85 | echo "<td></td>\n"; |
| 86 | 86 | } elseif ($Day->isSelected()) { |
| 87 | 87 | echo '<td><anchor><strong><u>' |
| 88 | - . $Day->thisDay() |
|
| 89 | - . "</u></strong>\n<go href=\"" |
|
| 90 | - . $_SERVER['PHP_SELF'] |
|
| 91 | - . '?viewday=true&y=' |
|
| 92 | - . $Day->thisYear() |
|
| 93 | - . '&m=' |
|
| 94 | - . $Day->thisMonth() |
|
| 95 | - . '&d=' |
|
| 96 | - . $Day->thisDay() |
|
| 97 | - . "&mime=wml\">\n</anchor></td>\n"; |
|
| 88 | + . $Day->thisDay() |
|
| 89 | + . "</u></strong>\n<go href=\"" |
|
| 90 | + . $_SERVER['PHP_SELF'] |
|
| 91 | + . '?viewday=true&y=' |
|
| 92 | + . $Day->thisYear() |
|
| 93 | + . '&m=' |
|
| 94 | + . $Day->thisMonth() |
|
| 95 | + . '&d=' |
|
| 96 | + . $Day->thisDay() |
|
| 97 | + . "&mime=wml\">\n</anchor></td>\n"; |
|
| 98 | 98 | } else { |
| 99 | 99 | echo '<td><anchor>' |
| 100 | - . $Day->thisDay() |
|
| 101 | - . "\n<go href=\"?viewday=true&y=" |
|
| 102 | - . $Day->thisYear() |
|
| 103 | - . '&m=' |
|
| 104 | - . $Day->thisMonth() |
|
| 105 | - . '&d=' |
|
| 106 | - . $Day->thisDay() |
|
| 107 | - . "&mime=wml\"></anchor></td>\n"; |
|
| 100 | + . $Day->thisDay() |
|
| 101 | + . "\n<go href=\"?viewday=true&y=" |
|
| 102 | + . $Day->thisYear() |
|
| 103 | + . '&m=' |
|
| 104 | + . $Day->thisMonth() |
|
| 105 | + . '&d=' |
|
| 106 | + . $Day->thisDay() |
|
| 107 | + . "&mime=wml\"></anchor></td>\n"; |
|
| 108 | 108 | } |
| 109 | 109 | if ($Day->isLast()) { |
| 110 | 110 | echo "</tr>\n"; |
@@ -197,28 +197,28 @@ discard block |
||
| 197 | 197 | echo "<td></td>\n"; |
| 198 | 198 | } elseif ($Day->isSelected()) { |
| 199 | 199 | echo '<td><a href="' |
| 200 | - . $_SERVER['PHP_SELF'] |
|
| 201 | - . '?viewday=true&y=' |
|
| 202 | - . $Day->thisYear() |
|
| 203 | - . '&m=' |
|
| 204 | - . $Day->thisMonth() |
|
| 205 | - . '&d=' |
|
| 206 | - . $Day->thisDay() |
|
| 207 | - . '&wml"><strong><u>' |
|
| 208 | - . $Day->thisDay() |
|
| 209 | - . "</u></strong></a></td>\n"; |
|
| 200 | + . $_SERVER['PHP_SELF'] |
|
| 201 | + . '?viewday=true&y=' |
|
| 202 | + . $Day->thisYear() |
|
| 203 | + . '&m=' |
|
| 204 | + . $Day->thisMonth() |
|
| 205 | + . '&d=' |
|
| 206 | + . $Day->thisDay() |
|
| 207 | + . '&wml"><strong><u>' |
|
| 208 | + . $Day->thisDay() |
|
| 209 | + . "</u></strong></a></td>\n"; |
|
| 210 | 210 | } else { |
| 211 | 211 | echo '<td><a href="' |
| 212 | - . $_SERVER['PHP_SELF'] |
|
| 213 | - . '?viewday=true&y=' |
|
| 214 | - . $Day->thisYear() |
|
| 215 | - . '&m=' |
|
| 216 | - . $Day->thisMonth() |
|
| 217 | - . '&d=' |
|
| 218 | - . $Day->thisDay() |
|
| 219 | - . '">' |
|
| 220 | - . $Day->thisDay() |
|
| 221 | - . "</a></td>\n"; |
|
| 212 | + . $_SERVER['PHP_SELF'] |
|
| 213 | + . '?viewday=true&y=' |
|
| 214 | + . $Day->thisYear() |
|
| 215 | + . '&m=' |
|
| 216 | + . $Day->thisMonth() |
|
| 217 | + . '&d=' |
|
| 218 | + . $Day->thisDay() |
|
| 219 | + . '">' |
|
| 220 | + . $Day->thisDay() |
|
| 221 | + . "</a></td>\n"; |
|
| 222 | 222 | } |
| 223 | 223 | if ($Day->isLast()) { |
| 224 | 224 | echo "</tr>\n"; |
@@ -151,11 +151,11 @@ |
||
| 151 | 151 | $cat_color = $catList->getVar('cat_color'); |
| 152 | 152 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
| 153 | 153 | $cat = '' |
| 154 | - . "<div style='float:left; margin-left:5px;'>" |
|
| 155 | - . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 156 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 157 | - . " {$name}" |
|
| 158 | - . '</div>'; |
|
| 154 | + . "<div style='float:left; margin-left:5px;'>" |
|
| 155 | + . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 156 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 157 | + . " {$name}" |
|
| 158 | + . '</div>'; |
|
| 159 | 159 | |
| 160 | 160 | $t[] = $cat; |
| 161 | 161 | } |
@@ -2398,10 +2398,10 @@ |
||
| 2398 | 2398 | $tCat = $xoopsDB->prefix('extcal_cat') . ' AS tc'; |
| 2399 | 2399 | |
| 2400 | 2400 | $sql = 'SELECT te.*, tc.cat_name , tc.cat_color, ' |
| 2401 | - . 'year(FROM_UNIXTIME(event_start)) AS year,' |
|
| 2402 | - . 'month(FROM_UNIXTIME(event_start)) AS month,' |
|
| 2403 | - . 'day(FROM_UNIXTIME(event_start)) AS day' |
|
| 2404 | - . " FROM {$tEvent}, {$tCat}"; |
|
| 2401 | + . 'year(FROM_UNIXTIME(event_start)) AS year,' |
|
| 2402 | + . 'month(FROM_UNIXTIME(event_start)) AS month,' |
|
| 2403 | + . 'day(FROM_UNIXTIME(event_start)) AS day' |
|
| 2404 | + . " FROM {$tEvent}, {$tCat}"; |
|
| 2405 | 2405 | //--------------------------------------------------- |
| 2406 | 2406 | $tw = array(); |
| 2407 | 2407 | $tw[] = 'te.cat_id = tc.cat_id'; |
@@ -107,24 +107,24 @@ |
||
| 107 | 107 | define('_EXTCAL_NAV_NEW_EVENT', 'new-event'); |
| 108 | 108 | |
| 109 | 109 | define('_EXTCAL_NAV_LIST', _EXTCAL_NAV_CALMONTH |
| 110 | - . "\n" |
|
| 111 | - . _EXTCAL_NAV_CALWEEK |
|
| 112 | - . "\n" |
|
| 113 | - . _EXTCAL_NAV_YEAR |
|
| 114 | - . "\n" |
|
| 115 | - . _EXTCAL_NAV_MONTH |
|
| 116 | - . "\n" |
|
| 117 | - . _EXTCAL_NAV_WEEK |
|
| 118 | - . "\n" |
|
| 119 | - . _EXTCAL_NAV_DAY |
|
| 120 | - . "\n" |
|
| 121 | - . _EXTCAL_NAV_AGENDA_WEEK |
|
| 122 | - . "\n" |
|
| 123 | - . _EXTCAL_NAV_AGENDA_DAY |
|
| 124 | - . "\n" |
|
| 125 | - . _EXTCAL_NAV_SEARCH |
|
| 126 | - . "\n" |
|
| 127 | - . _EXTCAL_NAV_NEW_EVENT); |
|
| 110 | + . "\n" |
|
| 111 | + . _EXTCAL_NAV_CALWEEK |
|
| 112 | + . "\n" |
|
| 113 | + . _EXTCAL_NAV_YEAR |
|
| 114 | + . "\n" |
|
| 115 | + . _EXTCAL_NAV_MONTH |
|
| 116 | + . "\n" |
|
| 117 | + . _EXTCAL_NAV_WEEK |
|
| 118 | + . "\n" |
|
| 119 | + . _EXTCAL_NAV_DAY |
|
| 120 | + . "\n" |
|
| 121 | + . _EXTCAL_NAV_AGENDA_WEEK |
|
| 122 | + . "\n" |
|
| 123 | + . _EXTCAL_NAV_AGENDA_DAY |
|
| 124 | + . "\n" |
|
| 125 | + . _EXTCAL_NAV_SEARCH |
|
| 126 | + . "\n" |
|
| 127 | + . _EXTCAL_NAV_NEW_EVENT); |
|
| 128 | 128 | |
| 129 | 129 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
| 130 | 130 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
@@ -55,22 +55,22 @@ discard block |
||
| 55 | 55 | $edit_delete = ''; |
| 56 | 56 | if (is_object($xoopsUser) && $isAdmin) { |
| 57 | 57 | $edit_delete = '<a href="' |
| 58 | - . XOOPS_URL |
|
| 59 | - . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id=' |
|
| 60 | - . $etablissement_id |
|
| 61 | - . '"><img src="' |
|
| 62 | - . $pathIcon16 |
|
| 63 | - . '/edit.png" width="16px" height="16px" border="0" title="' |
|
| 64 | - . _MD_EXTCAL_ETABLISSEMENT_EDIT |
|
| 65 | - . '"/></a><a href="' |
|
| 66 | - . XOOPS_URL |
|
| 67 | - . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id=' |
|
| 68 | - . $etablissement_id |
|
| 69 | - . '"><img src="' |
|
| 70 | - . $pathIcon16 |
|
| 71 | - . '/delete.png" width="16px" height="16px" border="0" title="' |
|
| 72 | - . _MD_EXTCAL_ETABLISSEMENT_DELETE |
|
| 73 | - . '"/></a>'; |
|
| 58 | + . XOOPS_URL |
|
| 59 | + . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id=' |
|
| 60 | + . $etablissement_id |
|
| 61 | + . '"><img src="' |
|
| 62 | + . $pathIcon16 |
|
| 63 | + . '/edit.png" width="16px" height="16px" border="0" title="' |
|
| 64 | + . _MD_EXTCAL_ETABLISSEMENT_EDIT |
|
| 65 | + . '"/></a><a href="' |
|
| 66 | + . XOOPS_URL |
|
| 67 | + . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id=' |
|
| 68 | + . $etablissement_id |
|
| 69 | + . '"><img src="' |
|
| 70 | + . $pathIcon16 |
|
| 71 | + . '/delete.png" width="16px" height="16px" border="0" title="' |
|
| 72 | + . _MD_EXTCAL_ETABLISSEMENT_DELETE |
|
| 73 | + . '"/></a>'; |
|
| 74 | 74 | } |
| 75 | 75 | $xoopsTpl->assign('edit_delete', $edit_delete); |
| 76 | 76 | |
@@ -79,12 +79,12 @@ discard block |
||
| 79 | 79 | $date = mktime(0, 0, 0, date('m'), date('d'), date('y')); |
| 80 | 80 | |
| 81 | 81 | $requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM ' |
| 82 | - . $xoopsDB->prefix('extcal_event') |
|
| 83 | - . " WHERE event_etablissement='" |
|
| 84 | - . $etablissement_id |
|
| 85 | - . "' AND event_start >='" |
|
| 86 | - . $date |
|
| 87 | - . "'"); |
|
| 82 | + . $xoopsDB->prefix('extcal_event') |
|
| 83 | + . " WHERE event_etablissement='" |
|
| 84 | + . $etablissement_id |
|
| 85 | + . "' AND event_start >='" |
|
| 86 | + . $date |
|
| 87 | + . "'"); |
|
| 88 | 88 | while ($donnees = $xoopsDB->fetchArray($requete)) { |
| 89 | 89 | if ($donnees['event_desc'] > 210) { |
| 90 | 90 | $event_desc = $donnees['event_desc']; |
@@ -20,12 +20,12 @@ |
||
| 20 | 20 | |
| 21 | 21 | $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32); |
| 22 | 22 | echo "<div class='adminfooter'>\n" |
| 23 | - . " <div style='text-align: center;'>\n" |
|
| 24 | - . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
| 25 | - . " </div>\n" |
|
| 26 | - . ' ' |
|
| 27 | - . _AM_MODULEADMIN_ADMIN_FOOTER |
|
| 28 | - . "\n" |
|
| 29 | - . '</div>'; |
|
| 23 | + . " <div style='text-align: center;'>\n" |
|
| 24 | + . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
| 25 | + . " </div>\n" |
|
| 26 | + . ' ' |
|
| 27 | + . _AM_MODULEADMIN_ADMIN_FOOTER |
|
| 28 | + . "\n" |
|
| 29 | + . '</div>'; |
|
| 30 | 30 | |
| 31 | 31 | xoops_cp_footer(); |