Exemple #1
0
         case 'AthQrCode':
             if (!empty($Element->Options['BackCat']) and $MyRow->AcTitleReverse) {
                 $pdf->setColor('text', 255, 255, 255);
             } elseif ($Element->Options['Col']) {
                 $pdf->setColor('text', hexdec(substr($Element->Options['Col'], 1, 2)), hexdec(substr($Element->Options['Col'], 3, 2)), hexdec(substr($Element->Options['Col'], 5, 2)));
             } else {
                 $pdf->setColor('text', 0, 0, 0);
             }
             $style = array('border' => 2, 'vpadding' => 'auto', 'hpadding' => 'auto', 'fgcolor' => array(0, 0, 0), 'bgcolor' => array(255, 255, 255), 'module_width' => 1, 'module_height' => 1);
             if ($Element->Options['BackCol']) {
                 $style['bgcolor'] = array(hexdec(substr($Element->Options['BackCol'], 1, 2)), hexdec(substr($Element->Options['BackCol'], 3, 2)), hexdec(substr($Element->Options['BackCol'], 5, 2)));
             }
             if ($Element->Options['Col']) {
                 $style['fgcolor'] = array(hexdec(substr($Element->Options['Col'], 1, 2)), hexdec(substr($Element->Options['Col'], 3, 2)), hexdec(substr($Element->Options['Col'], 5, 2)));
             }
             $pdf->write2DBarcode($MyRow->Bib . '-' . $MyRow->DivCode . '-' . $MyRow->ClassCode, 'QRCODE,L', $ElX, $ElY, $Element->Options['W'], $Element->Options['H'], $style, 'N');
             break;
         default:
             debug_svela($Element, $MyRow);
     }
 }
 // 	$ImgSxSize= NULL;
 // 	$ImgDxSize= NULL;
 // 	$ImgLowSize= NULL;
 // 	if(!empty($pdf->ToPaths['ToLeft'])) $ImgSxSize=getimagesize($pdf->ToPaths['ToLeft']);
 // 	if(!empty($pdf->ToPaths['ToRight'])) $ImgDxSize=getimagesize($pdf->ToPaths['ToRight']);
 // 	if(!empty($pdf->ToPaths['ToBottom'])) $ImgLowSize=getimagesize($pdf->ToPaths['ToBottom']);
 // 	if(is_file($file=$CFG->DOCUMENT_PATH.'TV/Photos/TV-'.$_SESSION["TourCodeSafe"].'-IdCardFooter.jpg')) {
 // 		$pdf->ToPaths['ToBottom']=$file;
 // 		$ImgLowSize=getimagesize($pdf->ToPaths['ToBottom']);
 // 	}