<?php $image = Images::getImage($parentType, $parentId, $typeIndex); ?> <tr> <td class="td-tbl-clr" style="width:183px;"> <?php echo Translations::Translate(Constants::getNameOfImgType($typeIndex)); ?> </td> <td class="td-tbl-clr" style="width: 189px;"> <?php if ($image != null) { ?> <img class="image-preview" src="<?php echo AdminFunctions::GetImageUrl($image->picture); ?> " alt=""> <?php } ?> </td> <td class="td-tbl-clr" style="width: 576px;"> <input type="file" name="<?php echo $fieldName; ?> " class="form-control" style="width: 300px;"> </td> <td class="td-tbl-clr action-td" style="width: 200px;">