Wissensdatenbank

04c Kartenvorlagen Editor

Sie sind hier:

Zugriffsrechte

  • Manager: Seite steht nicht zur Verfügung
  • Supervisor: Seite steht nicht zur Verfügung
  • Administrator: Seite steht uneingeschränkt zur Verfügung

Überblick

noch kein Kartenlayout zugewiesen

Abb. 1: keine Karten-Templates zugewiesen
  • Unit wechseln: Wählen Sie hier die Unit-ID aus, der Sie ein Kartenlayout zuweisen wollen.
  • Unit bearbeiten: siehe Unit bearbeiten -> Unit Karten

Kartenlayout zugewiesen

Wenn der ausgewählten Unit-ID unter Unit bearbeiten bereits mindestens ein Kartenlayout zugewiesen wurde, kann dieses nun ausgewählt und per PHP-Code konfiguriert werden.

Abb. 2: Karten-Template zugewiesen
  • Unit wechseln: Wählen Sie hier die Unit-ID aus, der Sie ein Kartenlayout zuweisen wollen.
  • Kartenlayout: Wählen Sie hier das Kartenlayout aus, das Sie unter Unit Kartenvorlagen hochgeladen haben und nun konfigurieren wollen.
  • PHP Code zur Konfiguration: In dieses Feld muss unten aufgeführter PHP-Code angepasst werden. ACHTUNG! Es darf nicht mehr der Code aus der [Firma]_badge_Data.php kopiert werden.
  • Änderungen speichern

PHP Code zur Konfiguration

Der folgende Code muss komplett in das Feld „PHP Code zur Konfiguration“ einkopiert werden. Die Werte können dann von der „Firma_badge_Data.php“ oder „Firma_paper_Data.php“ übernommen werden. Alle Felder, die nicht benötigt werden, werden auskommentiert („//“ vor den X-Wert; z. B. siehe unten bei //$firstname_x).

<?php
 // Kind of Document
 // Can be "badge" or "paper" or any other word. It's for the file name. "badge" is the default one.
 $document_kind = 'badge';

 // Worker's IDNR
 $uid_x = 200; // Comment this if you don't want to print out
 $uid_y = 384;
 $uid_size = 19; // This is optional: 19 by default
 $uid_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's first name
 //$firstname_x = 420; // Comment this if you don't want to print out
 $firstname_y = 762;
 $firstname_size = 19; // This is optional: 19 by default
 $firstname_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's second name
 //$secondname_x = 59; // Comment this if you don't want to print out
 $secondname_y = 810;
 $secondname_size = 19; // This is optional: 19 by default
 $secondname_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's full name (means first name plus second name)
 $fullname_x = 420; // Comment this if you don't want to print out
 $fullname_y = 762;
 $fullname_size = 19; // This is optional: 19 by default
 $fullname_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's company
 $usercompany_x = 232; // Comment this if you don't want to print out
 $usercompany_y = 850;
 $usercompany_size = 19; // This is optional: 19 by default
 $usercompany_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's barcode image
 //$barcode_x = 1110; // Comment this if you don't want to print out
 $barcode_y = 420;
 $bcfontsize = 70; // This is optional: 70 by default
 $barcode_angle = 270; // This is optional: 270 by default
 $barcode_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's barcode's IDNR
 //$bcnum_x = 1080; // Comment this if you don't want to print out
 $bcnum_y = 420;
 $bcnum_size = 25; // This is optional: 25 by default
 $bcnum_angle = 270; // This is optional: 270 by default
 $bcnum_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's QR code image
 $qrc_x = 820; // Comment this if you don't want to print out
 $qrc_y = 300;
 $qrc_w = 300;
 $qrc_h = 300;

 // Worker's photo *** alte Variablen bis 31.03.2021 ***
 //$idpic_x = 150; // Comment this if you don't want to print out
 //$idpic_y = 440;
 //$idpic_w = 260;
 //$idpic_h = 260;

 // Worker's photo *** neue Variablen ab 01.04.2021, identisch mit hse-COACH ***
 $at_certificate_x = 714; // Comment this if you don't want to print out
 $at_certificate_y = 235;
 $at_certificate_w = 260;
 $at_certificate_h = 355;
 $from_idpic_x=0;
 $from_idpic_y=0;
 $from_idpic_w=300;
 $from_idpic_h=400;

 // Worker's course title
 //$title_x = 450; // Comment this if you don't want to print out
 $title_y = 939;
 $title_size = 19; // This is optional: 19 by default
 $title_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's valid until date
 //$valid_x = 526; // Comment this if you don't want to print out
 $valid_y = 1026;
 $valid_size = 19; // This is optional: 19 by default
 $valid_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's test date
 $date_x = 450; // Comment this if you want don't want to print out
 $date_y = 1619;
 $date_size = 19; // This is optional: 19 by default
 $date_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Site's name
 $site_x = 149; // Comment this if you don't want to print out
 $site_y = 1619;
 $site_name = 'Berlin';
 $site_size = 19; // This is optional: 19 by default
 $site_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's EMail
 //$email_x = 515; // Comment this if you don't want to print out
 $email_y = 942;
 $email_size = 19; // This is optional: 19 by default 
 $email_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's country of origin
 //$country_x = 515; // Comment this if you don't want to print out
 $country_y = 1032;
 $country_size = 19; // This is optional: 19 by default 
 $country_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's vehicle reg / plate
 //$vehicleplate_x = 515; // Comment this if you don't want to print out
 $vehicleplate_y = 1122;
 $vehicleplate_size = 19; // This is optional: 19 by default 
 $vehicleplate_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's insurance / social number
 //$socialnumber_x = 515; // Comment this if you don't want to print out
 $socialnumber_y = 1212;
 $socialnumber_size = 19; // This is optional: 19 by default 
 $socialnumber_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's birthdate
 //$birthday_x = 515; // Comment this if you don't want to print out
 $birthday_y = 1302;
 $birthday_size = 19; // This is optional: 19 by default 
 $birthday_color = imagecolorallocate($badge, 0, 0, 0); // This is optional: black by default

 // Worker's signature
 // Note that $signature_y is NOT USED, because we resample the signature to get a non deformed one printed
 $signature_x = 725; // Comment this if you don't want to print out
 $signature_y = 1470;

 ?>
Print Friendly, PDF & Email