示例#1
0
if ($dd[10] == 'test') {
    echo '<font color="green">TEST OK</font>';
    exit;
}
if ($dd[10] == 'country') {
    // Orcamento
    require "_class/_class_ajax_pais.php";
    $bd = new country();
    $desc = $dd[1];
    $proto = $dd[11];
    $target = round($dd[2]);
    if (strlen($desc) > 0) {
        $bd->country_iten_insert($proto, $desc, $target);
    }
    if ($dd[12] == 'DEL' and strlen($dd[0]) > 0) {
        $bd->country_iten_del($dd[0], $proto);
        echo $bd->country_list($proto);
    } else {
        echo $bd->country_list($proto);
    }
}
if ($dd[10] == 'budget') {
    // Or�amento
    require "_class/_class_budget.php";
    $bd = new budget();
    $quan = round($dd[2]);
    $valr = round($dd[3] * 100) / 100;
    $desc = $dd[1];
    $proto = $dd[11];
    if ($quan > 0 and $valr > 0 and strlen($proto) > 0) {
        $bd->budget_iten_insert($proto, $desc, $quan, $valr, $finan);