1, 'template_page' => 1, 'value' => TTi18n::gettext('Date').': ', 'coordinates' => array( 'x' => 167, 'y' => 23, 'h' => 10, 'w' => 10, 'halign' => 'C', ), 'font' => array( 'size' => 10, 'type' => '' ) ), // full name 'full_name' => array( 'coordinates' => array( 'x' => 25, 'y' => 38, 'h' => 5, 'w' => 100, 'halign' => 'L', ), 'font' => array( 'size' => 10, 'type' => '' ) ), // amount words 'amount_words' => array( 'function' => array('filterAmountWords', 'drawNormal'), 'coordinates' => array( 'x' => 15, 'y' => 42, 'h' => 10, 'w' => 100, 'halign' => 'L', ), 'font' => array( 'size' => 10, 'type' => '' ) ), // amount cents 'amount_cents' => array( 'function' => array('filterAmountCents', 'drawNormal'), 'coordinates' => array( 'x' => 120, 'y' => 42, 'h' => 10, 'w' => 15, 'halign' => 'L', ), 'font' => array( 'size' => 10, 'type' => '' ) ), // date 'date' => array( 'function' => array('filterDate', 'drawNormal'), 'coordinates' => array( 'x' => 177, 'y' => 23, 'h' => 10, 'w' => 25, 'halign' => 'C', ), 'font' => array( 'size' => 10, 'type' => '' ) ), //date format label array( 'function' => array('getDisplayDateFormat', 'drawNormal'), 'coordinates' => array( 'x' => 177, 'y' => 25.5, 'h' => 10, 'w' => 25, 'halign' => 'C', ), 'font' => array( 'size' => 6, 'type' => '' ) ), 'alignment_grid' => array( //Print alignment grid around the dollar amount, as it usually needs most fine tuning. 'function' => array('drawAlignmentGrid'), 'coordinates' => array( 'x' => 150, 'y' => 15, 'h' => 36, 'w' => 52, ), ), // amount padded 'amount_padded' => array( 'function' => array('filterAmountPadded', 'drawNormal'), 'coordinates' => array( 'x' => 167, 'y' => 38, 'h' => 5, 'w' => 25, 'halign' => 'C', ), 'font' => array( 'size' => 10, 'type' => '' ) ), // Full mailing address. 'full_address' => array( 'coordinates' => array( 'x' => 20, 'y' => 55, 'h' => 5, 'w' => 100, 'halign' => 'L', ), 'font' => array( 'size' => 10, 'type' => '' ), 'multicell' => TRUE, ), // Signature 'signature' => array( 'function' => array('drawImage'), 'coordinates' => array( 'x' => 150, 'y' => 60, 'h' => 18, 'w' => 50, ), ), // left column 'stub_left_column' => array( 'function' => 'drawPiecemeal', 'coordinates' => array( array( 'x' => 15, 'y' => 94, 'h' => 75, 'w' => 92, 'halign' => 'L', ), array( 'x' => 15, 'y' => 182, 'h' => 75, 'w' => 92, 'halign' => 'L', ), ), 'font' => array( 'size' => 10, 'type' => '' ), 'multicell' => TRUE, ), // right column 'stub_right_column' => array( 'function' => 'drawPiecemeal', 'coordinates' => array( array( 'x' => 107, 'y' => 94, 'h' => 75, 'w' => 91, 'halign' => 'R', ), array( 'x' => 107, 'y' => 182, 'h' => 75, 'w' => 91, 'halign' => 'R', ), ), 'font' => array( 'size' => 10, 'type' => '', ), 'multicell' => TRUE, ), ); if ( isset($template_schema[$name]) ) { return $name; } else { return $template_schema; } } } ?>