Exemplo n.º 1
0
            if ($phone->updateDataFromInternalArray($nr)) {
                $bSaveOk = TRUE;
            }
        }
        if ($bSaveOk) {
            header('location:phone_list.php' . URL_REDIRECT_APPEND . '&user_origin=' . $user_origin . '&nr=' . $nr);
            exit;
        } else {
            echo "<p>" . $phone->getLastQuery() . "<p>{$LDDbNoSave}.";
        }
    } else {
        $error = 1;
    }
}
if ($user_origin == 'pers' && $nr) {
    if (!$employee->loadPersonellData($nr)) {
        $mode = 'save';
    } elseif ($employee->PhoneKey()) {
        $mode = 'update';
    }
}
?>

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">

<?php 
html_rtl($lang);
?>
	<HEAD>
<?php 
echo setCharSet();
Exemplo n.º 2
0
            if ($error) {
                header("location: {$thisfile}" . URL_REDIRECT_APPEND . "&personell_nr={$personell_nr}&error=1");
                exit;
            }
        } else {
            $person_obj->setPID($pid);
            if ($data =& $person_obj->BasicDataArray($pid)) {
                //while(list($x,$v)=each($data))	$$x=$v;
                extract($data);
            }
            # Get the citytown name
            $addr_citytown_name = $person_obj->CityTownName($addr_citytown_nr);
        }
    } elseif ($personell_nr) {
        # Load personnel data
        $personell_obj->loadPersonellData($personell_nr);
        if ($personell_obj->is_loaded) {
            $zeile =& $personell_obj->personell_data;
            extract($zeile);
            # Get insurance firm name
            $insurance_firm_name = $pinsure_obj->getFirmName($insurance_firm_id);
            $full_pnr = $personell_nr;
        }
    }
}
# Load the wards info
$ward_obj = new Ward();
$items = 'nr,name';
$ward_info =& $ward_obj->getAllWardsItemsObject($items);
if ($update) {
    $breakfile = 'personell_register_show.php' . URL_APPEND . '&personell_nr=' . $personell_nr;