$feedback = "<p class=\"Error\">" . $ab_group_exists . "</p>"; } } } else { if ($existing_group) { $feedback = "<p class=\"Error\">" . $ab_group_exists . "</p>"; } elseif (!$ab->add_group($_POST['addressbook_id'], $name)) { $feedback = "<p class=\"Error\">" . $strSaveError . "</p>"; } else { header('Location: ' . $return_to); exit; } } } } if ($group_id > 0 && ($group = $ab->get_group($group_id))) { $name = $group['name']; //create a tabbed window $tabtable = new tabtable('group', $contacts_group, '400', '120', '120', '', true); } else { $tabtable = new tabtable('group', $ab_new_group, '400', '120', '120', '', true); $name = isset($_REQUEST['name']) ? smart_strip($_REQUEST['name']) : ''; } require $GO_THEME->theme_path . "header.inc"; $tabtable->print_head(); ?> <form name="group_form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <input type="hidden" name="addressbook_id" value="<?php