function closed_panel($idx)
{
    //calculate the panel name
    $pvar = 's_' . strtolower($GLOBALS['s_page']) . '_panels';
    $GLOBALS[$pvar][$idx][2] = 'close';
    $icon = get_icon_path(DATAPATH, ICON_SIZE) . 'open.png';
    $html = get_closed_panel($GLOBALS[$pvar][$idx][1], $idx, $icon);
    set_customize_cookie($GLOBALS['s_cust']);
    header('Content-Type: text/html;charset=' . $GLOBALS['charset']);
    echo $html;
}
Ejemplo n.º 2
0
    if (isset($_POST['dt_enter_insert']) || isset($_POST['dt_enter_ready'])) {
        if (isset($_POST['dt_config_more']) && $s_cust['enter']['another_row'] == FALSE || !isset($_POST['dt_config_more']) && $s_cust['enter']['another_row'] == TRUE) {
            // 'insert another row'-setting is changed
            $s_cust['enter']['another_row'] = isset($_POST['dt_config_more']);
            $customize_changed = TRUE;
        }
    } else {
        if (isset($_POST['dt_config_as_new']) && $s_cust['enter']['as_new'] == FALSE || !isset($_POST['dt_config_as_new']) && $s_cust['enter']['as_new'] == TRUE) {
            // 'foreign key lookup'-setting is changed
            $s_cust['enter']['as_new'] = isset($_POST['dt_config_as_new']);
            $customize_changed = TRUE;
        }
    }
}
if ($customize_changed == TRUE) {
    set_customize_cookie($s_cust);
}
if (isset($s_edit_where) && count($s_edit_where) > 0) {
    include './inc/handle_editdata.inc.php';
}
//
// select on the dt_enter-panel was pushed
//
if (isset($_POST['dt_enter_select'])) {
    $s_enter_name = get_request_data('dt_enter_name');
    if (is_array($s_fields[$s_enter_name])) {
        $s_fields = get_table_defaults_sources($s_enter_name, $s_fields);
        $s_fields = get_table_computed_sources($s_enter_name, $s_fields);
        $s_enter_values = init_enter_values($s_fields[$s_enter_name]);
    }
}