?> </span> </td> <td><?php echo $module->position; ?> </td> <?php foreach ($modes as $device => $title) { ?> <td><a class="link" onclick="change(<?php echo $module->id; ?> , '<?php echo $device; ?> ', this);"> <?php echo MJExtManager::getImage($table[$module->id][$device]); ?> </a></td> <?php } ?> </tr> <?php } ?> </table> </body> </html>
echo $plugin->folder; ?> </td> <td><?php echo $plugin->element; ?> </td> <?php foreach ($modes as $device => $title) { ?> <td><a class="link" onclick="change(<?php echo $plugin->id; ?> , '<?php echo $device; ?> ', this);"> <?php echo MJExtManager::getImage($table[$plugin->id][$device]); ?> </a></td> <?php } ?> </tr> <?php } ?> </table> </body> </html>
require dirname(__FILE__) . '/admin_tpl/modules.php'; break; case 'view_plugins': require dirname(__FILE__) . '/admin_tpl/plugins.php'; break; case 'set_module_state': $id = JRequest::getInt('id'); $markup = JRequest::getWord('markup'); $published = MJExtManager::changeState('#__mj_modules', $id, $markup); echo MJExtManager::getImage($published); break; case 'set_plugin_state': $id = JRequest::getInt('id'); $markup = JRequest::getWord('markup'); $published = MJExtManager::changeState('#__mj_plugins', $id, $markup); echo MJExtManager::getImage($published); break; } $app->close(); } // TODO: transform into JController-based controller switch ($task) { case 'apply': saveconfig($task); break; case 'cancel': $app->redirect('index.php'); break; case 'update': update(); break;