@@ -17,7 +17,6 @@ |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -use Punic\Exception; |
|
| 21 | 20 | use XoopsModules\Extcal; |
| 22 | 21 | |
| 23 | 22 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
@@ -17,9 +17,7 @@ |
||
| 17 | 17 | **/ |
| 18 | 18 | require_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
| 19 | 19 | |
| 20 | -use Xmf\Request; |
|
| 21 | 20 | use XoopsModules\Extcal; |
| 22 | -use XoopsModules\Extcal\Common; |
|
| 23 | 21 | |
| 24 | 22 | /** |
| 25 | 23 | * Class Utility |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | // Category selectbox |
| 153 | 153 | //<option style="background-color:#00FFFF;">VARCHAR</option> |
| 154 | 154 | |
| 155 | - $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 155 | + $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 156 | 156 | $catsList = $catHandler->getAllCat($xoopsUser); |
| 157 | 157 | |
| 158 | 158 | $t = []; |
@@ -162,11 +162,11 @@ discard block |
||
| 162 | 162 | $cat_color = $catList->getVar('cat_color'); |
| 163 | 163 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
| 164 | 164 | $cat = '' |
| 165 | - . "<div style='float:left; margin-left:5px;'>" |
|
| 166 | - . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 167 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 168 | - . " {$name}" |
|
| 169 | - . '</div>'; |
|
| 165 | + . "<div style='float:left; margin-left:5px;'>" |
|
| 166 | + . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 167 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 168 | + . " {$name}" |
|
| 169 | + . '</div>'; |
|
| 170 | 170 | |
| 171 | 171 | $t[] = $cat; |
| 172 | 172 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | { |
| 63 | 63 | global $xoopsUser; |
| 64 | 64 | |
| 65 | - $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 65 | + $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 66 | 66 | |
| 67 | 67 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 68 | 68 | |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | new Calendar_Day( |
| 169 | 169 | date('Y', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
| 170 | 170 | date('n', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
| 171 | - date('j', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))) |
|
| 171 | + date('j', xoops_getUserTimestamp(time(), $timeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))) |
|
| 172 | 172 | ), |
| 173 | 173 | ]; |
| 174 | 174 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | { |
| 112 | 112 | global $xoopsUser; |
| 113 | 113 | // Category selectbox |
| 114 | - $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 114 | + $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 115 | 115 | |
| 116 | 116 | $catsList = $catHandler->getAllCat($xoopsUser); |
| 117 | 117 | $catSelect = new \XoopsFormSelect('', $name, $cat); |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | // Category selectbox |
| 140 | 140 | //<option style="background-color:#00FFFF;">VARCHAR</option> |
| 141 | 141 | |
| 142 | - $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 142 | + $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 143 | 143 | $catsList = $catHandler->getAllCat($xoopsUser); |
| 144 | 144 | |
| 145 | 145 | $t = []; |
@@ -149,11 +149,11 @@ discard block |
||
| 149 | 149 | $cat_color = $catList->getVar('cat_color'); |
| 150 | 150 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
| 151 | 151 | $cat = '' |
| 152 | - . "<div style='float:left; margin-left:5px;'>" |
|
| 153 | - . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 154 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 155 | - . " {$name}" |
|
| 156 | - . '</div>'; |
|
| 152 | + . "<div style='float:left; margin-left:5px;'>" |
|
| 153 | + . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 154 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 155 | + . " {$name}" |
|
| 156 | + . '</div>'; |
|
| 157 | 157 | |
| 158 | 158 | $t[] = $cat; |
| 159 | 159 | } |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | |
| 436 | 436 | $user = isset($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser'] : null; |
| 437 | 437 | /** @var CategoryHandler $catHandler */ |
| 438 | - $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 438 | + $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
|
| 439 | 439 | if ($catHandler->haveSubmitRight($user)) { |
| 440 | 440 | $view = _EXTCAL_NAV_NEW_EVENT; |
| 441 | 441 | if (in_array($view, $visibleTabs)) { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
| 21 | 21 | |
| 22 | - // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
| 22 | + // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
| 23 | 23 | require_once __DIR__ . '/perm.php'; |
| 24 | 24 | require_once __DIR__ . '/time.php'; |
| 25 | 25 | require_once __DIR__ . '/config.php'; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
| 21 | 21 | |
| 22 | - // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
| 22 | + // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * Class Eventmember. |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | // defined('XOOPS_ROOT_PATH') || exit('Restricted access.'); |
| 21 | 21 | |
| 22 | - // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
| 22 | + // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
| 23 | 23 | require_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
| 24 | 24 | |
| 25 | 25 | /** |