{if (!($patient_id > 0)) }
{xl t="IMPORTANT: This upload tool is only for uploading documents on patients that are not yet entered into the system. To upload files for patients whom already have been entered into the system, please use the upload tool linked within the Patient Summary screen."}

{/if}
{xl t="NOTE: Uploading files with duplicate names will cause the files to be automatically renamed (for example, file.jpg will become file.1.jpg). Filenames are considered unique per patient, not per category."}

{xl t="Upload Document"} {if $category_name} {xl t="to category"} '{$category_name}'{/if}

{xl t="Source File Path"}:  ({xl t="Multiple files can be uploaded at one time by selecting them using CTRL+Click or SHIFT+Click."})

{xl t="Optional Destination Name"}:

{if !$hide_encryption}

{xl t="Is The File Encrypted?"}:

{xl t="Pass Phrase"}:

{xl t='Supports TripleDES encryption/decryption only.'}

{/if}

{if !empty($file)}

{xl t='Upload Report'}
{foreach from=$file item=file}
{if $error}{$error}
{/if} {xl t='ID'}: {$file->get_id()}
{xl t='Patient'}: {$file->get_foreign_id()}
{xl t='URL'}: {$file->get_url()}
{xl t='Size'}: {$file->get_size()}
{xl t='Date'}: {$file->get_date()}
{xl t='Hash'}: {$file->get_hash()}
{xl t='MimeType'}: {$file->get_mimetype()}
{xl t='Revision'}: {$file->revision}

{/foreach} {/if}