$msgtmp = explode('::', $rc); $rc = $msgtmp[1]; $msg = ".:error:. .:save:. ({$msgtmp['0']})"; } $btn2 = "<input type='submit' class='sichernneu' name='neu' value='.:save:. .:new:.'>"; vartplP($t, $_POST, $msg, $btn1, $btn2, $btn3, $rc, "red", 1, 3); } } else { if ($_POST["edit"] > 0 || $_GET["edit"] > 0) { if ($_POST["id"]) { $id = $_POST["id"]; } else { $id = $_GET["id"]; } if (!$id) { header("location:" . $_SESSION['baseurl'] . "crm/personen1.php?Q={$Q}"); } $daten = getKontaktStamm($id); $daten["Quelle"] = $Q; $msg = "Edit: <b>{$id}</b>"; $btn3 = "<input type='submit' class='sichern' name='save' value='.:save:. .:update:.' tabindex='25'>"; $btn1 = "<input type='submit' class='anzeige' name='show' value='.:view:.'>"; $btn2 = "<input type='submit' class='sichernneu' name='neu' value='.:save:. .:new:.'>"; vartplP($t, $daten, $msg, $btn1, $btn2, $btn3, "cp_givenname", "white", 0, 3); } else { $msg = ".:person:. .:new:."; leertplP($t, $_GET, $msg, 3, true, $Q); } } } $t->Lpparse("out", array("pers1"), $_SESSION['countrycode'], "firma");
insertCSVData($save, $zeile["cp_id"]); if ($_POST["FID1"]) { $insk = "<input type='checkbox' name='kontid[]' value='" . $zeile["cp_id"] . "'>"; $js = ''; } else { $js = 'showK(' . $zeile["cp_id"] . ',"' . $zeile["tbl"] . '");'; //showK({PID},'{TBL}') $insk = ''; } if ($i < $_SESSION['listLimit']) { $t->set_var(array(js => $js, Name => $zeile["cp_name"] . ", " . $zeile["cp_givenname"], Plz => $zeile["cp_zipcode"], Ort => $zeile["cp_city"], Telefon => $zeile["cp_phone1"], eMail => $zeile["cp_email"], Firma => $zeile["name"], insk => $insk)); $t->parse("Block", "Liste", true); $i++; if ($i >= $_SESSION['listLimit']) { $t->set_var(array(report => $_SESSION['listLimit'] . " von " . count($daten) . " Treffern")); } } echo "."; } echo "x"; $t->set_var(array(DEST => $dest, QUELLE => $Quelle, Q => $Quelle, snd => $snd, FID => $_POST["FID1"])); } else { $msg = "Sorry, not found."; $btn1 = ""; vartplP($t, $_POST, $msg, $btn1, $btn1, $btn1, "Anrede", "white", $_POST["FID1"], 1); } } } else { leertplP($t, $_GET["fid"], "", 1, false, $Quelle, $_GET['ui']); } $t->Lpparse("out", array("pers1"), $_SESSION['countrycode'], "firma");