echo '<form name="add" method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" value="' . $contact["source_id"] . '" name="source_id" />'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; echo '<input type="hidden" name="contact_id" value="' . $contact_id . '" />'; echo '<table border="0"><tr>'; $title = $contact_id > 0 ? $ab_contact : $contacts_add; $tabtable = new tabtable('contact_table', $title, '100%', '400', '120', '', true, 'left', 'top', 'add', 'vertical'); if ($contact_id > 0) { $tabtable->add_tab('profile', $contact_profile); if ($custom_fields_plugin) { require_once $custom_fields_plugin['path'] . 'classes/custom_fields.class.inc'; $cf = new custom_fields('ab_custom_contact_fields'); if ($cf->get_catagories($GO_SECURITY->user_id) > 0) { while ($cf->next_record()) { $tabtable->add_tab($cf->f('id'), $cf->f('name')); } } } $projects_module = $GO_MODULES->get_module('projects'); if ($projects_module) { if ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $projects_module['acl_read']) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $projects_module['acl_write'])) { $tabtable->add_tab('projects', $lang_modules['projects']); } } $notes_module = $GO_MODULES->get_module('notes'); if ($notes_module) { if ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $notes_module['acl_read']) || $GO_SECURITY->has_permission($GO_SECURITY->user_id, $notes_module['acl_write'])) { $tabtable->add_tab('notes', $lang_modules['notes']); echo '<td class="ModuleIcons" nowrap>';