</head>
<body onload="init()">
<!-- header //-->
<?php 
require DIR_WS_INCLUDES . 'header.php';
?>
<!-- header_eof //-->

<!-- body_text //-->
<?php 
$pid = (int) $_REQUEST['id'];
if ($pid == 0) {
    $pid = -1;
}
$top_menu = getTopMenus($pid);
$sub_menus = getSubMenus($pid);
?>
<table align="center" cellpadding="0" cellspacing="0" width="95%">
<tr>
	<td><?php 
echo zen_draw_separator('pixel_trans.gif', 1, 10);
?>
</td>
</tr>
<tr>
<td>
  <a class="pageHeading" target="_top" href="<?php 
echo zen_href_link(FILENAME_ADDON_MODULES_ADMIN, 'module=' . FILENAME_EASY_ADMIN . '/altnavi') . '&id=' . $top_menu[0]['id'];
?>
"><?php 
echo $top_menu[0]['name'];
      <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td class="pageHeading">&nbsp;</td>
        </tr>
        <tr class="infoBoxHeading">
<?php 
if ($action == "sub-add") {
    $top_menu_id = $topmenuid;
    $sub_menu_id = "";
    $sub_menu_name = "";
    $sub_menu_url = "";
    $sub_menu_order = "";
    $info = TEXT_INPUT_ADD;
} else {
    if ($submenuid > 0) {
        $menu = getSubMenus($topmenuid, $submenuid);
        if (count($menu)) {
            $top_menu_id = $topmenuid;
            $sub_menu_id = $menu[0]['id'];
            $sub_menu_name = $menu[0]['name'];
            $sub_menu_url = $menu[0]['url'];
            $sub_menu_order = $menu[0]['order'];
            $info = $sub_menu_name;
        } else {
            $submenuid = 0;
        }
    } else {
        $submenuid = 0;
    }
}
if ($action == "sub-add" || $submenuid > 0) {