forked from science-ation/science-ation
Fix fair logo in tcpdf reports
This commit is contained in:
parent
6e0d3304b5
commit
aedb61c286
@ -889,6 +889,43 @@ foreach($report_stock as $n=>$v) {
|
|||||||
|
|
||||||
// echo "<pre>"; print_r($d);
|
// echo "<pre>"; print_r($d);
|
||||||
|
|
||||||
|
switch($f) {
|
||||||
|
case 'static_box':
|
||||||
|
$rep->label_rect($d['x'], $d['y'], $d['w'], $d['h']);
|
||||||
|
break;
|
||||||
|
case 'fair_logo':
|
||||||
|
$rep->label_fair_logo($d['x'], $d['y'], $d['w'], $d['h'], $show_box);
|
||||||
|
break;
|
||||||
|
case "projectbarcode":
|
||||||
|
$style = array(
|
||||||
|
'border' => 2,
|
||||||
|
'vpadding' => 'auto',
|
||||||
|
'hpadding' => 'auto',
|
||||||
|
'fgcolor' => array(0,0,0),
|
||||||
|
'bgcolor' => false, //array(255,255,255)
|
||||||
|
'module_width' => 3, // width of a single module in points
|
||||||
|
'module_height' => 3 // height of a single module in points
|
||||||
|
);
|
||||||
|
$rep->label_barcode($v, 'QRCODE,H', $d['x'], $d['y'], $d['w'], $d['h'], $style, 'N');
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
if($f == 'static_text')
|
||||||
|
$v = $d['value'];
|
||||||
|
|
||||||
|
$v = iconv("ISO-8859-1","UTF-8",$v);
|
||||||
|
|
||||||
|
$rep->label_text($d['x'], $d['y'], $d['w'], $d['h'],
|
||||||
|
$v, $show_box, $d['align'], $d['valign'],
|
||||||
|
$d['fontname'],$d['fontstyle'],$d['fontsize'],
|
||||||
|
$d['on_overflow']);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
if($f == 'static_box') {
|
if($f == 'static_box') {
|
||||||
$rep->label_rect($d['x'], $d['y'], $d['w'], $d['h']);
|
$rep->label_rect($d['x'], $d['y'], $d['w'], $d['h']);
|
||||||
} else {
|
} else {
|
||||||
@ -905,7 +942,7 @@ foreach($report_stock as $n=>$v) {
|
|||||||
'module_width' => 2, // width of a single module in points
|
'module_width' => 2, // width of a single module in points
|
||||||
'module_height' => 2 // height of a single module in points
|
'module_height' => 2 // height of a single module in points
|
||||||
);
|
);
|
||||||
$rep->barcode($v, 'QRCODE,H', $d['x'], $d['y'], $d['w'], $d['h'], $style, 'N');
|
$rep->label_barcode($v, 'QRCODE,H', $d['x'], $d['y'], $d['w'], $d['h'], $style, 'N');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$rep->label_text($d['x'], $d['y'], $d['w'], $d['h'],
|
$rep->label_text($d['x'], $d['y'], $d['w'], $d['h'],
|
||||||
@ -915,6 +952,7 @@ foreach($report_stock as $n=>$v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -847,6 +847,12 @@ $report_students_fields = array(
|
|||||||
'width' => 3,
|
'width' => 3,
|
||||||
'table' => "'".mysql_escape_string($config['fairname'])."'"),
|
'table' => "'".mysql_escape_string($config['fairname'])."'"),
|
||||||
|
|
||||||
|
'fair_logo' => array(
|
||||||
|
'name' => 'Fair -- Logo (for Labels only)',
|
||||||
|
'header' => '',
|
||||||
|
'width' => 1 /*mm*/,
|
||||||
|
'table' => "CONCAT(' ')"),
|
||||||
|
|
||||||
/* Special/Misc/Other */
|
/* Special/Misc/Other */
|
||||||
'static_text' => array (
|
'static_text' => array (
|
||||||
'start_option_group' => 'Special Fields',
|
'start_option_group' => 'Special Fields',
|
||||||
|
Loading…
Reference in New Issue
Block a user