{foreach from=$arrayPhoto item=file name=photo}<img src="{$urlStatic}/temp/{$file|replace:".jpg":"_th.jpg"}" alt="test" style="float:left; border:1px solid #000000; margin-right:5px; margin-bottom: 5px" /><input type="hidden" name="photo" value="{$file}" /> {/foreach}