Exemple #1
0
function insLable($data)
{
    $data["id"] = mknewLable();
    $data["name"] = $data["custname"];
    $data["cust"] = "C";
    return updLable($data);
}
    ${$tmp} = " selected";
    $Textzeilen = count($label["Text"]);
    if ($Textzeilen > 0) {
        $i = 0;
        unset($Text);
        foreach ($label["Text"] as $row) {
            $Text[] = $row["zeile"];
            $tmp = "SG" . $row["font"];
            ${$tmp}[$i] = " selected";
            $i++;
        }
    }
} else {
    if ($_POST["ok"] || $_POST["csave"]) {
        if ($_POST["ok"]) {
            updLable($_POST);
            $id = $_POST["id"];
            $format = $_POST["format"];
        } else {
            $id = insLable($_POST);
            $format = $id;
        }
        $margintop = $_POST["margintop"];
        $marginleft = $_POST["marginleft"];
        $spacex = $_POST["spacex"];
        $spacey = $_POST["spacey"];
        $nx = $_POST["nx"];
        $cust = $_POST["cust"];
        $name = $_POST["name"];
        $ny = $_POST["ny"];
        $width = $_POST["width"];