<?php
if (!defined('XOOPS_ROOT_PATH')) exit();

$op = isset($_GET['op']) ? $_GET['op'] : '';
$op = isset($_POST['op']) ? $_POST['op'] : $op;
$class = new multimenu($menu_num);

switch($op) {
  case "new":
    $class->im_admin_new();
    break;
  case "edit":
    $class->im_admin_edit();
    break;
  case "update":
    $class->im_admin_update();
    break;
  case "del":
    $class->im_admin_del();
    break;
  case "move":
    $class->im_admin_move();
    $class->im_admin_list();
    break;
  default:
    $class->im_admin_list();
    break;
}
?>