Ejemplo n.º 1
0
            $errorstr = ($errorstr ? $errorstr . ', ' : '') . 'Fehler beim Loeschen der Firma/Adresse:' . $adresse_obj->errormsg;
        }
    }
    echo '
	<script language="JavaScript1.2" type="text/javascript">
		parent.frames[0].location.reload();
	</script>';
}
//Loeschen einer Organisationseinheit
if (isset($_GET['deleteorganisationseinheit'])) {
    if (!$rechte->isBerechtigt('basis/firma:begrenzt', null, 'suid')) {
        die('Sie haben keine Berechtigung fuer diese Aktion');
    }
    if (!empty($firma_organisationseinheit_id)) {
        $firma = new firma();
        if (!$firma->deleteorganisationseinheit($firma_organisationseinheit_id)) {
            $errorstr = ($errorstr ? $errorstr . ', ' : '') . 'Fehler beim Loeschen Firma/Organisation:' . $firma->errormsg;
        }
    } else {
        $errorstr = ($errorstr ? $errorstr . ', ' : '') . 'Fehler beim Loeschen Firma/Organisation : ID fehlt';
    }
    $tabselect = 1;
}
if (isset($_GET['deletemobilitaetsprogramm'])) {
    if (!$rechte->isBerechtigt('basis/firma:begrenzt', null, 'suid')) {
        die('Sie haben keine Berechtigung fuer diese Aktion');
    }
    if (!empty($mobilitaetsprogramm_code)) {
        $firma = new firma();
        if (!$firma->deletemobilitaetsprogramm($firma_id, $mobilitaetsprogramm_code)) {
            $errorstr = ($errorstr ? $errorstr . ', ' : '') . 'Fehler beim Loeschen Firma/Mobilitaetsprogramm:' . $firma->errormsg;