$fontTextSize = $_POST['font_size_text']; setTableCardProperty(TC_FONT_TEXT_SIZE, $fontTextSize, $tableCardId); $headingText = $_POST['textHeading']; setTableCardProperty(TC_HEADING_TEXT, $headingText, $tableCardId); if (isset($_POST['show_name']) && $_POST['show_name'] == "true") { $showName = "true"; } else { $showName = "false"; } setTableCardProperty(TC_TEXT_SHOW_NAME, $showName, $tableCardId); if (isset($_POST['show_time']) && $_POST['show_time'] == "true") { $showTime = "true"; } else { $showTime = "false"; } setTableCardProperty(TC_TEXT_SHOW_TIME, $showTime, $tableCardId); //save the pic: if (isset($bild)) { //alte bild id: $r = getTableCard($tableCardId); $bild_id = $r->fields("BILDER_ID"); $old_id = null; if (!empty($bild_id)) { $old_id = $bild_id; } //bild in groesse anpassen und speichern: $maxBreite = $x / 3; //max ein drittel der seitenbreite $maxHoehe = $y; //maximal die hoehe der karte //create the image from JPEG file
/** * @author coster * @date 01.08.2007 * @param $tableCardId the id of the table card * set the default properties for a table card * */ function setTableCardDefaultProperties($tableCardId) { setTableCardProperty(TC_PAGE_ORIENTATION, TC_LANDSCAPE, $tableCardId); setTableCardProperty(TC_MEASURE_UNIT, TC_MILLIMETER, $tableCardId); setTableCardProperty(TC_DIMENSION, TC_CUSTOM_FORMAT, $tableCardId); setTableCardProperty(TC_CUSTOM_FORMAT_X, '150', $tableCardId); setTableCardProperty(TC_CUSTOM_FORMAT_Y, '100', $tableCardId); setTableCardProperty(TC_FONT_HEADING, TC_FONT_ARIAL, $tableCardId); setTableCardProperty(TC_FONT_TEXT, TC_FONT_ARIAL, $tableCardId); setTableCardProperty(TC_FONT_HEADING_STYLE, TC_FONT_STYLE_BOLD, $tableCardId); setTableCardProperty(TC_FONT_TEXT_STYLE, TC_FONT_STYLE_NORMAL, $tableCardId); setTableCardProperty(TC_HEADING_TEXT, 'RESERVIERT', $tableCardId); setTableCardProperty(TC_TEXT_SHOW_NAME, 'true', $tableCardId); setTableCardProperty(TC_TEXT_SHOW_TIME, 'true', $tableCardId); }