folder}/";
$info = $model->title;
$rnd = random_int(100, 999999);
?>
$report = $model->getReport();
foreach( $report as $item ){
$imgFile = $imgFileShort."".$item->id.".160.jpg";
if( file_exists(Yii::getAlias('@webroot').$imgFile ) || 1 ){
$imf = $imgFileShort.$item->id.".800.jpg";
$r = @getimagesize(Yii::getAlias('@webroot').$imgFileShort.$item->id.".1024.jpg" );
$imgphoto = ( $r === false )?$imf:$imgFileShort.$item->id.".1024.jpg";
?>

}
}
?>
$str =
<<
JS;
echo $str;
?>