{include file="delete_person.tpl.js"} {include file="delete_file.js"} {include file="upload.tpl.html"} {$STATUSMSG}
{$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}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:" "} {t}Default hourly rate{/t}: {if ($perm_rate)}{$person.pe_hourlyrate|wash|default:" "}{else}{t}hidden{/t}{/if}
{assign var=files value=$person.files} {if count($files) > 0} {include file="listfiles.tpl.html"} {/if} {if $person.pe_duration > 0}
{$MANHOURS_HEADER} {if strlen($mhr_year)}{$mhr_year}{/if} [< {math equation="y - 1" y = $mhr_year} {if ($mhr_year < $curryear)} | {math equation="x + 1" x = $mhr_year} >{/if} ]
{/if} {if (isset($opcats) && (count($opcats) > 0))} {if ($opcat_byproject == 0)}
{t}Task categories{/t} [ {t}Details{/t} ]
{section name=opcdet loop=$opcats} {/section}
{$opcats[opcdet].opcat_title|wash}: {$opcats[opcdet].opcat_duration|phpaga_minutes2duration}
{t}Total duration{/t}: {$TOTAL_DURATION|phpaga_minutes2duration}
{else} {foreach item=prj from=$opcats.projects} {/foreach} {foreach key=opckey item=opc from=$opcats.opcats} {foreach item=row from=$opcats.rows[$opckey]} {/foreach} {/foreach} {foreach item=prj from=$opcats.projects} {/foreach}
{t}Task categories{/t} [ {t}Overall{/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}
 {$prj.duration|phpaga_minutes2duration}{$TOTAL_DURATION|phpaga_minutes2duration}
{/if} {/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}