예제 #1
0
function imc_list_row($label, $name, $selected_id = null, $submit_on_change = false)
{
    echo "<tr><td class='label'>{$label}</td><td>";
    $options = array('select_submit' => $submit_on_change);
    echo array_selector($name, $selected_id, get_imc(), $options);
    echo "</td></tr>\n";
}
예제 #2
0
        }
        end_row();
    }
    end_table(1);
    div_end();
    div_end();
    br();
}
start_form();
$selected_id = $_POST['imc'];
if (db_has_salesman()) {
    div_start('sample');
    start_table(TABLESTYLE_NOBORDER);
    start_row();
    if (isset($_POST['imc'])) {
        $_POST['sales_id'] = key(get_imc());
    }
    imc_list_cells(_("IMC:"), 'imc', null, false, true);
    text_cells(_("#:"), 'customNum');
    submit_cells('Search', _("Search"), '', _('Refresh Inquiry'), 'default');
    hidden('sales_id', $_POST['sales_id']);
    end_row();
    end_table();
    div_end();
    if (get_post('_show_inactive_update')) {
        $Ajax->activate('imc');
        set_focus('imc');
    }
} else {
    display_error("Enter some IMC/Salesman.");
    hidden('imc');