{if $customerinfo.senddocuments}
{/if}
{assign var=type value=$doc.type}
{if ! $doc.closed && ($docrights.$type.rights & 4)}
{/if}
{if ($docrights.$type.rights & 16)}
{/if}
{if ($docrights.$type.rights & 8)}
{/if}
{$docattach = $doc.attachments[0]}
{if $docattach.main || count($doc.attachments) == 1}
{documentview id="{$doc.docid}-{$docattach.id}" type=$docattach.contenttype name=$docattach.filename
url="?m=documentview&id={$doc.docid}" external=true
text=" "}
{/if}
{if count($doc.attachments) > 1}
{/if}
{foreach $doc.attachments as $docattach}
{if $docattach@first && $docattach.main}{continue}{/if}
{documentview id="{$doc.docid}-{$docattach.id}" type=$docattach.contenttype name=$docattach.filename
url="?m=documentview&id={$doc.docid}&attachmentid={$docattach.id}" external=true
text="{$docattach.filename}  "}
{/foreach}
|