$projects = new projects(); $xajax = $xajax_todo->getJavascript('includes/xajax'); $pr_formvars = new project_foo(); if (!empty($_POST['formsend'])) { /* Wenn das Eintrag gelöschet werden soll, dann brauchen wir * es zuerst nicht auf $_POST Variablen auswerten */ if (!empty($_POST['deleteprojectdata']) && !empty($_POST['projectid'])) { if ($projects->isDeletable($_POST['projectid'])) { if (!$projects->deleteProject($_POST['projectid'])) { $erg = $projects->getPostVars(); $pr_formvars = $projects->project_foo; if (!$erg) { foreach ($projectid->errors as $errnumber) $errors[] = isset($dict[$errnumber]) ? $dict[$errnumber] : $errnumber; } } $copystyle = 'none'; } } elseif (!empty($_POST['copyprojectdata']) && !empty($_POST['projectid'])) { if (!$projects->copyProject($_POST['projectid'])) { $pr_formvars = $projects->project_foo;