" /> <?php $tabtable = new tabtable('export_tab', $contacts_import, '460', '400', '120', '', true); $tabtable->print_head(); echo '<table border="0" cellpadding="5"><tr><td>'; require_once $GO_CONFIG->class_path . "/phpvnconv/phpvnconv.class.inc"; $vnconv = new phpVnconv(); $vnconv->set_to('utf8'); $vnconv->set_from($_POST['encoding'] == "none" ? '' : $_POST['encoding']); if ($task == 'import') { $contact_groups[''] = 0; $group_mode = isset($_POST['group_mode']) ? $_POST['group_mode'] : 'group_name'; $group_id = isset($_POST['group_id']) ? $_POST['group_id'] : 'group_id'; if ($group_mode == 'file') { $ab->get_groups($_POST['addressbook_id']); while ($ab->next_record()) { $contact_groups[$ab->f('name')] = $ab->f('id'); } } switch ($_POST['file_type']) { case 'vcf': require_once $GO_MODULES->path . "classes/vcard.class.inc"; $vcard = new vcard(); $success = $vcard->import($_POST['import_file'], $GO_SECURITY->user_id, $_POST['addressbook_id'], $vnconv); unlink($_POST['import_file']); if ($success) { echo $contacts_import_success; } else { echo $ab_import_failed; }
echo '<tr><td class="TableHead2"> </td>'; if ($multiselect) { echo '<td class="TableHead2" width="16"><input type="checkbox" name="dummy" value="dummy" onclick="javascript:invert_selection()" /></td>'; } echo "<td class=\"TableHead2\" nowrap><a class=\"TableHead2\" href=\"javascript:sort('name')\">" . $strName; if ($ab_settings['sort_contacts_field'] == "name") { echo $image_string; } echo "</a></td>\n"; echo "<td class=\"TableHead2\" nowrap><a class=\"TableHead2\" href=\"javascript:sort('email')\">" . $strEmail; if ($ab_settings['sort_contacts_field'] == "email") { echo $image_string; } echo "</a></td>\n"; echo "</tr>\n"; if ($group_count = $ab2->get_groups($addressbook_id)) { while ($ab2->next_record()) { if (in_array($ab2->f('id'), $_SESSION['contacts_expanded'])) { echo "<tr class=\"Table4\"><td><a href=\"javascript:expand_group(" . $ab2->f('id') . ")\"><img src=\"" . $GO_THEME->images['min_node'] . "\" border=\"0\" /></a></td><td><input type=\"checkbox\" name=\"dummy\" value=\"dummy\" onclick=\"javascript:select_group('" . $ab2->f('id') . "')\" /></td><td colspan=\"4\">" . $ab2->f('name') . "</td></tr>"; echo '<tr><td colspan="99" height="1"><img src="' . $GO_THEME->images['cccccc'] . '" border="0" height="1" width="100%" /></td></tr>'; if ($ab1->get_contacts_group($addressbook_id, $ab2->f('id'), $ab_settings['sort_contacts_field'], $ab_settings['sort_contacts_order']) > 0) { echo '<input type="hidden" name="group_start_' . $ab2->f('id') . '" />'; while ($ab1->next_record()) { $check = ""; $class = 'Table1'; if ($pass_value == 'email') { if ($ab1->f("email") != "") { $key = array_search($ab1->f("email"), $addresses); } else { $key = false; }