@@ -21,11 +21,11 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined'); |
| 23 | 23 | |
| 24 | -include __DIR__ . '/preloads/autoloader.php'; |
|
| 24 | +include __DIR__.'/preloads/autoloader.php'; |
|
| 25 | 25 | |
| 26 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 27 | -require_once __DIR__ . '/include/agenda_fnc.php'; |
|
| 28 | -require_once __DIR__ . '/class/config.php'; |
|
| 26 | +require_once __DIR__.'/include/constantes.php'; |
|
| 27 | +require_once __DIR__.'/include/agenda_fnc.php'; |
|
| 28 | +require_once __DIR__.'/class/config.php'; |
|
| 29 | 29 | //$loc_de = setlocale (LC_ALL, 'french'); |
| 30 | 30 | |
| 31 | 31 | //echo "local :" . setlocale(LC_TIME, $xoopsConfig['language'])."</ br>"; |
@@ -97,12 +97,12 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | // Tables created by sql file (without prefix!) |
| 99 | 99 | $modversion['tables'] = [ |
| 100 | - $moduleDirName . '_' . 'cat', |
|
| 101 | - $moduleDirName . '_' . 'event', |
|
| 102 | - $moduleDirName . '_' . 'eventmember', |
|
| 103 | - $moduleDirName . '_' . 'eventnotmember', |
|
| 104 | - $moduleDirName . '_' . 'file', |
|
| 105 | - $moduleDirName . '_' . 'etablissement' |
|
| 100 | + $moduleDirName.'_'.'cat', |
|
| 101 | + $moduleDirName.'_'.'event', |
|
| 102 | + $moduleDirName.'_'.'eventmember', |
|
| 103 | + $moduleDirName.'_'.'eventnotmember', |
|
| 104 | + $moduleDirName.'_'.'file', |
|
| 105 | + $moduleDirName.'_'.'etablissement' |
|
| 106 | 106 | ]; |
| 107 | 107 | |
| 108 | 108 | // SQL |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | $modversion['config'][$i]['default'] = 5; |
| 515 | 515 | |
| 516 | 516 | ++$i; |
| 517 | -$modversion['config'][$i]['name'] = 'break' . $i; |
|
| 517 | +$modversion['config'][$i]['name'] = 'break'.$i; |
|
| 518 | 518 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SHOW_OTHEROPTIONS'; |
| 519 | 519 | $modversion['config'][$i]['description'] = ''; |
| 520 | 520 | $modversion['config'][$i]['formtype'] = 'line_break'; |
@@ -2,23 +2,23 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use XoopsModules\Extcal; |
| 4 | 4 | |
| 5 | -include __DIR__ . '/../../mainfile.php'; |
|
| 6 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 5 | +include __DIR__.'/../../mainfile.php'; |
|
| 6 | +require_once __DIR__.'/include/constantes.php'; |
|
| 7 | 7 | $params = ['view' => _EXTCAL_NAV_AGENDA_WEEK, 'file' => _EXTCAL_FILE_AGENDA_WEEK]; |
| 8 | 8 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
| 9 | -require_once __DIR__ . '/header.php'; |
|
| 9 | +require_once __DIR__.'/header.php'; |
|
| 10 | 10 | |
| 11 | 11 | /* ========================================================================== */ |
| 12 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
| 13 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
| 14 | -$day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
| 15 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
| 12 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
| 13 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
| 14 | +$day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
| 15 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
| 16 | 16 | |
| 17 | 17 | // Validate the date (day, month and year) |
| 18 | 18 | $dayTS = mktime(0, 0, 0, $month, $day, $year); |
| 19 | 19 | //$offset = date('w', $dayTS) - $xoopsModuleConfig['week_start_day']; |
| 20 | 20 | $offset = date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] < 7 ? date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] : 0; |
| 21 | -$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
| 21 | +$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
| 22 | 22 | $year = date('Y', $dayTS); |
| 23 | 23 | $month = date('n', $dayTS); |
| 24 | 24 | $day = date('j', $dayTS); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'nbJours' => $nbJours, |
| 52 | 52 | 'externalKeys' => 'cat_id', |
| 53 | 53 | ]; |
| 54 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 54 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 55 | 55 | /**********************************************************************/ |
| 56 | 56 | $eventsArray = $events; |
| 57 | 57 | // Formating date |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | //------------------------------------------------------------------- |
| 84 | 84 | |
| 85 | 85 | //$params['colJourWidth'] = (int)((((500-50)/$nbJours)/500*100)+.5); |
| 86 | -$params['colJourWidth'] = (int)((((500 - 50) / $nbJours) / 500 * 100) + .6); |
|
| 86 | +$params['colJourWidth'] = (int) ((((500 - 50) / $nbJours) / 500 * 100) + .6); |
|
| 87 | 87 | // echo "agenda_week : {$dayTS}<br>"; |
| 88 | 88 | $tAgenda = agenda_getEvents($eventsArray, $dayTS, $hStart, $hEnd, $mTranche, $nbJours); |
| 89 | 89 | //$exp = print_r($eventsArray, true); |
@@ -105,21 +105,21 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $navig = [ |
| 107 | 107 | 'prev' => [ |
| 108 | - 'uri' => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(), |
|
| 108 | + 'uri' => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(), |
|
| 109 | 109 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()), |
| 110 | 110 | ], |
| 111 | 111 | 'this' => [ |
| 112 | - 'uri' => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(), |
|
| 112 | + 'uri' => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(), |
|
| 113 | 113 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()), |
| 114 | 114 | ], |
| 115 | 115 | 'next' => [ |
| 116 | - 'uri' => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(), |
|
| 116 | + 'uri' => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(), |
|
| 117 | 117 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()), |
| 118 | 118 | ], |
| 119 | 119 | ]; |
| 120 | 120 | |
| 121 | 121 | // Title of the page |
| 122 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
| 122 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
| 123 | 123 | |
| 124 | 124 | // Assigning navig data to the template |
| 125 | 125 | $xoopsTpl->assign('navig', $navig); |
@@ -160,4 +160,4 @@ discard block |
||
| 160 | 160 | $xoopsTpl->assign('lang', $lang); |
| 161 | 161 | $xoopsTpl->assign('view', 'agendaweek'); |
| 162 | 162 | |
| 163 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 163 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param $options |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options)); |
| 54 | 54 | |
| 55 | 55 | /* ========================================================================== */ |
| 56 | - $year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
| 57 | - $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
| 58 | - $day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
| 59 | - $cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
| 56 | + $year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
| 57 | + $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
| 58 | + $day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
| 59 | + $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
| 60 | 60 | /* ========================================================================== */ |
| 61 | 61 | |
| 62 | 62 | // Validate the date (day, month and year) |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | 'nbEvent' => $nbEvent, |
| 90 | 90 | 'nbDays' => $nbDays, |
| 91 | 91 | ]; |
| 92 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 92 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 93 | 93 | |
| 94 | 94 | //---------------------------- |
| 95 | 95 | |
@@ -116,27 +116,27 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 118 | 118 | |
| 119 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 120 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 121 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 119 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 120 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 121 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 122 | 122 | |
| 123 | - $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>'; |
|
| 123 | + $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>'; |
|
| 124 | 124 | |
| 125 | 125 | array_shift($options); |
| 126 | 126 | array_shift($options); |
| 127 | 127 | array_shift($options); |
| 128 | 128 | |
| 129 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 129 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 130 | 130 | if (false === array_search(0, $options)) { |
| 131 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 131 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 132 | 132 | } else { |
| 133 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 133 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 134 | 134 | } |
| 135 | 135 | foreach ($cats as $cat) { |
| 136 | 136 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
| 137 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 137 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 138 | 138 | } else { |
| 139 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 139 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | 142 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param $options |
@@ -69,23 +69,23 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 71 | 71 | |
| 72 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 73 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 74 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 72 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 73 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 74 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 75 | 75 | array_shift($options); |
| 76 | 76 | array_shift($options); |
| 77 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 77 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 78 | 78 | if (false === array_search(0, $options)) { |
| 79 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 79 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 80 | 80 | } else { |
| 81 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 81 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 82 | 82 | } |
| 83 | 83 | /** @var Extcal\Category $cat */ |
| 84 | 84 | foreach ($cats as $cat) { |
| 85 | 85 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
| 86 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 86 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 87 | 87 | } else { |
| 88 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 88 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param $options |
@@ -66,22 +66,22 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 68 | 68 | |
| 69 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 70 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 71 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 69 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 70 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 71 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 72 | 72 | array_shift($options); |
| 73 | 73 | array_shift($options); |
| 74 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 74 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 75 | 75 | if (false === array_search(0, $options)) { |
| 76 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 76 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 77 | 77 | } else { |
| 78 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 78 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 79 | 79 | } |
| 80 | 80 | foreach ($cats as $cat) { |
| 81 | 81 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
| 82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 82 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 83 | 83 | } else { |
| 84 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 84 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 23 | 23 | |
| 24 | 24 | /******************************************************/ |
| 25 | 25 | /* Ajour JJD - Evenements par categries */ |
@@ -92,22 +92,22 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 94 | 94 | |
| 95 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 96 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 97 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 95 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 96 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 97 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 98 | 98 | array_shift($options); |
| 99 | 99 | array_shift($options); |
| 100 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 100 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 101 | 101 | if (false === array_search(0, $options)) { |
| 102 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 102 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 103 | 103 | } else { |
| 104 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 104 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 105 | 105 | } |
| 106 | 106 | foreach ($cats as $cat) { |
| 107 | 107 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
| 108 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 108 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 109 | 109 | } else { |
| 110 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 110 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param $options |
@@ -66,22 +66,22 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 68 | 68 | |
| 69 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 70 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 71 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 69 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 70 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 71 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 72 | 72 | array_shift($options); |
| 73 | 73 | array_shift($options); |
| 74 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 74 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 75 | 75 | if (false === array_search(0, $options)) { |
| 76 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 76 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 77 | 77 | } else { |
| 78 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 78 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 79 | 79 | } |
| 80 | 80 | foreach ($cats as $cat) { |
| 81 | 81 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
| 82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 82 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 83 | 83 | } else { |
| 84 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 84 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | $form .= '</select>'; |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | 22 | global $extcalConfig, $xoopsUser; |
| 23 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 23 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 24 | 24 | //require_once __DIR__ . '/../class/Utility.php'; |
| 25 | 25 | //require_once __DIR__ . '/../class/tableForm.php'; |
| 26 | 26 | //--------------------------------------------------------------------------- |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | // require_once __DIR__ . '/../class/config.php'; |
| 39 | 39 | |
| 40 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
| 41 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
| 42 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
| 40 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
| 41 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
| 42 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
| 43 | 43 | // require_once CALENDAR_ROOT . 'Month/Weeks.php'; |
| 44 | 44 | // require_once CALENDAR_ROOT . 'Day.php'; |
| 45 | 45 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | 'category' => $tCatSelected, |
| 129 | 129 | 'externalKeys' => 'cat_id', |
| 130 | 130 | ]; |
| 131 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 131 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 132 | 132 | } else { |
| 133 | 133 | $events = []; |
| 134 | 134 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | 'number' => $dayCalObj->thisDay(), |
| 191 | 191 | 'isSelected' => $dayCalObj->isSelected(), |
| 192 | 192 | ]; |
| 193 | - $day = $dayCalObj->thisDay(); |
|
| 193 | + $day = $dayCalObj->thisDay(); |
|
| 194 | 194 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
| 195 | 195 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
| 196 | 196 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -220,15 +220,15 @@ discard block |
||
| 220 | 220 | // Making navig data |
| 221 | 221 | $navig = [ |
| 222 | 222 | 'page' => $extcalConfig['start_page'], |
| 223 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 223 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 224 | 224 | 'name' => $timeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 225 | 225 | ]; |
| 226 | 226 | |
| 227 | 227 | $horloge = []; |
| 228 | 228 | $horloge['display'] = ('' != trim($options[11])); |
| 229 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
| 230 | - $horloge['width'] = $options[12] . 'px'; |
|
| 231 | - $horloge['height'] = $options[13] . 'px'; |
|
| 229 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
| 230 | + $horloge['width'] = $options[12].'px'; |
|
| 231 | + $horloge['height'] = $options[13].'px'; |
|
| 232 | 232 | |
| 233 | 233 | $ret = [ |
| 234 | 234 | 'imageParam' => $imageParam, |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | $imageCatHandler = xoops_getHandler('imagecategory'); |
| 276 | 276 | |
| 277 | 277 | //===================================================================== |
| 278 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
| 278 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
| 279 | 279 | |
| 280 | 280 | $k = 0; |
| 281 | 281 | $xfValue[$k] = new \XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | $xfValue[$k] = new Extcal\Form\Spin\FormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = ''); |
| 317 | 317 | $form->addElement($xfValue[$k], false); |
| 318 | 318 | //===================================================================== |
| 319 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
| 319 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
| 320 | 320 | |
| 321 | 321 | $t = [ |
| 322 | 322 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -355,9 +355,9 @@ discard block |
||
| 355 | 355 | $form->addElement($xfValue[$k], false); |
| 356 | 356 | |
| 357 | 357 | //===================================================================== |
| 358 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
| 358 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
| 359 | 359 | //--------------------------------------------------------------------- |
| 360 | - $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
| 360 | + $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
| 361 | 361 | $t = array_merge([' ' => _NONE], $t); |
| 362 | 362 | |
| 363 | 363 | $k = 11; |
@@ -442,12 +442,12 @@ discard block |
||
| 442 | 442 | // $src = $doc->createElement('src'); |
| 443 | 443 | $src = clone $tempSrc; |
| 444 | 444 | $src = $photo->appendChild($src); |
| 445 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
| 445 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
| 446 | 446 | $src->appendChild($value); |
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | // get completed xml document |
| 450 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
| 450 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
| 451 | 451 | } |
| 452 | 452 | |
| 453 | 453 | /**************************************************************************/ |
@@ -21,49 +21,49 @@ |
||
| 21 | 21 | $moduleDirName = basename(dirname(dirname(__DIR__))); |
| 22 | 22 | $moduleDirNameUpper = strtoupper($moduleDirName); |
| 23 | 23 | |
| 24 | -define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: '); |
|
| 25 | -define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: '); |
|
| 26 | -define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
| 27 | -define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
| 28 | -define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status'); |
|
| 29 | -define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
| 30 | -define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
| 31 | -define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
| 32 | -define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
| 33 | -define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
| 34 | -define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
| 35 | -define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: '); |
|
| 36 | -define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
| 37 | -define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
| 38 | -define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
| 24 | +define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: '); |
|
| 25 | +define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: '); |
|
| 26 | +define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
| 27 | +define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
| 28 | +define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status'); |
|
| 29 | +define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
| 30 | +define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
| 31 | +define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
| 32 | +define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
| 33 | +define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
| 34 | +define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
| 35 | +define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: '); |
|
| 36 | +define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
| 37 | +define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
| 38 | +define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
| 39 | 39 | |
| 40 | -define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
| 41 | -define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
| 40 | +define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
| 41 | +define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
| 42 | 42 | |
| 43 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
| 44 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
| 45 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
| 46 | -define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
| 47 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
| 48 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
| 49 | -define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
| 43 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
| 44 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
| 45 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
| 46 | +define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
| 47 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
| 48 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
| 49 | +define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
| 50 | 50 | |
| 51 | -define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
| 51 | +define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
| 52 | 52 | |
| 53 | 53 | // Error Msgs |
| 54 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
| 55 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
| 56 | -define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
| 54 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
| 55 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
| 56 | +define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
| 57 | 57 | |
| 58 | 58 | //Help |
| 59 | -define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
| 60 | -define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
| 61 | -define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of '); |
|
| 62 | -define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview'); |
|
| 59 | +define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
| 60 | +define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
| 61 | +define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of '); |
|
| 62 | +define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview'); |
|
| 63 | 63 | |
| 64 | 64 | //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__); |
| 65 | 65 | |
| 66 | 66 | //help multi-page |
| 67 | -define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer'); |
|
| 68 | -define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License'); |
|
| 69 | -define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support'); |
|
| 67 | +define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer'); |
|
| 68 | +define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License'); |
|
| 69 | +define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support'); |
|