Exemplo n.º 1
0
require_once "inc/stdLib.php";
include "inc/crmLib.php";
include_once "inc/UserLib.php";
$usr = getUserStamm($_SESSION["loginCRM"]);
$ALabels = getLableNames();
$freitext = $_POST["freitext"];
if (!$_POST["format"] || empty($_POST["format"])) {
    $_POST["format"] = $usr["etikett"];
}
if (!$_POST["format"]) {
    $form = $ALabels[0]["id"];
} else {
    $form = $_POST["format"];
}
$label = getOneLable($form);
if ($_POST["print"]) {
    $lableformat = array("paper-size" => $label["papersize"], 'name' => $label["name"], 'metric' => $label["metric"], 'marginLeft' => $label["marginleft"], 'marginTop' => $label["margintop"], 'NX' => $label["nx"], 'NY' => $label["ny"], 'SpaceX' => $label["spacex"], 'SpaceY' => $label["spacey"], 'width' => $label["width"], 'height' => $label["height"], 'font-size' => 6);
    require_once 'inc/PDF_Label.php';
    $tmp = explode(":", $_POST["xy"]);
    $SX = substr($tmp[0], 1);
    $SY = substr($tmp[1], 1);
    $pdf = new PDF_Label($lableformat, $label["metric"], $SX, $SY);
    $pdf->Open();
    unset($tmp);
    if ($SX != 1 or $SY != 1) {
        $pdf->AddPage();
    }
    $daten = getCSVData();
    if ($daten == false) {
        // Fehler beim Laden der Daten, entsprechend Abbrechen
Exemplo n.º 2
0
        $anrede = $data["greeting"];
        $name = $data["name"];
        $name1 = $name;
        $name2 = $data["department_1"];
        $kontakt = $data["contact"];
        $strasse = $data["street"];
        $land = $data["country"];
        $plz = $data["zipcode"];
        $ort = $data["city"];
        $telefon = $data["phone"];
        $fax = $data["fax"];
        $email = $data["email"];
        $kdnr = $data["customernumber"];
    }
}
$label = getOneLable($etikett);
if ($_POST["print"]) {
    $platzhalter = array("ANREDE" => "anrede", "TITEL" => "titel", "TEXT" => "freitext", "NAME" => "name", "NAME1" => "name1", "NAME2" => "name2", "STRASSE" => "strasse", "PLZ" => "plz", "ORT" => "ort", "LAND" => "land", "KONTAKT" => "kontakt", "FIRMA" => "firma", "ID" => "id", "KDNR" => "kdnr", "EMAIL" => "email", "TEL" => "telefon", "FAX" => "fax");
    foreach ($data as $key => $val) {
        $key = strtoupper($key);
        if (substr($key, 0, 8) == "VC_CVAR_") {
            $platzhalter[$key] = $key;
            ${$key} = $val;
        }
    }
    $lableformat = array("paper-size" => $label["papersize"], 'name' => $label["name"], 'metric' => $label["metric"], 'marginLeft' => $label["marginleft"], 'marginTop' => $label["margintop"], 'NX' => $label["nx"], 'NY' => $label["ny"], 'SpaceX' => $label["spacex"], 'SpaceY' => $label["spacey"], 'width' => $label["width"], 'height' => $label["height"], 'font-size' => 6);
    require_once 'inc/PDF_Label.php';
    $tmp = explode(":", $_POST["xy"]);
    $SX = substr($tmp[0], 1);
    $SY = substr($tmp[1], 1);
    $pdf = new PDF_Label($lableformat, $label["metric"], $SX, $SY);
Exemplo n.º 3
0
<?php

require_once "inc/stdLib.php";
include "inc/crmLib.php";
$menu = $_SESSION['menu'];
$head = mkHeader();
if ($_POST["hole"]) {
    unset($_POST["Text"]);
    $label = getOneLable($_POST["format"]);
    $id = $label["id"];
    $format = $id;
    $name = $label["name"];
    $cust = $label["cust"];
    $papersize = $label["papersize"];
    $metric = $label["metric"];
    $margintop = $label["margintop"];
    $marginleft = $label["marginleft"];
    $spacex = $label["spacex"];
    $spacey = $label["spacey"];
    $nx = $label["nx"];
    $ny = $label["ny"];
    $width = $label["width"];
    $height = $label["height"];
    $Ssel = "S" . $nx;
    $Zsel = "Z" . $ny;
    $Psel = "P" . $papersize;
    $tmp = $metric;
    ${$Ssel} = " selected";
    ${$Zsel} = " selected";
    ${$Psel} = " selected";
    ${$tmp} = " selected";