예제 #1
0
        $tp = new templates();
        if ($tp->has_oo_templates($GO_SECURITY->user_id)) {
            echo '<td class="ModuleIcons" nowrap>';
            echo '<a target="_blank" href="' . $GO_MODULES->url . 'templates/download_oo_template.php?contact_id=' . $contact_id . '"><img src="' . $GO_THEME->images['new_letter'] . '" border="0" height="32" width="32" /><br />' . $ab_oo_doc . '</td>';
            echo '</td>';
        }
    }
    $tabtable->add_tab('read_permissions', $strReadRights);
    $tabtable->add_tab('write_permissions', $strWriteRights);
}
echo '</tr></table>';
$active_tab = isset($_REQUEST['active_tab']) ? $_REQUEST['active_tab'] : null;
if (isset($active_tab)) {
    $tabtable->set_active_tab($active_tab);
}
$link_back = cleanup_url($link_back . '&' . $tabtable->get_link_back());
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
$tabtable->print_head();
if ($tabtable->get_active_tab_id() > 0) {
    $catagory_id = $tabtable->get_active_tab_id();
    $active_tab_id = 'custom_fields';
} else {
    $active_tab_id = $tabtable->get_active_tab_id();
}
switch ($active_tab_id) {
    case 'read_permissions':
        print_acl($contact['acl_read']);
        echo '<br />';
        echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
        $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';");
        break;