{include file="common/head.tpl.html" html5=true} {calendar->init}
{help->link name="contract_window" class="help-overview"} {if $protocol && $data}{menubutton->image_window query="op=common_glog&modul=`$smarty.const.MODULE_CONTRACTS`&oid=`$data`" icon="protocol" width=19 height=19 title=$lang.global_protocol w_width=$smarty.const.GLOG_WIN_WIDTH scroll=1 w_height=$smarty.const.GLOG_WIN_HEIGHT}{/if}
{$lang.contract_internal_id}: {$data}
{if $return}{/if} {if !$read_permission}
{$lang.global_error_permissions} ({contract->value name="name"})
{else} {include file=$contract_template}
{if !$is_owner}
{$lang.global_error_permissions} ({contract->value name="name"})
{else} {if $data}{/if} {/if}
{/if}
{if $smarty.const.INVOICES && $use_new_view}
{html->picture_upload name="offer[pic_folder]" path=$img_path readonly="true" click_action="index.php?op=contracts_index&download&data=`$data`" fname_filter="Vertrag*" oid=$data}
{else}
{$calendar}
{cssbutton->simple id="btn_search" string=$lang.global_search}
{/if}
{if $data > 0} {smartregister->custom_register registers=$custom_registers show=$custom_registers_show module_settings_id=$smarty.const.MODULE_CONTRACTS last_rg=$last_rg} {smartregister->init obj_id="detailtab" user_option="contracts_smartreg"} {/if}
{include file="common/foot.tpl.html"}