<?php

/**
 * Created on 05.04.2006
 *
 * author: Christian Osterrieder utilo.net
 * 
 * this page needs the BILDER_ID from the table REZ_GEN_BILDER
 * as an GET Variable (bilder_id)
 */
$root = "..";
$bilder_id = $_GET["bilder_id"];
include_once $root . "/conf/rdbmsConfig.inc.php";
include_once $root . "/include/bildFunctions.inc.php";
$d = getBild($bilder_id);
$mime = $d["MIME"];
//header erzeugen:
header("Content-type: image/" . $mime);
//bild ausgeben:
echo $d["BILD"];
 //Schriftart Überschrift
 $fontText = getTableCardProperty(TC_FONT_TEXT, $tableCardId);
 //Schriftart Text
 $fontTextStyle = getTableCardProperty(TC_FONT_TEXT_STYLE, $tableCardId);
 //Schriftstil Text
 $fontHeadingStyle = getTableCardProperty(TC_FONT_HEADING_STYLE, $tableCardId);
 //Schriftstil Überschrift
 $fontHeadingSize = getTableCardProperty(TC_FONT_HEADING_SIZE, $tableCardId);
 //Schriftgröße Überschrift
 $fontTextSize = getTableCardProperty(TC_FONT_TEXT_SIZE, $tableCardId);
 //Schriftgröße Text"
 $headingText = getTableCardProperty(TC_HEADING_TEXT, $tableCardId);
 //Text Überschrift
 $r = getTableCard($tableCardId);
 $bild_id = $r->fields("BILDER_ID");
 $image = getBild($bild_id)->fields("BILD");
 //get Bild
 $temp_url = "/backoffice/tischkarten/print/_temp.jpg";
 $f_image = fopen($root . $temp_url, "w");
 fwrite($f_image, $image);
 fclose($f_image);
 $showName = getTableCardProperty(TC_TEXT_SHOW_NAME, $tableCardId);
 //Name anzeigen
 if ($showName == "true") {
     $showName = true;
 } else {
     $showName = false;
 }
 $showTime = getTableCardProperty(TC_TEXT_SHOW_TIME, $tableCardId);
 //Zeit anzeigen
 if ($showTime == "true") {
<?php

/**
 * Created on 05.04.2006
 *
 * author: Christian Osterrieder alpstein-austria
 * 
 * this page needs the BILDER_ID from the table BOOKLINE_BILDER
 * as an GET Variable (bilder_id)
 */
$root = "..";
$bilder_id = $_GET["bilder_id"];
include_once $root . "/include/rdbmsConfig.inc.php";
include_once $root . "/include/bildFunctions.inc.php";
$res = getBild($bilder_id);
$mime = $res->fields["MIME"];
//header erzeugen:
header("Content-type: image/" . $mime);
//bild ausgeben:
echo $res->fields["BILD"];