@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
4 | -include_once __DIR__ . '/include/constantes.php'; |
|
3 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
4 | +include_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $params = array('view' => _EXTCAL_NAV_YEAR, 'file' => _EXTCAL_FILE_YEAR); |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
7 | -include_once __DIR__ . '/header.php'; |
|
7 | +include_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | /* ========================================================================== */ |
10 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
11 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
11 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
12 | 12 | |
13 | 13 | // Getting eXtCal object's handler |
14 | 14 | $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | 'year' => $year, |
36 | 36 | 'cat' => $cat, |
37 | 37 | 'externalKeys' => 'cat_id'); |
38 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
38 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
39 | 39 | /**********************************************************************/ |
40 | 40 | $eventsArray = $events; |
41 | 41 | // Formating date |
@@ -79,17 +79,17 @@ discard block |
||
79 | 79 | // Making navig data |
80 | 80 | $navig = array( |
81 | 81 | 'prev' => array( |
82 | - 'uri' => 'year=' . $prevYear, |
|
82 | + 'uri' => 'year='.$prevYear, |
|
83 | 83 | 'name' => $prevYear), |
84 | 84 | 'this' => array( |
85 | - 'uri' => 'year=' . $year, |
|
85 | + 'uri' => 'year='.$year, |
|
86 | 86 | 'name' => $year), |
87 | 87 | 'next' => array( |
88 | - 'uri' => 'year=' . $nexYear, |
|
88 | + 'uri' => 'year='.$nexYear, |
|
89 | 89 | 'name' => $nexYear)); |
90 | 90 | |
91 | 91 | // Title of the page |
92 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
92 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
93 | 93 | |
94 | 94 | // Assigning navig data to the template |
95 | 95 | $xoopsTpl->assign('navig', $navig); |
@@ -142,4 +142,4 @@ discard block |
||
142 | 142 | $xoopsTpl->assign('lang', $lang); |
143 | 143 | $xoopsTpl->assign('view', 'year'); |
144 | 144 | |
145 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
145 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
4 | -include_once __DIR__ . '/include/constantes.php'; |
|
3 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
4 | +include_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $params = array('view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH); |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
7 | -include_once __DIR__ . '/header.php'; |
|
7 | +include_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | /* ========================================================================== */ |
10 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
11 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
12 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
11 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
12 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
13 | 13 | /* ========================================================================== */ |
14 | 14 | |
15 | 15 | $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | 'year' => $year, |
31 | 31 | 'cat' => $cat, |
32 | 32 | 'externalKeys' => 'cat_id'); |
33 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
33 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
34 | 34 | /**********************************************************************/ |
35 | 35 | |
36 | 36 | // Calculating timestamp for the begin and the end of the month |
@@ -119,17 +119,17 @@ discard block |
||
119 | 119 | // Making navig data |
120 | 120 | $navig = array( |
121 | 121 | 'prev' => array( |
122 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
122 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
123 | 123 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp())), |
124 | 124 | 'this' => array( |
125 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
125 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
126 | 126 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp())), |
127 | 127 | 'next' => array( |
128 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
128 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
129 | 129 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()))); |
130 | 130 | |
131 | 131 | // Title of the page |
132 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
132 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
133 | 133 | |
134 | 134 | // Assigning navig data to the template |
135 | 135 | $xoopsTpl->assign('navig', $navig); |
@@ -168,4 +168,4 @@ discard block |
||
168 | 168 | $xoopsTpl->assign('lang', $lang); |
169 | 169 | $xoopsTpl->assign('view', 'calmonth'); |
170 | 170 | |
171 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
171 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php'); |
|
2 | +include_once(XOOPS_ROOT_PATH.'/modules/extcal/include/constantes.php'); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @param $options |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | function bExtcalNewShow($options) |
10 | 10 | { |
11 | - include_once XOOPS_ROOT_PATH . '/modules/extcal/class/config.php'; |
|
11 | + include_once XOOPS_ROOT_PATH.'/modules/extcal/class/config.php'; |
|
12 | 12 | |
13 | 13 | // Retriving module config |
14 | 14 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -46,22 +46,22 @@ discard block |
||
46 | 46 | |
47 | 47 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
48 | 48 | |
49 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
50 | - $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"" . $options[0] . "\" type=\"text\" /> " . _MB_EXTCAL_EVENT . '<br />'; |
|
51 | - $form .= _MB_EXTCAL_TITLE_LENGTH . " : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"" . $options[1] . "\" type=\"text\" /><br />"; |
|
49 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
50 | + $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"".$options[0]."\" type=\"text\" /> "._MB_EXTCAL_EVENT.'<br />'; |
|
51 | + $form .= _MB_EXTCAL_TITLE_LENGTH." : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"".$options[1]."\" type=\"text\" /><br />"; |
|
52 | 52 | array_shift($options); |
53 | 53 | array_shift($options); |
54 | - $form .= _MB_EXTCAL_CAT_TO_USE . "<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
54 | + $form .= _MB_EXTCAL_CAT_TO_USE."<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
55 | 55 | if (array_search(0, $options) === false) { |
56 | - $form .= "<option value=\"0\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
56 | + $form .= "<option value=\"0\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
57 | 57 | } else { |
58 | - $form .= "<option value=\"0\" selected=\"selected\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
58 | + $form .= "<option value=\"0\" selected=\"selected\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
59 | 59 | } |
60 | 60 | foreach ($cats as $cat) { |
61 | 61 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
62 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\">" . $cat->getVar('cat_name') . '</option>'; |
|
62 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\">".$cat->getVar('cat_name').'</option>'; |
|
63 | 63 | } else { |
64 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\" selected=\"selected\">" . $cat->getVar('cat_name') . '</option>'; |
|
64 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\" selected=\"selected\">".$cat->getVar('cat_name').'</option>'; |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | $form .= '</select>'; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php'); |
|
2 | +include_once(XOOPS_ROOT_PATH.'/modules/extcal/include/constantes.php'); |
|
3 | 3 | |
4 | 4 | /******************************************************/ |
5 | 5 | /* Ajour JJD - Evenements par categries */ |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | global $xoopsUser, $extcalConfig; |
15 | 15 | |
16 | - include_once XOOPS_ROOT_PATH . '/modules/extcal/class/config.php'; |
|
16 | + include_once XOOPS_ROOT_PATH.'/modules/extcal/class/config.php'; |
|
17 | 17 | |
18 | 18 | // Retriving module config |
19 | 19 | // $extcalConfig = ExtcalConfig::getHandler(); |
@@ -70,22 +70,22 @@ discard block |
||
70 | 70 | |
71 | 71 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
72 | 72 | |
73 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
74 | - $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"" . $options[0] . "\" type=\"text\" /> " . _MB_EXTCAL_EVENT . '<br />'; |
|
75 | - $form .= _MB_EXTCAL_TITLE_LENGTH . " : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"" . $options[1] . "\" type=\"text\" /><br />"; |
|
73 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
74 | + $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"".$options[0]."\" type=\"text\" /> "._MB_EXTCAL_EVENT.'<br />'; |
|
75 | + $form .= _MB_EXTCAL_TITLE_LENGTH." : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"".$options[1]."\" type=\"text\" /><br />"; |
|
76 | 76 | array_shift($options); |
77 | 77 | array_shift($options); |
78 | - $form .= _MB_EXTCAL_CAT_TO_USE . "<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
78 | + $form .= _MB_EXTCAL_CAT_TO_USE."<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
79 | 79 | if (array_search(0, $options) === false) { |
80 | - $form .= "<option value=\"0\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
80 | + $form .= "<option value=\"0\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
81 | 81 | } else { |
82 | - $form .= "<option value=\"0\" selected=\"selected\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
82 | + $form .= "<option value=\"0\" selected=\"selected\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
83 | 83 | } |
84 | 84 | foreach ($cats as $cat) { |
85 | 85 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
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>'; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php'); |
|
2 | +include_once(XOOPS_ROOT_PATH.'/modules/extcal/include/constantes.php'); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @param $options |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | function bExtcalRandomShow($options) |
10 | 10 | { |
11 | - include_once XOOPS_ROOT_PATH . '/modules/extcal/class/config.php'; |
|
11 | + include_once XOOPS_ROOT_PATH.'/modules/extcal/class/config.php'; |
|
12 | 12 | |
13 | 13 | // Retriving module config |
14 | 14 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -46,22 +46,22 @@ discard block |
||
46 | 46 | |
47 | 47 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
48 | 48 | |
49 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
50 | - $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"" . $options[0] . "\" type=\"text\" /> " . _MB_EXTCAL_EVENT . '<br />'; |
|
51 | - $form .= _MB_EXTCAL_TITLE_LENGTH . " : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"" . $options[1] . "\" type=\"text\" /><br />"; |
|
49 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
50 | + $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"".$options[0]."\" type=\"text\" /> "._MB_EXTCAL_EVENT.'<br />'; |
|
51 | + $form .= _MB_EXTCAL_TITLE_LENGTH." : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"".$options[1]."\" type=\"text\" /><br />"; |
|
52 | 52 | array_shift($options); |
53 | 53 | array_shift($options); |
54 | - $form .= _MB_EXTCAL_CAT_TO_USE . "<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
54 | + $form .= _MB_EXTCAL_CAT_TO_USE."<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
55 | 55 | if (array_search(0, $options) === false) { |
56 | - $form .= "<option value=\"0\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
56 | + $form .= "<option value=\"0\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
57 | 57 | } else { |
58 | - $form .= "<option value=\"0\" selected=\"selected\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
58 | + $form .= "<option value=\"0\" selected=\"selected\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
59 | 59 | } |
60 | 60 | foreach ($cats as $cat) { |
61 | 61 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
62 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\">" . $cat->getVar('cat_name') . '</option>'; |
|
62 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\">".$cat->getVar('cat_name').'</option>'; |
|
63 | 63 | } else { |
64 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\" selected=\"selected\">" . $cat->getVar('cat_name') . '</option>'; |
|
64 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\" selected=\"selected\">".$cat->getVar('cat_name').'</option>'; |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | $form .= '</select>'; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php'); |
|
2 | +include_once(XOOPS_ROOT_PATH.'/modules/extcal/include/constantes.php'); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @param $options |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | function bExtcalUpcomingShow($options) |
10 | 10 | { |
11 | - include_once XOOPS_ROOT_PATH . '/modules/extcal/class/config.php'; |
|
11 | + include_once XOOPS_ROOT_PATH.'/modules/extcal/class/config.php'; |
|
12 | 12 | |
13 | 13 | // Retriving module config |
14 | 14 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options)); |
34 | 34 | |
35 | 35 | /* ========================================================================== */ |
36 | - $year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
37 | - $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
38 | - $day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
39 | - $cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
36 | + $year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
37 | + $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
38 | + $day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
39 | + $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
40 | 40 | /* ========================================================================== */ |
41 | 41 | |
42 | 42 | // Validate the date (day, month and year) |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | 'externalKeys' => 'cat_id', |
69 | 69 | 'nbEvent' => $nbEvent, |
70 | 70 | 'nbDays' => $nbDays); |
71 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
71 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
72 | 72 | |
73 | 73 | //---------------------------- |
74 | 74 | |
@@ -95,27 +95,27 @@ discard block |
||
95 | 95 | |
96 | 96 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
97 | 97 | |
98 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
99 | - $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"" . $options[0] . "\" type=\"text\" /> " . _MB_EXTCAL_EVENT . '<br />'; |
|
100 | - $form .= _MB_EXTCAL_TITLE_LENGTH . " : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"" . $options[1] . "\" type=\"text\" /><br />"; |
|
98 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
99 | + $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"".$options[0]."\" type=\"text\" /> "._MB_EXTCAL_EVENT.'<br />'; |
|
100 | + $form .= _MB_EXTCAL_TITLE_LENGTH." : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"".$options[1]."\" type=\"text\" /><br />"; |
|
101 | 101 | |
102 | - $form .= _MB_EXTCAL_UPCOMING_DAYS . " : <input name=\"options[2]\" size=\"5\" maxlength=\"255\" value=\"" . $options[2] . "\" type=\"text\" /><br />"; |
|
102 | + $form .= _MB_EXTCAL_UPCOMING_DAYS." : <input name=\"options[2]\" size=\"5\" maxlength=\"255\" value=\"".$options[2]."\" type=\"text\" /><br />"; |
|
103 | 103 | |
104 | 104 | array_shift($options); |
105 | 105 | array_shift($options); |
106 | 106 | array_shift($options); |
107 | 107 | |
108 | - $form .= _MB_EXTCAL_CAT_TO_USE . "<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
108 | + $form .= _MB_EXTCAL_CAT_TO_USE."<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
109 | 109 | if (array_search(0, $options) === false) { |
110 | - $form .= "<option value=\"0\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
110 | + $form .= "<option value=\"0\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
111 | 111 | } else { |
112 | - $form .= "<option value=\"0\" selected=\"selected\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
112 | + $form .= "<option value=\"0\" selected=\"selected\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
113 | 113 | } |
114 | 114 | foreach ($cats as $cat) { |
115 | 115 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
116 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\">" . $cat->getVar('cat_name') . '</option>'; |
|
116 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\">".$cat->getVar('cat_name').'</option>'; |
|
117 | 117 | } else { |
118 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\" selected=\"selected\">" . $cat->getVar('cat_name') . '</option>'; |
|
118 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\" selected=\"selected\">".$cat->getVar('cat_name').'</option>'; |
|
119 | 119 | } |
120 | 120 | } |
121 | 121 | $form .= '</select>'; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php'); |
|
2 | +include_once(XOOPS_ROOT_PATH.'/modules/extcal/include/constantes.php'); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * @param $options |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | function bExtcalDayShow($options) |
10 | 10 | { |
11 | - include_once XOOPS_ROOT_PATH . '/modules/extcal/class/config.php'; |
|
11 | + include_once XOOPS_ROOT_PATH.'/modules/extcal/class/config.php'; |
|
12 | 12 | |
13 | 13 | // Retriving module config |
14 | 14 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -46,22 +46,22 @@ discard block |
||
46 | 46 | |
47 | 47 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
48 | 48 | |
49 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
50 | - $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"" . $options[0] . "\" type=\"text\" /> " . _MB_EXTCAL_EVENT . '<br />'; |
|
51 | - $form .= _MB_EXTCAL_TITLE_LENGTH . " : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"" . $options[1] . "\" type=\"text\" /><br />"; |
|
49 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
50 | + $form .= "<input name=\"options[0]\" size=\"5\" maxlength=\"255\" value=\"".$options[0]."\" type=\"text\" /> "._MB_EXTCAL_EVENT.'<br />'; |
|
51 | + $form .= _MB_EXTCAL_TITLE_LENGTH." : <input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"".$options[1]."\" type=\"text\" /><br />"; |
|
52 | 52 | array_shift($options); |
53 | 53 | array_shift($options); |
54 | - $form .= _MB_EXTCAL_CAT_TO_USE . "<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
54 | + $form .= _MB_EXTCAL_CAT_TO_USE."<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; |
|
55 | 55 | if (array_search(0, $options) === false) { |
56 | - $form .= "<option value=\"0\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
56 | + $form .= "<option value=\"0\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
57 | 57 | } else { |
58 | - $form .= "<option value=\"0\" selected=\"selected\">" . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
58 | + $form .= "<option value=\"0\" selected=\"selected\">"._MB_EXTCAL_ALL_CAT.'</option>'; |
|
59 | 59 | } |
60 | 60 | foreach ($cats as $cat) { |
61 | 61 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
62 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\">" . $cat->getVar('cat_name') . '</option>'; |
|
62 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\">".$cat->getVar('cat_name').'</option>'; |
|
63 | 63 | } else { |
64 | - $form .= "<option value=\"" . $cat->getVar('cat_id') . "\" selected=\"selected\">" . $cat->getVar('cat_name') . '</option>'; |
|
64 | + $form .= "<option value=\"".$cat->getVar('cat_id')."\" selected=\"selected\">".$cat->getVar('cat_name').'</option>'; |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | $form .= '</select>'; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php'); |
|
2 | +include_once(XOOPS_ROOT_PATH.'/modules/extcal/include/constantes.php'); |
|
3 | 3 | |
4 | 4 | //--------------------------------------------------------------------- |
5 | 5 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
3 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
4 | 4 | |
5 | -include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
6 | -include __DIR__ . '/class/form/extcalform.php'; |
|
7 | -include __DIR__ . '/class/perm.php'; |
|
8 | -include_once __DIR__ . '/include/constantes.php'; |
|
5 | +include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
6 | +include __DIR__.'/class/form/extcalform.php'; |
|
7 | +include __DIR__.'/class/perm.php'; |
|
8 | +include_once __DIR__.'/include/constantes.php'; |
|
9 | 9 | |
10 | 10 | $permHandler = ExtcalPerm::getHandler(); |
11 | 11 | $xoopsUser = $xoopsUser ?: null; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | $params = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT); |
19 | 19 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
20 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
20 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
21 | 21 | /* ========================================================================== */ |
22 | 22 | |
23 | 23 | // Tooltips include |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | if (!isset($_GET['event'])) { |
28 | 28 | $eventId = 0; |
29 | 29 | } else { |
30 | - $eventId = (int)$_GET['event']; |
|
30 | + $eventId = (int) $_GET['event']; |
|
31 | 31 | } |
32 | 32 | if (!isset($_GET['action'])) { |
33 | 33 | $action = 'edit'; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | // Getting eXtCal object's handler |
39 | 39 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
40 | 40 | |
41 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
41 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
42 | 42 | |
43 | 43 | // Title of the page |
44 | 44 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -47,4 +47,4 @@ discard block |
||
47 | 47 | $form = $eventHandler->getEventForm('user', $action, array('event_id' => $eventId)); |
48 | 48 | $form->display(); |
49 | 49 | |
50 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
50 | +include XOOPS_ROOT_PATH.'/footer.php'; |