function viewImage($modul,$item_id) {

  global $db,$ar;

  $sql2 = SELECT * FROM `files` WHERE modul=.$modul. and item_id=.$item_id. and `type`=image ;

  $run2 = mysqli_query($db, $sql2);

  $ret= <hr><h3>Images</h3><div class=row mb-20 pb-20>;

  while($r2 = mysqli_fetch_assoc($run2)) {

    $img_small=$modul./.$r2[path]./.$r2[seq]./image/small/.$r2[url];

    $img_big=$modul./.$r2[path]./.$r2[seq]./image/big/.$r2[url];

    $ret .= 

    <div class=col-sm-3 col-lg-2 col-xs-6>

      <div class=card>

    ;

    $ret .= <img src=.$ar[url_img]..$img_small. alt=>;

    $ret .= ;

    $ret .= 

      </div>

    </div>;

  }

  $ret .= </div>;

  return $ret;

}