示例#1
0
                        header('Location: ' . $return_to);
                        exit;
                    }
                } else {
                    $GO_SECURITY->delete_acl($acl_read);
                    $GO_SECURITY->delete_acl($acl_write);
                    $feedback = "<p class=\"Error\">" . $strSaveError . "</p>";
                }
            }
        }
        break;
    case 'save_custom_fields':
        if (isset($_POST['fields'])) {
            require_once $custom_fields_plugin['path'] . 'classes/custom_fields.class.inc';
            $cf = new custom_fields('ab_custom_contact_fields');
            $cf->update_record($contact_id, $_POST['fields'], $_POST['values']);
            if ($_POST['close'] == 'true') {
                header('Location: ' . $return_to);
                exit;
            }
        }
        break;
    case 'start_timer':
        $active_tab = 1;
        break;
    default:
        $require = 'edit_contact.inc';
        break;
}
if ($contact_id > 0) {
    $contact = $ab->get_contact($contact_id);
示例#2
0
                    	exit();
                    }
                    */
                } else {
                    $GO_SECURITY->delete_acl($acl_read);
                    $GO_SECURITY->delete_acl($acl_write);
                    $feedback = "<p class=\"Error\">" . $strSaveError . "</p>";
                }
            }
        }
        break;
    case 'save_custom_fields':
        if (isset($_POST['fields'])) {
            require_once $custom_fields_plugin['class_path'] . 'custom_fields.class.inc';
            $cf = new custom_fields('ab_custom_company_fields');
            $cf->update_record($company_id, $_POST['fields'], $_POST['values']);
            if ($_POST['close'] == 'true') {
                header('Location: ' . $return_to);
                exit;
            }
        }
        break;
}
//check permissions
if ($company_id > 0 && ($company = $ab->get_company($company_id))) {
    $myab = new addressbook();
    $myab->query("SELECT * FROM ab_addressbooks WHERE id='" . $ab->f('addressbook_id') . "'");
    $myab->next_record();
    $tabtable = new tabtable('company_table', $company['name'], '100%', '400', '120', '', true, 'left', 'top', 'company_form', 'vertical', $myab->f('name'));
    $tabtable->add_tab('profile', $ab_company_properties);
    if ($custom_fields_plugin) {