+
+ if ($pictures)
+ {
+ $image = company_path(). "/images/" . item_img_name($myrow2['stk_code']) . ".jpg";
+ if (file_exists($image))
+ {
+ if ($rep->row - $SysPrefs->pic_height < $rep->bottomMargin)
+ $rep->NewPage();
+ $rep->AddImage($image, $rep->cols[1], $rep->row - $SysPrefs->pic_height, 0, $SysPrefs->pic_height);
+ $rep->row -= $SysPrefs->pic_height;
+ $rep->NewLine();
+ }
+ }