
<tr>
    {if $fileext eq jpg || $fileext eq png}
    <td>
        <img src="{$hosturl}/../upload/patientfiles/{$ptid}/{$patientfiles}" width="50" height="50"/>
    </td>

    {elseif $fileext eq pdf}
    <td>
        <img src="{$hosturl}/views/obgy/_assets/custom/images/pdficon.png" width="50" height="50"/>
    </td>
    {elseif $fileext eq doc || docx}
    <td>
        <img src="{$hosturl}/views/obgy/_assets/custom/images/wordicon.png" width="50" height="50"/>
    </td>
    {/if}
    <td>{$patientfiles}</td>
    <td><a href='{$hosturl}/controllers/patients.php?ac=download&id={$ptid}&filename={$patientfiles}' class="btn btn-success">Download</a></td>
</tr>




