Split label_box into two separate options: label_box and field_box. label_box draws a border around the entire label, field_box draws a boarder around each field of text on the label

This commit is contained in:
james 2008-03-20 20:07:13 +00:00
parent 45a1bdd1e4
commit ec66217a2b
2 changed files with 6 additions and 3 deletions

View File

@ -60,6 +60,9 @@
$report_options['label_box'] = array('desc' => 'Draw a box around each label',
'values' => array('no'=>'No', 'yes'=>'Yes')
);
$report_options['field_box'] = array('desc' => 'Draw a box around each text field on the label',
'values' => array('no'=>'No', 'yes'=>'Yes')
);
$report_options['label_fairname'] = array('desc' => 'Print the fair name at the top of each label',
'values' => array('no'=>'No', 'yes'=>'Yes')
);
@ -770,8 +773,8 @@ foreach($report_stock as $n=>$v) {
if($d['face'] == 'bold') $opt[] = 'bold';
$opt[] = $d['align'];
$opt[] = $d['valign'];
if($report['option']['label_box'] == 'yes')
$opt[] = 'label_box';
if($report['option']['field_box'] == 'yes')
$opt[] = 'field_box';
/* Special column, draw a box */

View File

@ -341,7 +341,7 @@ class lpdf
if(in_array('vtop', $options)) $valign = 'top';
if(in_array('vcenter', $options)) $valign = 'center';
if(in_array('vbottom', $options)) $valign = 'bottom';
if(in_array('label_box', $options)) $boxtext = true;
if(in_array('field_box', $options)) $boxtext = true;
/* Find the correct font size for the lineheight */