{include file="delete_person.tpl.js"} {include file="delete_file.js"} {include file="upload.tpl.html"} {assign var=files value=$person.files} {literal} {/literal} {$STATUSMSG}

{t}Person{/t}: {$person.pe_person|wash}

{if ($perm_persons) || ($person.pe_pe_id == $smarty.session.auth_user.pe_id)}
[ {t}Delete{/t} | {t}Edit{/t} | {t}Add files{/t}]
{/if}
{t}Default hourly rate{/t}: {if ($perm_rate)}{$person.pe_hourlyrate|wash|default:" "}{else}{t}hidden{/t}{/if}
{$person.pe_person|wash}
{t}Person{/t}: {$person.pe_person|wash} {t}Category{/t}: {$person.pecat_title|wash|default:" "}
{t}Address{/t}: {$person.pe_address|wash|default:" "}
{t}Address 2{/t}: {$person.pe_address2|wash|default:" "}
{t}ZIP{/t}: {$person.pe_zip|wash|default:" "} {t}City{/t}: {$person.pe_city|wash|default:" "} {t}Work phone{/t}: {$person.pe_phonework|wash|default:" "}
{t}Region{/t}: {$person.pe_region|wash|default:" "} {t}Mobile{/t}: {$person.pe_phonemobile|wash|default:" "}
{t}Country{/t}: {$person.ctr_name|wash|default: {$person.ctr_name|wash|default:" "} {t}Home phone{/t}: {$person.pe_phonehome|wash|default:" "}
{t}Tax number{/t}: {$person.pe_taxnr|wash|default:" "} {t}Fax{/t}: {$person.pe_fax|wash|default:" "}
{t}Url{/t}: {if strlen($person.pe_url)}{$person.pe_url|wash|phpaga_urlmodifier}{else} {/if} {t}Company{/t}: {$person.cpn_name|wash}
{t}Email{/t}: {if (isset($person.pe_email) && strlen($person.pe_email))} {$person.pe_email|wash} {else}   {/if} {t}Job category{/t}: {$person.jcat_title|wash|default:" "}
{t}Record owner{/t}: {$person.owner_pe_person|wash|default:" "}
{if $person.pe_duration > 0}
{$MANHOURS_HEADER} {if strlen($mhr_year)} {$mhr_year} | {$currmonth} {/if} 
{/if}
{if (isset($opcats) && (count($opcats) > 0))}
{t}Task categories{/t} 
{section name=opcdet loop=$opcats} {/section}
{t}Overall{/t}
{$opcats[opcdet].opcat_title|wash}: {$opcats[opcdet].opcat_duration|phpaga_minutes2duration}
{t}Total duration{/t}: {$TOTAL_DURATION|phpaga_minutes2duration}
{foreach item=prj from=$opcats_project.projects} {/foreach} {foreach key=opckey item=opc from=$opcats_project.opcats} {foreach item=row from=$opcats_project.rows[$opckey]} {/foreach} {/foreach} {foreach item=pe from=$opcats_project.projects} {/foreach}
{t}Per project{/t}
 {$prj.prj_title|wash}{t}Total{/t}
{$opc.opcat_title|wash} {if strlen($row.opcat_duration)}{$row.opcat_duration|phpaga_minutes2duration}{else} {/if} {$opc.duration|phpaga_minutes2duration}
 {$pe.duration|phpaga_minutes2duration}{$project.prj_duration_minutes|phpaga_minutes2duration}
{/if} {if (isset($person.projects) && (count($person.projects) > 0))}
{foreach name=fpowns item=pown from=$person.projects} {/foreach}
{t}Projects{/t}
{$pown.prj_title|wash} {$pown.relation}
{/if} {if count($files) > 0}
{include file="listfiles.tpl.html"}
{/if}