{include file="delete_operation.tpl.js"} {include file="delete_prjmember.js"} {literal} {/literal} {include file="upload.tpl.html"} {include file="createinvoicebox.tpl.html"} {if strlen($relmap)}{$relmap}{/if} {if $use_graphviz} {/if} {* *} {if count($project.files) > 0} {/if} {if (isset($opcats) && (count($opcats) > 0))} {/if} {if ($prjmanage && (isset($project.opcatlist) && (count($project.opcatlist) > 0)))} {/if} {if count($project.prj_members) > 0} {/if} {if ($prjmanage && isset($project.humancost.details) && (count($project.humancost.details) > 0))} {/if} {if count($project.materials.details) > 0} {/if} {if count($project.expenses) > 0} {/if} {if (isset($project.operations) && (count($project.operations) > 0))} {if !$ophide} {/if} {/if}
{t}Project{/t}: {$project.prj_title|wash} {if $prjmanage || $perm_invoice}[ {if $perm_invoice}{t}Create invoice{/t} | {/if}{t}Delete{/t} | {t}Edit{/t} | {t}Add project member{/t} | {/if}{if $prjmember || $prjmanage}{t}Add material{/t} | {t}Add expense{/t} | {t}Add task{/t} | {t}Add file{/t} ]{else} {/if}
{t}Title{/t}: {$project.prj_title|wash|default:" "}
{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 manhours{/t}:  {$project.prj_planned_manhours|wash|phpaga_hours2duration|default:" "} {t}Estimated cost manhours{/t}: {$project.prj_planned_cost_manhours|wash|phpaga_formatamount|default:" "} {t}Estimated cost material{/t}: {$project.prj_planned_cost_material|wash|phpaga_formatamount|default:" "}
{t}Tracked manhours{/t}:  {$project.prj_duration_minutes|phpaga_minutes2duration|default:" "} {t}Tracked cost manhours{/t}: {$project.humancost.total_amount|phpaga_formatamount|default:" "} {t}Tracked cost material{/t}: {$project.materials.total_amount|phpaga_formatamount|default:" "}
{t}Complete{/t}: {$project.prj_perc_manhours|phpaga_formatpercentage|default:" "} % {t}Complete{/t}: {$project.prj_perc_cost_manhours|phpaga_formatpercentage|default:" "} % {t}Complete{/t}: {$project.prj_perc_cost_material|phpaga_formatpercentage|default:" "} %
{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}
{t}Files{/t}
{section name=file loop=$project.files} $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} onmouseover="return escape('{$project.files[file].file_original_name|phpaga_popup_sanitizestr}')"{/if}> {$project.files[file].file_original_name|wash|truncate:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true} {if $smarty.const.PHPAGA_FILES_PREVIEW && $project.files[file].preview}
{$project.files[file].file_original_name} {/if}
{/section}
{t}Name{/t} {t}Date{/t} {t}Person{/t} {t}Type{/t} {t}Actions{/t}
{$project.files[file].file_added|date_format:$smarty.const.PHPAGA_DATETIMEFORMAT_LONG} {$project.files[file].pe_person|wash|default:" "} {$project.files[file].file_mimetype|default:" "} {t}Delete{/t}
{t}Task categories{/t} [ {if $opcat_byperson == 0}{t}Details{/t}{else}{t}Overall{/t}{/if} ]
{if ($opcat_byperson == 0)}
{section name=opcdet loop=$opcats} {/section}
{$opcats[opcdet].opcat_title|wash}:   {$opcats[opcdet].opcat_duration|phpaga_minutes2duration} 
 
{t}Total duration{/t}: {$project.prj_duration_minutes|phpaga_minutes2duration}
{t}Task categories{/t}
{else} {foreach item=pe from=$opcats.persons} {/foreach} {foreach key=opckey item=opc from=$opcats.opcats} {foreach item=row from=$opcats.rows[$opckey]} {/foreach} {/foreach} {foreach item=pe from=$opcats.persons} {/foreach}
  {$pe.pe_person|wash} 
{$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}
{t}Task categories: default hourly rates{/t} [ {t}Show{/t} ]
{t}Project members{/t} {if $prjmanage}[ {t}Add project member{/t} ]{else} {/if}
{if $prjmanage} {/if} {section name=members loop=$project.prj_members} {if $prjmanage} {/if} {/section}
{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)}{$project.prj_members[members].prjmem_hourlyrate|phpaga_formatamount}{else} {/if} {t}Edit{/t} {t}Delete{/t}
{t}Human cost{/t}
{section name=members loop=$project.humancost.details} {/section}
{t}Person{/t} {t}Duration{/t} {t}Cost{/t}
{$project.humancost.details[members].pe_person|wash} {$project.humancost.details[members].sum_duration|phpaga_minutes2duration} {$project.humancost.details[members].amount|phpaga_formatamount}
{t}Total{/t} {$project.humancost.total_duration|phpaga_minutes2duration} {$project.humancost.total_amount|phpaga_formatamount}
{t}Material{/t} {if $prjmember || $prjmanage}[{t}Add material{/t} ]{else} {/if}
{section name=mat loop=$project.materials.details} {if ($prjmanage || ($auth_user.pe_id == $project.materials.details[mat].pe_id))} $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} onmouseover="return escape('{$project.materials.details[mat].mat_desc|phpaga_popup_sanitizestr}')"{/if}> {$project.materials.details[mat].mat_desc|wash|truncate:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true|default:" "} {/if} {/section}
{t}Date{/t} {t}Prod. code{/t} {t}Material{/t} {t}Description{/t} {t}Person{/t} {t}Qty.{/t} {t}Price{/t} {t}Currency{/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:" "} {$project.materials.details[mat].mat_price|wash|phpaga_formatamount|default:" "} {$project.materials.details[mat].curr_name|wash|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}
{t}Expenses{/t} {if $prjmember || $prjmanage}[{t}Add expense{/t} ]{else} {/if}
{section name=exp loop=$project.expenses} {if ($prjmanage || ($auth_user.pe_id == $project.expenses[exp].pe_id))} $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} onmouseover="return escape('{$project.expenses[exp].exp_desc|phpaga_popup_sanitizestr}')"{/if}> {$project.expenses[exp].exp_desc|wash|truncate:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true} {/if} {/section}
{t}Description{/t} {t}Date{/t} {t}Person{/t} {t}Cost{/t} {t}Currency{/t} {t}Actions{/t}
{$project.expenses[exp].exp_date|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} {$project.expenses[exp].pe_person} {$project.expenses[exp].exp_sum|phpaga_formatamount} {$project.expenses[exp].curr_name|wash}  
{t}Tasks{/t} [ {if $ophide}{t}Show tasks{/t}{else}{t}Hide tasks{/t}{/if} {if $prjmember || $prjmanage}| {t}Add task{/t}{/if} ]
{section name=projects loop=$project.operations} $smarty.const.PHPAGA_SHOWOPDESCLENGHT))} onmouseover="return escape('{$project.operations[projects].op_desc|phpaga_popup_sanitizestr}')"{/if}> {$project.operations[projects].op_desc|wash|truncate:$smarty.const.PHPAGA_SHOWOPDESCLENGHT:"...":true} {/section}
{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}