break; } require $GO_THEME->theme_path . "header.inc"; ?> <form name="add" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <input type="hidden" name="close" value="false" /> <input type="hidden" name="task" value="" /> <input type="hidden" value="<?php echo $bookmark_id; ?> " name="bookmark_id" /> <?php if ($bookmark_id > 0 && ($bookmark = $bookmarks->get_bookmark($bookmark_id))) { $catagory_id = $bookmark['catagory_id']; $name = $bookmark['name']; $URL = $bookmark['URL']; $check = $bookmark['new_window'] == '1' ? true : false; $tabtable = new tabtable('bookmarks_tab', $name, '500', '400', '120', '', true); $tabtable->add_tab('properties', $strProperties); $tabtable->add_tab('read_permissions', $strReadRights); $tabtable->add_tab('write_permissions', $strWriteRights); } else { $catagory_id = isset($_REQUEST['catagory_id']) ? $_REQUEST['catagory_id'] : '0'; $name = isset($_POST['name']) ? $_POST['name'] : ''; $URL = isset($_POST['URL']) ? $_POST['URL'] : 'http://'; $check = isset($_POST['new_window']) ? true : false; $private = isset($_POST['private']) ? true : false; $tabtable = new tabtable('bookmarks_tab', $bm_add_bookmark, '400', '400', '120', '', true);