@@ 136-146 (lines=11) @@ | ||
133 | } |
|
134 | break; |
|
135 | ||
136 | case 'new_listing': |
|
137 | $listingHandler = $xoops->getModuleHandler('listing', 'alumni'); |
|
138 | $xoops->header(); |
|
139 | $adminObject = new Xoops\Module\Admin(); |
|
140 | $adminObject->displayNavigation('alumni.php'); |
|
141 | $adminObject->addItemButton(AlumniLocale::LIST_CATS, 'alumni.php'); |
|
142 | echo $adminObject->renderButton('left', ''); |
|
143 | $obj = $listingHandler->create(); |
|
144 | $form = $xoops->getModuleForm($obj, 'listing'); |
|
145 | $form->display(); |
|
146 | break; |
|
147 | ||
148 | case 'save_listing': |
|
149 | if (!$xoops->security()->check()) { |
@@ 148-158 (lines=11) @@ | ||
145 | ||
146 | break; |
|
147 | ||
148 | case 'new_category': |
|
149 | $xoops->header(); |
|
150 | $adminObject = new \Xoops\Module\Admin(); |
|
151 | $adminObject->displayNavigation('category.php'); |
|
152 | $adminObject->addItemButton(AlumniLocale::LIST_CATS, 'category.php'); |
|
153 | echo $adminObject->renderButton('left', ''); |
|
154 | $categoriesHandler = $xoops->getModuleHandler('category', 'alumni'); |
|
155 | $obj = $categoriesHandler->create(); |
|
156 | $form = $xoops->getModuleForm($obj, 'category'); |
|
157 | $form->display(); |
|
158 | break; |
|
159 | ||
160 | case 'save_category': |
|
161 | if (!$xoops->security()->check()) { |