{include file="delete_prjmember.js"} {include file="delete_file.js"} {include file="delete_expense.js"} {literal} {/literal} {include file="upload.tpl.html"} {assign var=files value=$project.files} {if strlen($relmap)}{$relmap}{/if}

{t}Project{/t}: {$project.prj_title|wash}

{$project.prj_title|wash}
{t}Description{/t}: {$project.prj_desc|wash|default:" "}
{t}Customer{/t}: {$project.cpn_name|wash|default:" "}
{t}Category{/t}: {$project.prjcat_title|wash|default:" "} {t}Status{/t}: {$project.prjstat_title|wash|default:" "}
{t}Created by{/t}: {if strlen($project.prj_owner)}{$project.prj_owner|wash}{else} {/if} {t}From quotation{/t}: {if strlen($project.quot_id)}{$project.quot_number|wash|default:" "}/{$project.quot_date|wash|default:" "}{else} {/if}
{t}Project manager{/t}: {if strlen($project.prj_manager_pe_id)}{$project.prj_manager|wash}{else} {/if} {t}Billable{/t}: {$project.prj_billabletype_text|wash|default:" "}
{t}Priority{/t}: {$project.prj_priority|wash|default:" "} {t}Billing company{/t}: {if strlen($project.cpn_id_issuebill)}{$project.cpn_name_issuebill|wash|default:" "}{else} {/if}
{t}Start date{/t}: {if strlen($project.prj_startdate)}{$project.prj_startdate|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{else} {/if} {t}Estimated end{/t}: {if strlen($project.prj_estimatedend)}{if $project.prj_overdue}{$project.prj_estimatedend|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{else}{$project.prj_estimatedend|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{/if}{else} {/if}
{t}End date{/t}: {if strlen($project.prj_enddate)}{$project.prj_enddate|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{else} {/if} {t}Deadline Date{/t}: {if strlen($project.prj_deadline)}{if $project.prj_overdue}{$project.prj_deadline|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{else}{$project.prj_deadline|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT}{/if}{else} {/if}
{t}Progress{/t}
{t}estimated{/t} {t}tracked{/t} {t}% complete{/t}
{t}Manhours{/t} {$project.prj_planned_manhours|wash|phpaga_hours2duration|default:" "} {$project.prj_duration_minutes|phpaga_minutes2duration|default:" "} {$project.prj_perc_manhours|phpaga_formatpercentage|default:" "} %
{t}Manhours cost{/t} {$config.MONETARY_SYMBOL}{$project.prj_planned_cost_manhours|wash|phpaga_formatamount|default:" "} {$config.MONETARY_SYMBOL}{$project.humancost.total_amount|phpaga_formatamount|default:" "} {$project.prj_perc_cost_manhours|phpaga_formatpercentage|default:" "} %
{t}Material cost{/t} {$config.MONETARY_SYMBOL}{$project.prj_planned_cost_material|wash|phpaga_formatamount|default:" "} {$config.MONETARY_SYMBOL}{$project.materials.total_amount|phpaga_formatamount|default:" "} {$project.prj_perc_cost_material|phpaga_formatpercentage|default:" "} %
{if $use_graphviz} {/if}
{t}Relations{/t}
{t}Parent project{/t}: {if strlen($project.parent_prj_title)}{$project.parent_prj_title|wash}{else} {/if}
{t}Child projects{/t}: {if (isset($project.childs) && (count($project.childs) > 0))}{foreach name=fchilds item=child from=$project.childs}{$child.prj_title|wash}{if !($smarty.foreach.fchilds.last)} | {/if}{/foreach}{else} {/if}
{t}Relationship{/t}: {t}Project relationship{/t}
{if count($files) > 0}
{include file="listfiles.tpl.html"}
{/if} {if (isset($opcats) && (count($opcats) > 0)) || ($prjmanage && (isset($project.opcatlist) && (count($project.opcatlist) > 0)))}
{if (isset($opcats) && (count($opcats) > 0))} {section name=opcdet loop=$opcats} {/section}
{t}Overall{/t}
{$opcats[opcdet].opcat_title|wash}: {$opcats[opcdet].opcat_duration|phpaga_minutes2duration}
{t}Total duration{/t}: {$project.prj_duration_minutes|phpaga_minutes2duration}
{foreach item=pe from=$opcats_person.persons} {/foreach} {foreach key=opckey item=opc from=$opcats_person.opcats} {foreach item=row from=$opcats_person.rows[$opckey]} {/foreach} {/foreach} {foreach item=pe from=$opcats_person.persons} {/foreach}
{t}Per person{/t}
 {$pe.pe_person|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 ($prjmanage && (isset($project.opcatlist) && (count($project.opcatlist) > 0)))} {section name=opc loop=$project.opcatlist} {if strlen($project.opcatlist[opc].opcat_hourlyrate|wash)} {else} {/if} {/section}
{t}Task categories: default hourly rates{/t}
{if strlen($project.opcatlist[opc].opcat_color)} {else} {/if} {$project.opcatlist[opc].opcat_title|wash} {$project.opcatlist[opc].opcat_hourlyrate|wash} {t}no default rate set{/t}
{/if}
{/if} {if (count($project.prj_members) > 0) || ($prjmanage && isset($project.humancost.details) && (count($project.humancost.details) > 0))}
{if count($project.prj_members) > 0} {if $prjmanage} {/if} {section name=members loop=$project.prj_members} {if $prjmanage} {/if} {/section}
{t}Project members{/t}
{t}Member{/t} {t}Role{/t} {t}Default hourly rate{/t} {t}Actions{/t}
{$project.prj_members[members].pe_person|wash} {$project.prj_members[members].jcat_title|wash} {if strlen($project.prj_members[members].prjmem_hourlyrate)}{$config.MONETARY_SYMBOL}{$project.prj_members[members].prjmem_hourlyrate|phpaga_formatamount}{/if} {t}Edit{/t} {t}Delete{/t}
{/if} {if ($prjmanage && isset($project.humancost.details) && (count($project.humancost.details) > 0))} {section name=members loop=$project.humancost.details} {/section}
{t}Human cost{/t}
{t}Person{/t} {t}Duration{/t} {t}Cost{/t}
{$project.humancost.details[members].pe_person|wash} {$project.humancost.details[members].sum_duration|phpaga_minutes2duration} {$config.MONETARY_SYMBOL}{$project.humancost.details[members].amount|phpaga_formatamount}
{t}Total{/t} {$project.humancost.total_duration|phpaga_minutes2duration} {$config.MONETARY_SYMBOL}{$project.humancost.total_amount|phpaga_formatamount}
{/if}
{/if} {if count($project.materials.details) > 0}
{section name=mat loop=$project.materials.details} {if ($prjmanage || ($auth_user.pe_id == $project.materials.details[mat].pe_id))} $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} class="tTip" title="{$project.materials.details[mat].mat_desc|phpaga_popup_sanitizestr}"{/if}> {$project.materials.details[mat].mat_desc|wash|trnc:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true|default:" "} {if $project.materials.details[mat].mat_price} {else}{/if} {/if} {/section}
{t}Material{/t}
{t}Date{/t} {t}Prod. code{/t} {t}Material{/t} {t}Description{/t} {t}Person{/t} {t}Qty.{/t} {t}Price{/t} {t}Actions{/t}
{$project.materials.details[mat].mat_added|date_format:$smarty.const.PHPAGA_DATETIMEFORMAT_SHORT} {$project.materials.details[mat].mat_prodcode|wash|default:" "} {$project.materials.details[mat].mat_name|wash|default:" "} {$project.materials.details[mat].pe_person|wash} {$project.materials.details[mat].mat_qty|wash|default:" "} {$config.MONETARY_SYMBOL}{$project.materials.details[mat].mat_price|wash|phpaga_formatamount|default:" "} {strip} {if ($project.materials.details[mat].mat_canedit)} {t}Delete{/t} {/if} {if (isset($project.materials.details[mat].bill_id) && is_numeric($project.materials.details[mat].bill_id))} {t}Invoice{/t} {/if} {/strip}
{/if} {if count($project.expenses) > 0}
{section name=exp loop=$project.expenses} {if ($prjmanage || ($auth_user.pe_id == $project.expenses[exp].pe_id))} $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} class="tTip" title="{$project.expenses[exp].exp_desc|phpaga_popup_sanitizestr}"{/if}> {$project.expenses[exp].exp_desc|wash|trnc:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true} {/if} {/section}
{t}Expenses{/t}
{t}Description{/t} {t}Date{/t} {t}Person{/t} {t}Cost{/t} {t}Actions{/t}
{$project.expenses[exp].exp_date|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} {$project.expenses[exp].pe_person} {$config.MONETARY_SYMBOL}{$project.expenses[exp].exp_sum|phpaga_formatamount} {if ($prjmanage && !strlen($project.expenses[exp].bill_id))} {t}Delete{/t} {elseif $perm_invoices} {t}View invoice{/t} {else} {t}Invoiced{/t} {/if}
{/if} {if (isset($project.operations) && (count($project.operations) > 0))}
{* {if !$ophide} *} {section name=projects loop=$project.operations} $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} class="tTip" title="{$project.operations[projects].op_desc|phpaga_popup_sanitizestr}"{/if}> {$project.operations[projects].op_desc|wash|trnc:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true} {/section} {* {/if}*}
{t}Tasks{/t}
{t}Task{/t} {t}Date{/t} {t}Person{/t} {t}Category{/t} {t}Hours{/t} {t}Actions{/t}
{$project.operations[projects].op_startdate|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} {$project.operations[projects].op_person|wash} {$project.operations[projects].opcat_title|wash} {$project.operations[projects].op_duration_hrs} {strip} {t}View{/t} {if ($project.operations[projects].op_canedit)} {t}Edit{/t} {t}Delete{/t} {/if} {if (isset($project.operations[projects].bill_id) && is_numeric($project.operations[projects].bill_id))} {t}Invoice{/t} {/if} {/strip}
{/if}
{t}Add unbilled material{/t}
{t}Add unbilled expenses{/t}
{t}Add unbilled manhours{/t}
{t}Single line item for all tasks{/t}
{t}One line item for each task{/t}
{t}Additional information to add{/t}